What is multiviewing?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Abhijit PatilRank #700 · 3.4K reputationPosted Mar 7, 2014, 5:19 AM EST
The multiview control is a new feature of asp.net 2.0 which was introduced with visualstudio 2005.The main advantage of the multiview control is tnat we can specify the required view only(Ie display the required view only) on a single page.Multiview control helps us to create different views in the same page and display the view as the user clicks the links. With Multiview control the tab functionality is achived in asp.net.
c# code
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SetDefaultView(); } } private void SetDefaultView() { MultiView1.ActiveViewIndex = 0; } protected void lnkTab1_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 0; } protected void lnkTab2_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 1; } protected void lnkTab3_Click(object sender, EventArgs e) { MultiView1.ActiveViewIndex = 2; }