Click here to Skip to main content
16,020,811 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I Want to enable or disable a control inside a user control dynamically depends on my page....

I have a user control,
inside that i have a textbox.
I want to enable this textbox to be enabled depending upon my Page that is using this control...
Please help me....
urgent.....
Thanks in advance.....
Posted

1 solution

Expose that textbox control as a public property of the usercontrol (using get-set). Once it is available, whenever you want, access it through the usercontrol instance and set it's visibility.
 
Share this answer
 
Comments
mavericksoft 5-Jul-12 4:25am    
Please explain it in a clear way along with coding...
PLssssssssssss........

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900