Answers

Question and Answer:

  Home  Microsoft Web Forms

⟩ How to access a control inside a UserControl in .net?

Assume 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";

 211 views

More Questions for you: