CodeSnip: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x.
page 3 of 5
by Tom Blanchard
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 27251/ 51

Working in the Web Form

Open up your web form and add the style sheet to the head section of your web form.

<LINK href="wizardstyles.css" type="text/css" rel="stylesheet" />

Now we will start working on the wizard.  First, add a table with two rows into your form.

<table cellpadding=2 cellspacing=2 width=350>
 <tr>
  <td>
  </td>
 </tr>
 <tr>
  <td height=350>
  </td>
 </tr>
</font><font face="Arial" size="2"></table>

In the top row, add a table and a cell for each link button control for how many steps there will be in your wizard.  Assign the CSS class of IntPanelTab to the table.  I am going to go with 4 steps here.

<table class="IntPanelTab" cellSpacing="0" cellPadding="0">
 <tr>
 <td><asp:linkbutton id="lbStep1" runat="server" CausesValidation="False">Step 1</asp:linkbutton></td>
 <td><asp:linkbutton id="lbStep2" runat="server" CausesValidation="False">Step 2</asp:linkbutton></td>
 <td><asp:linkbutton id="lbStep3" runat="server" CausesValidation="False">Step 3</asp:linkbutton></td>
 <td><asp:linkbutton id="lbStep4" runat="server" CausesValidation="False">Step 4</asp:linkbutton></td>
 </tr>
</table>

Make sure that CausesValidation="False" is on all of your link buttons; otherwise, you will find yourself very frustrated with your wizard if you are using validator controls.

In your bottom table row, put a table inside and assign the CSS class of “IntPanel” to it. Inside this table, put a panel for each of your steps with a table inside of it for nice formatting of your form elements. Once again, I will use 4.

<asp:panel id="pnl1" Runat="server">
 <TABLE width="100%">
  <TR>
   <TD align=right>
   </TD>
   <TD>
   </TD>
  </TR>
 </TABLE>
</asp:panel>


View Entire Article

User Comments

Title: Nice Job   
Name: Manish Jadhav
Date: 2008-03-11 1:20:42 PM
Comment:
That was a nice article. Thanks.
Title: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x   
Name: Honey
Date: 2006-09-04 4:16:01 AM
Comment:
This is very helpful and excellent article
Title: CodeSnip: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x.   
Name: Brian Law
Date: 2005-03-22 2:37:11 PM
Comment:
Thx~....Your guide is cool..I've modify your guide and successfully create a Prev Next Wizard base on your tutorial.
Title: < Prev Next>   
Name: Tom Blanchard
Date: 2005-03-15 5:30:03 PM
Comment:
Manish, I will be adding some more articles in relation to this one very soon. The next one I was planning was on how to handle this behaviour client side.

I will take your idea under consideration and maybe do a third one that contains and idea for that, as well as, building the interface from a database query.

Tom
Title: CodeSnip: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x.   
Name: Manish Jadhav
Date: 2005-03-15 5:17:59 PM
Comment:
Nice article.
Do you have any sample that demonstrates the "Next" & "Previous" kind of wizard interface?

- Manish Jadhav
Title: CodeSnip: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x.   
Name: Mark Priestap
Date: 2005-02-21 10:01:44 AM
Comment:
This was a brilliant article.
Title: CodeSnip: Simulating the ASP.NET 2.0 Wizard Control with ASP.NET 1.x.   
Name: Simon
Date: 2005-02-02 3:14:38 PM
Comment:
This was a brilliant article. Thanks for the great details.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-26 10:21:34 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search