Last post Feb 15, 2009 12:45 PM by karthipec_gmail
Feb 13, 2009 05:03 PM|RichardLaw|LINK
Feb 13, 2009 05:40 PM|dotnetruler|LINK
U need to use find control..
then u can change the properties using h.
Other Way... If u go an see in the designer.cs of u r usercontrol
Change the Protected to "Public".
then in the code behind of aspx page in which u r usercontrol rendered .. you can directly call with Usercontrolname.linkname
Feb 14, 2009 12:53 PM|RichardLaw|LINK
Hi, thanks, only, how do I know the name of my user control? I've saved it as 'therapiesLinks.ascx' and I've tried just 'therapiesLinks', but it doesn't work???
Feb 15, 2009 02:08 AM|dotnetruler|LINK
when u r placing u r user control on to an aspx page the user control will have a name..??
Feb 15, 2009 12:45 PM|karthipec_gmail|LINK
U need to expose the property of the control as a public property so that the page can directly set it.
For example I have exposed the ValidatorDisplay Property to the public from the user control where _ErrorMessageDisplay is the Requiredfield validator inside the user control
private ValidatorDisplay _ErrorMessageDisplay=ValidatorDisplay.Static;
_ErrorMessageDisplay = value;
Revert back if u face any issues