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
ipjyoAsked:
Who is Participating?
 
TechTiger007Connect With a Mentor Commented:
Yes you can bind data based on the selected view.
If you want to do that without post back then you have to use ajax to achieve this
0
 
TechTiger007Commented:
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
0
 
ipjyoAuthor Commented:
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
0
 
ipjyoAuthor Commented:
ok, thanks
0
All Courses

From novice to tech pro — start learning today.