Skip to content

Wizard control - complete step always show in a new page?

nothing else

Asked Jun 16, 2013, 10:03 AM EDT1 answer
Share
LinkedInX
I hope you can solve my problem. I wanna when i click finish button (in Confirm step)...A summary information will show in Finished step..Please see my code:
Thank for reading and have a nice day :)


ASPX

 
 

 
 
 
 

 
 
 
 
 
 
 
 
 
 

 
 

 
 

 
 

 
 

 

 
 
 

 
 
 
 
 
 

 
 

 
 

 

 
 
 

 
 
 
 
 
 
 
 
 
 

 
 

 
 

 
 

 
 

 

 
 
 
Finished

 
 
 
 

     
     
     

  •   <%# Eval("Name")%>

  •  
     
     

     
 
 

 


C#:
  protected void Page_Load(object sender, EventArgs e)
  {
  Wizard1.PreRender += new EventHandler(Wizard1_PreRender);  
  }
  protected void Wizard1_Load(object sender, EventArgs e)
  {
  Label5.Text = TextBox1.Text;
  Label6.Text = TextBox2.Text;
  }

  protected string GetClassForWizardStep(object wizardStep)
  {
  WizardStep step = wizardStep as WizardStep;

  if (step == null)
  {
  return "";
  }
  int stepIndex = Wizard1.WizardSteps.IndexOf(step);

  if (stepIndex   {
  return "prevStep";
  }
  else if (stepIndex > Wizard1.ActiveStepIndex)
  {
  return "nextStep";
  }
  else
  {
  return "currentStep";
  }
  }
  protected void Wizard1_PreRender(object sender, EventArgs e)
  {
  Repeater SideBarList = Wizard1.FindControl("HeaderContainer").FindControl("SideBarList") as Repeater;
  SideBarList.DataSource = Wizard1.WizardSteps;
  SideBarList.DataBind();
  }

CSS
#wizHeader li .prevStep
{
  background-color: #669966;
}
#wizHeader li .prevStep:after
{
  border-left-color:#669966 !important;
}
#wizHeader li .currentStep
{
  background-color: #C36615;
}
#wizHeader li .currentStep:after
{
  border-left-color: #C36615 !important;
}
#wizHeader li .nextStep
{
  background-color:#C2C2C2;
}
#wizHeader li .nextStep:after
{
  border-left-color:#C2C2C2 !important;
}
#wizHeader
{
  list-style: none;
  overflow: hidden;
  font: 18px Helvetica, Arial, Sans-Serif;
  margin: 0px;
  padding: 0px;
}
#wizHeader li
{
  float: left;
}
#wizHeader li a
{
  color: white;
  text-decoration: none;
  padding: 10px 0 10px 55px;
  background: brown; /* fallback color */
  background: hsla(34,85%,35%,1);
  position: relative;
  display: block;
  float: left;
}
#wizHeader li a:after
{
  content: " ";
  display: block;
  width: 0;
  height: 0;
  border-top: 50px solid transparent; /* Go big on the size, and let overflow hide */
  border-bottom: 50px solid transparent;
  border-left: 30px solid hsla(34,85%,35%,1);
  position: absolute;
  top: 50%;
  margin-top: -50px;
  left: 100%;
  z-index: 2;
}
#wizHeader li a:before
{
  content: " ";
  display: block;
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 30px solid white;
  position: absolute;
  top: 50%;
  margin-top: -50px;
  margin-left: 1px;
  left: 100%;
  z-index: 1;
}   
#wizHeader li:first-child a
{
  padding-left: 10px;
}
#wizHeader li:last-child
{
  padding-right: 50px;
}
#wizHeader li a:hover
{
  background: #FE9400;
}
#wizHeader li a:hover:after
{
  border-left-color: #FE9400 !important;
}   
.content
{
  height:150px;   
  padding-top:75px;
  text-align:center;
  background-color:#F9F9F9;
  font-size:48px;
}

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • 0
      anyone please help me?
      0