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

Skip Navigation Links
ASP.Net 2.0 Training
VS File Management
ASP.Net Image
ASP.Net Checkbox
ASP.Net ImageButton
ASP.Net RadioButton
ASP.Net Literal
ASP.Net Panel
ASP.Net LinkButton
ASP.Net Calendar
ASP.Net BulletedList
ASP.Net FileUpload
ASP.Net User Controls
ASP.Net PlaceHolder
ASP.Net Lists
ASP.Net CheckBoxList
ASP.Net DropDownList
ASP.Net Data Access
ASP.Net DetailsView
ASP.Net FormView
ASP.Net Repeater Control
ASP.Net:Master Pages
Sending EMail
MultiView
Tabbed MultiView
ASP.Net:Wizard Control
Login Controls 1
ASP.Net:Site Navigation
ASP.Net:Classes
ASP.Net:SQLDataSource Control
ASP.Net:Error Handling
ASP.Net:dataTables
ASP.Net:datasets

Visit my other site:

Free Flash 8 tutorials and training

Free Dreamweaver Video Tutorials

Free PHP 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