0
我已經正確安裝了控制工具包(DLL在應用程序的bin文件夾,能控件添加到工具箱中VS)配置問題asp.net AJAX控件工具包3.5
我的問題是,沒有任何控制的工作對於我來說,我幾乎可以肯定我在我的設置中缺少了一些東西。
例如:
手風琴窗格:頭被渲染,但窗格是不可點擊(因此不展開)
組合框:控制被渲染,但列表項不顯示(我試過用靜態列表項和數據綁定項)
看到下面的代碼。
Other Info
Windows Server 2008 64 bit
VS 2008
.NET 3.5
ACCORDION
<%@ Page Language="C#" %>
<%@ 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 id="Head1" runat="server">
<title>Using the AJAX Control Toolkit in ASP.NET 3.5</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
Password: <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" /><br />
<cc1:PasswordStrength ID="TextBox1_PasswordStrength" runat="server"
Enabled="True" TargetControlID="TextBox1">
</cc1:PasswordStrength>
<cc1:DropShadowExtender ID="TextBox1_DropShadowExtender" runat="server"
Enabled="True" TargetControlID="TextBox1">
</cc1:DropShadowExtender>
<br />
<br />
<cc1:Accordion ID="Accordion1" runat="server" RequireOpenedPane="false">
<Panes>
<cc1:AccordionPane ID="AccPane1" runat="server">
<Header>This is Pane 1.</Header>
<Content><br />This is pane one content.</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccPane2" runat="server">
<Header>This is Pane 2.</Header>
<Content><br />This is pane two content.</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccPane3" runat="server">
<Header>This is Pane 3.</Header>
<Content><br />This is pane three content.</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
</form>
</body>
</html>
組合框
<%@ Page Language="C#" %>
<%@ 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">
<script runat="server">
protected void btnSubmit_Click(object sender, EventArgs e)
{
lblSelection.Text = "You picked " + ComboBox1.SelectedItem.Text;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Static</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
Describe how spicy you like your food:
<br />
<cc1:ComboBox ID="ComboBox1" runat="server" RenderMode="Block">
<asp:ListItem Text="Mi65y6yld" Value="0" />
<asp:ListItem Text="Medium" Value="1" />
<asp:ListItem Text="Hot" Value="2" />
</cc1:ComboBox>
<asp:Button
ID="btnSubmit"
Text="Submit"
Runat="server" OnClick="btnSubmit_Click" />
<hr />
<asp:Label
ID="lblSelection"
Runat="server" />
</div>
</form>
</body>
</html>