本文介绍了模型弹出扩展器内部的ajax日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在模型popupextender中有一个文本框和一个压延扩展器.当我单击文本框时,日历扩展器将不会显示所有日期.它仅显示星期日(如su)和星期一(如mo).

请帮助我...

Hello,

I have one textbox and an calender extender inside a model popupextender. When i click on textbox then the calender extender will not display all dates. it is showing only sunday(as ''su'') and monday (as ''mo'').

Please help me...

推荐答案

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 <html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title></title>
   <style type="text/css">
   .modalBackground
   {
      background-color:#CCCCFF;
      filter:alpha(opacity=40);
      opacity:0.5;
   }

   .ModalWindow
   {
      border: solid1px#c0c0c0;
      background:#f0f0f0;
      padding: 0px10px10px10px;
      position:absolute;
      top:-1000px;
   }

    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
       <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lnkPopup" PopupControlID="panEdit" BackgroundCssClass="modalBackground" CancelControlID="btnCancel" PopupDragHandleControlID="panEdit"></cc1:ModalPopupExtender>
      <a id="lnkPopup" runat="server">Show Popup</a>
      <asp:Panel ID="panEdit" runat="server" Height="180px" Width="400px" CssClass="ModalWindow">
        <h1>Edit</h1>
        <table width="100%">
            <tr>
                <td class="formtext" style="height: 23px; width: 150px;" align="left">
                    Fields1:
                </td>
                <td>
                    <asp:TextBox ID="txtFields1" runat="server"></asp:TextBox>
                    <cc1:CalendarExtender runat="server" ID="ss" TargetControlID="txtFields1" ></cc1:CalendarExtender>
                </td>
            </tr>
       </table>
       <br />
       <asp:Button ID="Button1" runat="server" Text="Update" />
       <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
</asp:Panel>
    </div>
    </form>
</body>
</html>


这篇关于模型弹出扩展器内部的ajax日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 15:46