June 15th, 2005, 06:18 PM
A bit of ASP help, if you will...
I'm porting an application from PHP to ASP.NET. The programmer who made the PHP version used a bunch of includes with parameter passing instead of using OO.
(Example: $someVar = 1; include('blah.php'); //which would process based on the value of $someVar )
I'm trying to convert these over to User Controls, but I'm a bit shady on the parameter passing, as I'm new to ASP.
Does anyone know how I can pass my User Control a parameter during instantiation from the aspx page?
(Ex: <UserControl:QueryBox ID="blah" value="foobar" runat="server" /> //where "foobar" is the parameter being passed. )
Please and thanks, amigos.