problem in access the control inside the user control

Total Post:13

Points:91
 1520  View(s)
Ratings:
Rate this:
problem in access the control inside the user control

we want to get the value of textbox control which are exist inside the user control, its id is "usercontrol1"

please give the right solution
thanks
  1. Post:103

    Points:721
    Re: problem in access the control inside the user control

    Hi vikas

    you want to access the textbox control value inside the user control.
    check this line of code

    TextBox TextBox1=((TextBox)usercontrol1.FindControl("TextBox1")).Text ;

Answer