嗨,我有 Visual Studio Express 2012 for Web 我从http://ajaxcontroltoolkit.codeplex.com/releases/view/109918安装了 AJAX Control Toolkit .NET 4.5
我将 AjaxControlToolkit.dll 添加到项目资源中,然后将其添加到 ToolBox -> 选择项目。
在设计模式下一切正常,我可以看到 TabControl,但是当我编译到网站时,控件不可见。
视觉工作室代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="JuwentWebASP_kurtyny.WebForm1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<br />
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Width="479px">
<asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
<ContentTemplate>
sdfsdfsfsdf
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
<ContentTemplate>
sdfdfsdfsdf
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
</div>
</form>
</body>
</html>
网站来源: http: //pastebin.com/YJSmAY1N