Solved

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

Posted on 2008-10-17
4
351 Views
Last Modified: 2013-11-07
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
0
Comment
Question by:ipjyo
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22744374
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
 

Author Comment

by:ipjyo
ID: 22744569
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
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
ID: 22744712
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
 

Author Comment

by:ipjyo
ID: 22745040
ok, thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question