Custom Web Controls
-
I am creating a registration form which has 3 pages of content in 3 seperate blocks of html.. basically the 1 2 3 step registration. I want to be able to post back on my Registration.aspx?Page=2 and display a different page to the user by selecting a certain block of html. Page 1:
ASP:Textbox -name ASP:Textbox -password some radio buttons
Page 2:
ASP:Textbox - address ASP:Textbox - phone some check boxes
Basically I want to do this somehow with a custom web control displaying each block of html by somehow using the querystring. My Question is can I somehow pass the QueryString value into the the web control? Okay and if this isn't possible... Given that I have a Registration.aspx?Page=[somevalue] How could I go about doing what I have explained? Selecting different blocks of html depending on what the querystring yeilds. Thanks for your help everyone, steve.
-
I am creating a registration form which has 3 pages of content in 3 seperate blocks of html.. basically the 1 2 3 step registration. I want to be able to post back on my Registration.aspx?Page=2 and display a different page to the user by selecting a certain block of html. Page 1:
ASP:Textbox -name ASP:Textbox -password some radio buttons
Page 2:
ASP:Textbox - address ASP:Textbox - phone some check boxes
Basically I want to do this somehow with a custom web control displaying each block of html by somehow using the querystring. My Question is can I somehow pass the QueryString value into the the web control? Okay and if this isn't possible... Given that I have a Registration.aspx?Page=[somevalue] How could I go about doing what I have explained? Selecting different blocks of html depending on what the querystring yeilds. Thanks for your help everyone, steve.
hmmm.....not too familiar with html meself :( But if I were to do it, I'd probably use the code-behind.At the Page_Load, i'd check for Page value, like so:
int iPage = Request.Params("Page");
Then depending on the value of iPage, I'd load different type oncontrols on the page and then manually add it to the page, like so:TextBox txt = new TextBox();
Page.Controls.Add(txt);Does that help? Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain