Link to home
Start Free TrialLog in
Avatar of ipjyo
ipjyoFlag for United States of America

asked on

How to bind data based on the view that has been selected using a MultiView control in asp.net 2.0 ?

Hi,
I am trying to implement Tabs functionality using multiview control.
Could you please tell me how do we bind data based on the view that has been selected. Which event do we fire to do this?  I referred the following link to refer the MultiView control.
http://www.codeproject.com/KB/custom-controls/TabControl.aspx

Thanks for the help
Avatar of Toms Edison
Toms Edison
Flag of India image

you can have a hidden variable in the page
when ever the view is changed set the name of the view in the hidden control
when the user submits the page to save, get the value from this hidden control and bind data based on this value
Avatar of ipjyo

ASKER

Thanks for the response!
Actually, can you please clarify if we can bind the data based on the view that has been selected and without submitting the form. Because my requirement is that I need to show different data in each view and on page_load.  Please let me know if it is possible.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of Toms Edison
Toms Edison
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ipjyo

ASKER

ok, thanks