Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

DescribeWizard server control with example in Share Point?
This control enables you to build a sequence of steps that are displayed to the
end users side. It is alos used either display or gather information in small steps in system.


using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.WebPartPages;
namespace LoisAndClark.WPLibrary
{
public class MyWP : WebPart
{
protected override void CreateChildControls()
{
Wizard objWizard = new Wizard();
objWizard.HeaderText = "Wizard Header";
for (int i = 1; i <= 6; i++)
{
WizardStepBase objStep = new WizardStep();
objStep.ID = "Step" + i;
objStep.Title = "Step " + i;
TextBox objText = new TextBox();
objText.ID = "Text" + i;
objText.Text = "Value for step " + i;
objStep.Controls.Add(objText);
objWizard.WizardSteps.Add(objStep);
}
this.Controls.Add(objWizard);
}
}
}