我正在尝试将 Ajax Calender 扩展器控件添加到我的网络表单中。我添加了下载的最新版本 ajax 并将其复制到我的应用程序 bin 文件夹中。当我运行我的应用程序时,日期控制不显示。正在使用 VS2012 EXPRESS。有人知道
做错了什么吗?我看过几个样本,但仍然不适合我。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add-treatment.aspx.cs" Inherits="Practice_project.Account.Add_treatment" %>
<%@ 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">
<header>
<img src="../Images/Gambia_Coat_of_Arms.jpg" />
</header>
<div>
<fieldset>
<legend>Add treatment for the Patient
</legend>
<ol>
<li>
<asp:Label ID="lbl_treatment" runat="server">Treatment</asp:Label>
<asp:TextBox ID="treatment_id" runat="server"></asp:TextBox>
<%--<asp:CompareValidator runat ="server"></asp:CompareValidator>--%>
</li>
<li>
<asp:Label ID="No1" runat="server">Nº Days on F75</asp:Label>
<asp:TextBox ID="f75" runat="server"></asp:TextBox>
</li>
<li>
<asp:Label runat="server" ID="No2">Nº Days on F100</asp:Label>
<asp:TextBox ID="f100" runat="server"></asp:TextBox>
</li>
<li>
<asp:Label ID="No3" runat="server">Nº Days on RUTF</asp:Label>
<asp:TextBox ID="rutf" runat="server"></asp:TextBox>
</li>
<li>
<asp:Label ID="No4" runat="server">Type RUTF</asp:Label>
<asp:TextBox ID="ruft_type" runat="server"></asp:TextBox>
</li>
<li>
<asp:Label ID="No5" runat="server">Nº Days on Weaning Foods</asp:Label>
<asp:TextBox ID="wfood" runat="server"></asp:TextBox>
</li>
<li>
<asp:Label ID="discharge" runat="server">Date of Discharge</asp:Label>
<asp:TextBox ID="discharge_date" runat="server"></asp:TextBox>
<asp:Image ID="Image1" runat="server" />
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="discharge_date" PopupButtonID="Image1" ></asp:CalendarExtender>
</li>
</ol>
</fieldset>
</div>
</form>
</body>
</html>