View Single Post
  #1 (permalink)  
Old August 18th, 2006, 04:23 AM
kv Priya kv Priya is offline
Registered User
 
Join Date: Jun 2006
Location: , , India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to declare the server controls as public??

Hai,
 Hai,
   I have a webuser control enriched with some web server controls.In a web form,I have to refer the properties of the controls of webuser control.While I am referring those properties, an error is raising as

'<usercontrolname>.protected dim with events <controlname> as system.web.ui.webcontrols.textbox' is not accessible in this context because it is 'protected'.

Where can I declare the control as public in a web application so that I can use it anywhere in the project? and how we can do that?
Any suggestions......please welcome...

-Priya