Jan 31, 2011 03:36 AM|cyberbud|LINK
ErrorDisplay1.ErrorMessage = "This works";
this works coz you have set the erromessage property of your user control on your asp.net page's pageload event. so by the time your usercontrol's pageload event is fired after the parent's
divError.InnerText = ErrorMessage;
this code is bound to work
But when you set the error message after the postback on click event there is no way for the user control to display the message, coz you have already passed the page_load event.
So try this.
Create a function that takes message as paramenter in your user control that is called from your page when it has to set an error message.
In this function set the error text in your div as you have done in your user control's pageload event.
Now call this function from your signin button.
I hope you got my point and know how to implement this now.
Hope I've been helpful