How to use tab container control in ajax?

aswinialuri-19361
Posted by aswinialuri-19361 under ASP.NET AJAX category on | Points: 40 | Views : 1243
code in .aspx page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Tabcontair.aspx.cs" Inherits="Tabcontair" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2"
Width="500px" ScrollBars="Vertical">
<asp:TabPanel ID="tb1" runat="server" >
<HeaderTemplate>
Home</HeaderTemplate>
<ContentTemplate>
THIS IS Home page</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="tb2" runat="server">
<HeaderTemplate>Content</HeaderTemplate>
<ContentTemplate>
this is content</ContentTemplate></asp:TabPanel>

<asp:TabPanel ID="tb3" runat="server">
<HeaderTemplate>About us</HeaderTemplate>
<ContentTemplate>
this is tab3</ContentTemplate></asp:TabPanel>
</asp:TabContainer>
</div>
</form>
</body>
</html>

I hope you understand

Comments or Responses

Login to post response