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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Master BillaRank #2,229 · 630 reputationPosted Aug 12, 2009, 1:17 AM EDT
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>
moni moni41 reputationPosted Aug 12, 2009, 1:50 AM EDT
Master BillaRank #2,229 · 630 reputationPosted Aug 12, 2009, 2:04 AM EDT
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