M
M. Ali Qureshi
Hi,
Another question from a newbie....
Scenario:
- I have a multiview on page "MultiView1". This contains 2 views inside it
(ViewList and ViewInsert).
- ViewList shows data in a grid control.
- ViewInsert have a few textfields with validation controls attached. These
fields will insert data in the table.
- There are 2 buttons (placed outside the multiview) which should toggle
between 2 views (Button1 and Button2)
- PageLoad sets the ActiveView to "ViewList"
Problem:
When i click on button2, it toggles the view and shows ViewInsert
When i click button1, which should toggle again to show ViewList, the field
validators give error that the required fields are not filled.
I understand that this is working as it should as the button posts back the
page.
My question is that how can i toggle between views without validating the
fields?
Thanks for help.
/MAQ
Another question from a newbie....
Scenario:
- I have a multiview on page "MultiView1". This contains 2 views inside it
(ViewList and ViewInsert).
- ViewList shows data in a grid control.
- ViewInsert have a few textfields with validation controls attached. These
fields will insert data in the table.
- There are 2 buttons (placed outside the multiview) which should toggle
between 2 views (Button1 and Button2)
- PageLoad sets the ActiveView to "ViewList"
Problem:
When i click on button2, it toggles the view and shows ViewInsert
When i click button1, which should toggle again to show ViewList, the field
validators give error that the required fields are not filled.
I understand that this is working as it should as the button posts back the
page.
My question is that how can i toggle between views without validating the
fields?
Thanks for help.
/MAQ