View Single Post
 
Old June 29th, 2005, 09:26 PM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

1) This is a good method.

2) You get/retrieve the value from the public property just like you are assigning it your Page_Load code. I think what you might be asking however is "how do I get the value if the user control code changes it?"

This is where events come into play. You create a public event on your user control and the page that consumes the control handles that event.

3) This is done by either having the page wire 1 user control's event to another's public handler for it, or by handling the event on the page and calling a method or by setting a property on the other control.

-Peter