.Net Gate

MultiView control in ASP.NET 2.0

During the past days of ASP.NET 1.1 we used to use multi panels whenever we needed to separate our controls in a specific block and to show/hide the panel whenever needed
now ASP.NET 2.0 provide us with the Multiview control it is used for the same concept with less overhead

here is an example

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="view1" runat="server" >
</asp:View>
<asp:View ID="view2" runat="server"></asp:View>
</asp:MultiView>

and then you can use the following to activate a specific view

MultiView1.SetActiveView(view2);
 

 

Published Saturday, March 31, 2007 5:44 AM by hus
New Comments to this post are disabled

Post Calendar

<March 2007>
SuMoTuWeThFrSa
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567

News

Add to Technorati Favorites

Syndication






© All rights are reserved