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
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
c#, datatable, aspx 4 53
Adjust the codes 3 64
ASP.NET Load html part first, then start function 2 40
Run software updates from the website 6 51
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 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