Multiview in asp.net
Here by this article we learn how to use Multiview and View in asp.net
Multiview is very usefull you can use it instead of content pages for master pages.
First
Write this code in asp.net first page
Default.aspx:
<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”_Default” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <form id=”Form” runat=”server”> <div id=”header”> <asp:Label ID=”Label1? runat=”server” Font-Bold=”True” Font-Size=”Medium” Font-Underline=”True” Text=”View and MultiView Controls Example”></asp:Label> OnClick=”Button1_Click” BackColor=”Black” ForeColor=”#00CCFF” /> <asp:Button id=”Button2? runat=”server” Text=”Click Me to See View2? OnClick=”Button2_Click” BackColor=”Black” ForeColor=”#00CCFF” /> <asp:Button id=”Button3? runat=”server” Text=”Click Me to See View3? OnClick=”Button3_Click” BackColor=”Black” ForeColor=”#00CCFF” /> <br /><br /> <asp:MultiView id=”MultiView1? runat=”server” ActiveViewIndex=0> <asp:Image ID=”Image3? runat=”server”ImageUrl=”Loading1.gif” /> <br /> <br /> |


Join the conversation! Your thoughts help the community grow.