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
- 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
- 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
- Press enter
- Type Email:
- Add a label

- Go to the code View
- Select View3 and Activate

Add this code:
lblResultName.text=txtName.text
lblResultEmail.text=txtEmail.text


