0
我正在嘗試將Ajax Calender擴展器控件添加到我的Web表單中。我添加了最新版本的ajax並將其複製到我的應用程序bin文件夾中。當我運行我的應用程序時,日期控件不是顯示。我正在使用VS2012 EXPRESS.Does任何一個知道我在做什麼
錯?我看了幾個樣本,但仍然不適合我。將Ajax日曆擴展器添加到我的Web表單
<%@ 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>