PROBLEM IN ACCESS THE CONTROL INSIDE THE USER CONTROL

Vikas Giri

Total Post:13

Points:91
Posted by  Vikas Giri
 1305  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. Amit Singh

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!