Click here to Skip to main content
15,942,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I have a sample where i have placed ajax tab control but when i run the project i get empty page. I am not sure what i am missing

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

<%@ 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 style="height: 464px; width: 1095px">
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
  
        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
            Height="16px" Width="335px">
            <asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
            <ContentTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
                    <asp:Button ID="Button1" runat="server" Text="Button1" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel runat="server" HeaderText="TabPanel2" ID="TabPanel2">
               <ContentTemplate>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
                    <asp:Button ID="Button2" runat="server" Text="Button2" />
                </ContentTemplate>

            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
            <ContentTemplate>
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br />
                    <asp:Button ID="Button3" runat="server" Text="Button3" />
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>

    </div>
    </form>
</body>
</html>
Posted
Comments
Ramug10 14-Mar-14 3:28am    
have you added AjaxToolKit.dll to references??
amity21 14-Mar-14 3:38am    
Above code works fine for me in my solution.

try using ToolkitScriptManager Instead of using ScriptManager

C#
<asp:toolkitscriptmanager runat="server" ID="scrptMngr">
</asp:toolkitscriptmanager>
 
Share this answer
 
v2
Comments
ShaHam11 13-Mar-14 2:26am    
Tried its not working
let me google it for you..

[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900