Tuesday, March 3, 2009

Use Of TabStrip In Asp.Net

First Of All you have to install component art.




<%-- Register Component Art --%>

<% @ Register Assembly = "ComponentArt.Web.UI" TagPrefix = "ComponentArt" Namespace = "ComponentArt.Web.UI" % >

< %-- Register Your Page Or Control Here --% >

< % @ Register Src="~/wuc_MyUserControlOne.ascx" TagName="wuc_MyUserControlOne" TagPrefix="uc1" % >
< % @ Register Src="~/wuc_MyUserControlTwo.ascx" TagName="wuc_MyUserControlTwo" TagPrefix="uc1" % >

< componentart:tabstrip id="tbs_Name"
runat="server"
SiteMapXmlFile="~/file.xml"
EnableViewState="False"
MultiPageId="MP_Name">
< / componentart:tabstrip >

< ComponentArt:MultiPage ID = "MP_Name" runat = "server" CssClass="MULTIPAGE" >

< ComponentArt:PageView runat = "server" >
< uc1:wuc_MyUserControlOne ID="wuc_MyUserControlOne1" runat="server" />
< / ComponentArt:PageView >

< ComponentArt:PageView runat = "server" >
< uc1:wuc_MyUserControlTwo ID="wuc_MyUserControlTwo1" runat="server" / >
< / ComponentArt:PageView >

< / ComponentArt:MultiPage >




=============================================><=======================================
Your SiteMapXmlFile Will be as shown below

< ? xml version="1.0" encoding="utf-8" ? >
< tabs >
< tab id="zero" text="Zero"> < / tab >
< tab id="one" text="One"> < / tab >
< / tabs >

No comments: