Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use Ajax TabPanel but it isn't display anything at run time. It gives me this Error :
Internet Explorer
Problems with this page might prevent if from being displayed properly or functioning propely.......
Line : 90
Char: 1
Error : 'Sys' is undefined
Code : 0
URL: http://localhost:3101/Ajax/Default7.aspx

my code :
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default7.aspx.cs" Inherits="Default7" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ 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">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Width="300px">
            <%--Use TabPanel for language --%>
            <cc1:TabPanel runat="server" HeaderText="Programming Language" ID="TabPanel1">
                <ContentTemplate>
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                        <asp:ListItem>c#</asp:ListItem>
                        <asp:ListItem>J#</asp:ListItem>
                        <asp:ListItem>vb</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Button ID="Button1" runat="server" Text="Save" />
                </ContentTemplate>
            </cc1:TabPanel>
            <%--Use Second TabPanel for database --%>
            <cc1:TabPanel runat="server" HeaderText="Database" ID="TabPanel2">
                <ContentTemplate>
                    <asp:RadioButtonList ID="RadioButtonList2" runat="server">
                        <asp:ListItem>sql server</asp:ListItem>
                        <asp:ListItem>My sql</asp:ListItem>
                        <asp:ListItem>oracle</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Button ID="Button2" runat="server" Text="Save" />
                </ContentTemplate>
            </cc1:TabPanel>
        </cc1:TabContainer>
    </form>
</body>
</html>
Posted
Comments
Sandeep Mewara 11-May-11 13:41pm    
Is your website AJAX enabled? Is any other AJAX thing is working? Try putting a label in an Update Panel and see.

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

  Print Answers RSS


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