Groups | Blog | Home
all groups > asp.net webcontrols > march 2007 >

asp.net webcontrols : ASP.NET 2.0 Wizard Control


NKaufman
3/22/2007 12:07:56 PM
Hello,

I have a requirement to use the wizard control in one of my projects.

I need to create 2 templates in each of which I will have a gridview
control. I need to create a wizard at runtime. At the first step, I
need to attach template#1 so that the gridview is displayed. Then on
hitting next, I again need to create a step and attach template#1
again to display a gridview (I will be passing a parameter that will
change the contents of the second gridview). Then in this gridview, I
will evaluate the answers. If a particular answer is yes, I will
display a list of checkbox options. depending upon the number of
checkboxes selected, I will display that many steps all of which will
use template#2.

How should I start? Any pointers will be greatly appreciated.
Bruno Piovan
3/27/2007 1:15:56 AM
Have a look at http://msdn2.microsoft.com/en-us/library/aa289501(VS.71).aspx

You can also create the entire template in an ASCX file, and use the
LoadControl method to load it, like:

Wizard1.WizardSteps(0).Controls.Add(Page.LoadControl("~/Template.ascx"))

Hope this helps,
Bruno



[quoted text, click to view]

AddThis Social Bookmark Button