DescribeWizard server control with example in Share Point?

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);

}

}


By:harry
Date:2029-12-08 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related ASP.NET SUB Links

ASP.NET SUB interview questions and answers for experienced and fresher