View Single Post
 
Old May 23rd, 2005, 07:50 AM
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

You can certainly do what you are doing but it's not a good habit to get into. May I suggest the following alternative:

Provide a public property on the user control for the required value. Let the page that includes the control set that value when it changes (either on the initial page request or if it changes based on something that happens on the page). This way you don't break the user control model, but you get the desired behavior.

-Peter