i want to insert a tab control in myproject.. am using asp.net with ajax
thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Master BillaPosted Aug 12, 2009, 6:04 AM
Please check followings
1. do you have added AJAX control lib to as Reference to your website
2. make sure you have change the config file also to use the AJAX.
Here is more detail to change config file
http://www.dotnetcurry.com/ShowArticle.aspx?ID=178
thank you
moni moniPosted Aug 12, 2009, 5:50 AM
Master BillaPosted Aug 12, 2009, 5:17 AM
Just add ajax to your web project, then add this code in your html page(i have give full code here)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
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">
head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
asp:ScriptManager>
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server">asp:TextBox><br />
<asp:Button ID="Button1" runat="server" Text="Button" />
ContentTemplate>
cc1:TabPanel>
<cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
<ContentTemplate>
<asp:TextBox ID="TextBox2" runat="server">asp:TextBox><br />
<asp:Button ID="Button2" runat="server" Text="Button" />
ContentTemplate>
cc1:TabPanel>
<cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
<ContentTemplate>
<asp:TextBox ID="TextBox3" runat="server">asp:TextBox><br />
<asp:Button ID="Button3" runat="server" Text="Button" />
ContentTemplate>
cc1:TabPanel>
cc1:TabContainer>
<br />
div>
form>
body>
html>