How to refer a contol in userControl

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I put a Web User Controls in a Form.
The ID of the User Control is uc1.
But if I write the code like
uc1.Button1.text="New Text"
It will fail when complie time, and the error message is

uc_ascx.Button1is inaccessible due to its protection level

How can I public the button in User Control?
 
Back
Top