Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
113532 Points
12480 Posts
Microsoft
Jan 27, 2011 06:54 AM|LINK
Hi nereo.lopez,
We use property to set and get the value. Actually if we put the user control on page, it is the same thing to built-in control like the Text property for TextBox.
For setting property: http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c11971
For handling event:
http://asp.net-tutorials.com/user-controls/events/
http://codebetter.com/brendantompkins/2004/10/06/easily-raise-events-from-asp-net-ascx-user-controls/
http://odetocode.com/code/94.aspx
Thanks,
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: Can't pass data from usercontrol to page
Jan 27, 2011 06:54 AM|LINK
Hi nereo.lopez,
We use property to set and get the value. Actually if we put the user control on page, it is the same thing to built-in control like the Text property for TextBox.
For setting property: http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c11971
For handling event:
http://asp.net-tutorials.com/user-controls/events/
http://codebetter.com/brendantompkins/2004/10/06/easily-raise-events-from-asp-net-ascx-user-controls/
http://odetocode.com/code/94.aspx
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework