Skip Navigation LinksASP.Net 2.0 Training : MultiView
Banner for ASP.Net 2.0 training classes in Visual Basic 2005 

Skip Navigation Links
Visit my other site:

certification training

Free Flash tutorials and training

Free Dreamweaver Video Tutorials

Free PHP Training

Visual Basic Windows Training




If you like this site please link to it


Displaying a Multi-Part Form

The Multiview contol can be used to divide a page into multiple sub pages

MultiView control has following commands

NextView

Activate the next view control

PrevView

Activate the previous view control

SwitchViewByID

Activate the view identified by the button control’s commandArgument

SwitchViewByIndex

Activate the view identified by the button control’s commandArgumen

  • Open Visual Studio
  • Create a web page
  • Drag a multiView control to the page, name it multi1
  • Add 3 view controls in the mutliview control

  • Set the MultiView’s activeViewIndex to 0
  • In View1
    • Add a textbox control
      • Name it txtName
    • add a label above the textbox
      • Set the label’s text to Enter your name
      • Set the label’s id to lblName
      • Set the label’s associatedControlID to txtName
    • Add a button control
      • Set the text to Next
      • Set the commandName to NextView
  • In View 2
    • Add a textbox control
      • Name it txtEmail
    • Add a label
      • Name it lblEmail
      • Set the text to Enter your email
      • Set the associatedControlId to txtEmail
    • Add a button control
      • Set the text to Next
      • Set the commandName to NextView
  • In view 3
    • Type Name:
    • add a label
      • name it lblResultName
    • Press enter
    • Type Email:
    • Add a label
      • Name it lblResultEmail

  • Go to the code View
  • Select View3 and Activate

Add this code:

lblResultName.text=txtName.text

lblResultEmail.text=txtEmail.text


      ASP.Net 2.0 tutorials & training