How to access a control inside a UserControl in .net?
Submitted by: AdministratorAssume there is a user control called UC and there is only a TextBox control inside it. Now drag this user control into a web page, you can use the following code to visit the TextBox control.
((TextBox)UC1.FindControl("TextBox1")).Text = "demo";
Submitted by: Administrator
((TextBox)UC1.FindControl("TextBox1")).Text = "demo";
Submitted by: Administrator
Read Online Web Forms Job Interview Questions And Answers
Top Web Forms Questions
☺ | How to select multiple non-sequential dates at Code-Behind in Microsoft web forms? |
☺ | How to use PreviousPage on web forms? |
☺ | How to use Server.Transfer in dot net? |
☺ | How to disable some dates in Calendar control in web forms? |
☺ | How to upload an image files only in .net web forms? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |