2013-06-03 82 views
-1

下面的代碼工作正常,我不小心刪除了ajax工具包,當我重新配置它的黑色顯示日曆上點擊文本box.please告訴我如何處理它。 而且我請求您回覆很快日曆擴展工具刪除後,然後添加ajax工具包不工作

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/emp.Master" CodeBehind="empleaveapp.aspx.vb" Inherits="abc.WebForm10" %> 
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 



<head />. 

<%-- 
<head id="Head2" runat="server" />. 

--%> 
<head />. 
    <asp:ScriptManager ID="ScriptManager1" runat="server"> 
      </asp:ScriptManager> 
      <asp:Label ID="Label1" runat="server" Text="From"></asp:Label> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:TextBox ID="calefrom" runat="server" CssClass="textbox" Height="16px" 
     Width="157px"></asp:TextBox> 
    <cc1:CalendarExtender ID="calefrom_CalendarExtender" runat="server" 
     Enabled="True" TargetControlID="calefrom" Format="yyyy-MM-dd"> 
    </cc1:CalendarExtender> 
    &nbsp;&nbsp;<asp:CompareValidator ID="CompareValidator2" runat="server" 
     ControlToCompare="txttdate" ControlToValidate="calefrom" CssClass="active" 
     ErrorMessage="Please enter a day after today's date" 
     Operator="GreaterThan" > </asp:CompareValidator> 
    <br /> 
    <asp:TextBox ID="txttdate" runat="server" Width="1px"></asp:TextBox> 
    <br /> 
    <asp:Label ID="Label2" runat="server" Text="To"></asp:Label> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:TextBox ID="caleto" runat="server" Height="20px" CssClass="textbox"></asp:TextBox> 
    <cc1:CalendarExtender ID="caleto_CalendarExtender" runat="server" 
     Enabled="True" TargetControlID="caleto" Format="yyyy-MM-dd"> 
    </cc1:CalendarExtender> 
     <asp:CompareValidator ID="CompareValidator1" runat="server" Format="yyyy-MM-dd" 
     ControlToCompare="calefrom" ControlToValidate="caleto" 
     ErrorMessage="To date can not be smaller then from date" 
     Operator="GreaterThanEqual"></asp:CompareValidator> 
     <br /> 
    <br /> 
    <asp:Label ID="Label3" runat="server" Text="Reason"></asp:Label> 
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtreason" runat="server" 
     CssClass="textbox"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
     ControlToValidate="txtreason" 
     ErrorMessage="Reason is must for manager to know better"></asp:RequiredFieldValidator> 
    <br /> 
    <br /> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:Button ID="Button1" runat="server" Text="Send Request" /> 
    <p> 
     &nbsp;</p> 
    <p> 
     &nbsp;</p> 
    <p> 
     &nbsp;</p> 
    <p> 
     &nbsp;</p> 
    <p> 
    </p> 
</asp:Content>  
+0

瀏覽器中顯示的錯誤是什麼? –

回答

0

這是你的ScriptManager。它應該是cc1:ToolkitScriptManager而不是asp:ScriptManager。您需要工具包的腳本才能使擴展器正常工作。