Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
formview info
posted

i have a formview with information from a datasource and i want to get an label information and put it on a text box

text box name = txt

asplabel in formview name = descrilabel

 

simply code like txt-text = descrilabel.text is not recognise because backcode not recognise the label in formview

any idea ??  tks

Parents
No Data
Reply
  • 28496
    Offline posted

    should be something like this...

    txt.Text = ((Label)this.FormView1.Row.FindControl("descriLabel")).Text;

    however, this is an ASP.NET control by Microsoft, not Infragistics, so you'd be better off posting in the Microsoft ASP.NET forums: http://forums.asp.net/

Children
No Data