Saturday, May 19, 2012

How to use Multiview in asp.net

Multi view is a such asp.net intrinsic control and it is collection of views.A multi view can not have any control.A multi view can have view multi view by default not show any view. multi view can display only single view.All views can share the content declared in the page because they all belong to single page only

Here i will show how to use by placing 3 buttons/link buttons and multi view in the page.Then place the views inside the multi view control and place required controls inside views
protected void buttin1_click()
{
MultiView1.ActiveViewIndex =0;
}
protected void buttin2_click()
{
MultiView1.ActiveViewIndex =1;
}
protected void buttin3_click()
{
MultiView1.ActiveViewIndex =2;

No comments:

Bel