Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hye..I am used to try putting tabcontainer ajax control in my page before but it ended up with a failure where the content does not appear when i view it in the browser. I keep trying until now, but the same thing happen. It does not show any error but it just does not show up. Is there anybody can help me going through my code and see where it is possible for me to make the code right?
I am using VS 2008 and AjaxControlToolkit Net 3.5

Here is my code.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="tabcontainer.aspx.vb" Inherits="tabcontainer" %>
<%@ 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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
        <br />
        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1" 
            Height="82px" Width="724px">
            <asp:TabPanel runat="server" HeaderText="Personal Information" ID="TabPanel1">
                <ContentTemplate>
                    This is personal information panel
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Academic Information">
                <HeaderTemplate>
                    Academic Information
                </HeaderTemplate>
                <ContentTemplate>
                    this is academic information panel
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    
    </div>
    </form>
</body>
</html>
Posted
Updated 11-Apr-11 22:19pm
v2
Comments
m@dhu 12-Apr-11 4:20am    
Code wrapped in pre blocks.
snamyna 12-Apr-11 4:24am    
Sorry ;)

If you are using .net 4.0/4.5, check that you have added AjaxTookitScriptManager (and not ScriptManager usually added in .net 2.0). I ran into the same problem and figured that out from this notes
 
Share this answer
 
 
Share this answer
 
v2
Comments
snamyna 12-Apr-11 4:36am    
I have gone through this site. but I cant really get it when it does not show any example. The example above the website does not show its code. I need to see any code that successfully ran so that i can see what is wrong with my code :)
Rakesh From Patna 12-Apr-11 4:53am    
You try other ajax control work successfully or not
I don't seem anything wrong with your tab container. The same code has worked for me. Make sure you could access the ajax tool kit.

See here[^] for a sample but it is similar to your html.
 
Share this answer
 
Comments
snamyna 12-Apr-11 5:12am    
I have been referring to many references. Dont know what is actually wrong with my code. :(
m@dhu 12-Apr-11 5:21am    
Test whether you can access the toolkit by using any other ajax control.
snamyna 12-Apr-11 6:02am    
i have tried using accordion and calender extender but both also does not work in browser.
m@dhu 12-Apr-11 6:06am    
Then you got a problem with the ajax controls remove the toolkit and add the toolkit again.
snamyna 12-Apr-11 6:16am    
i have already tried to remove the toolkit for 3 times using different toolkit but still got the same result. i put the toolkit folder at C drive. does that anything to do with the problem?

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