M
Matt Hawley
Hi Andre,
The preferred method for handling this, is by creating public properties in your user control that you can set via code.
Matt Hawley, MCAD .NET
http://www.eworldui.net
I have a general question what the best practice is passing along values
from an aspx-page to a user-control.
Let's say I call an aspx page like this: myaspxpage.aspx?id=5.
On that page I use Request.Params to store the id value in a variable.
But i also need that id value in the user-control.
So do I have to call Request.Params again in the usercontrol
or should I transfer the value over from the main page.
Or is there another different / better solution
Thanks in advance
Andre
The preferred method for handling this, is by creating public properties in your user control that you can set via code.
Matt Hawley, MCAD .NET
http://www.eworldui.net
I have a general question what the best practice is passing along values
from an aspx-page to a user-control.
Let's say I call an aspx page like this: myaspxpage.aspx?id=5.
On that page I use Request.Params to store the id value in a variable.
But i also need that id value in the user-control.
So do I have to call Request.Params again in the usercontrol
or should I transfer the value over from the main page.
Or is there another different / better solution
Thanks in advance
Andre