TabContainer不会出现在浏览器中 [英] TabContainer does not appear in browser

查看:73
本文介绍了TabContainer不会出现在浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hye ..我以前尝试将tabcontainer ajax控件放在我的页面中,但是当我在浏览器中查看内容时,内容没有出现,最终导致失败。我一直在努力,直到现在,但同样的事情发生了。它没有显示任何错误,但它只是没有显示。有没有人可以帮助我查看我的代码,看看我可以在哪里使代码正确?

我使用的是VS 2008和AjaxControlToolkit Net 3.5

这是我的代码。



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>

推荐答案

如果您使用的是.net 4.0 / 4.5,请检查您是否添加了AjaxTookitScriptManager(而不是ScriptManager通常添加在.net 2.0中)。我遇到了同样的问题,并从这个中找到了答案。备注
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


您试试这个网站


我的标签容器似乎没有任何问题。相同的代码对我有用。确保您可以访问ajax工具包。



请参见此处 [ ^ ]样本,但它类似于你的html。
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.


这篇关于TabContainer不会出现在浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆