hey vikas


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 
C#
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; }