Asp.net Ajax文本框日历扩展程序更新,但仅在屏幕上

时间:2015-07-18 21:39:14

标签: asp.net ajax calendarextender

代码如下。我已尝试过其他帖子的多个解决方案,但都没有效果。这应该是一项非常简单的任务。单击图像后,将显示日历,文本框已更新,但是当我获得.text属性时,它仍然保持不变。 Thanx任何帮助

<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Inherits="Comunicazioni_ClassificaInterna" Title="Classifica interna" Codebehind="ClassificaInterna.aspx.cs" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">



    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True" EnableScriptLocalization="False"> </asp:ScriptManager>

    <br />



    <asp:TextBox ID="tbCompetitionDate" runat="server" ReadOnly="True"></asp:TextBox>
    <cc1:CalendarExtender ID="tbCompetitionDate_CalendarExtender" runat="server" PopupButtonID="imgPopup" Format="dd/MM/yyyy" BehaviorID="tbCompetitionDate_CalendarExtender" TargetControlID="tbCompetitionDate" FirstDayOfWeek="Monday" />
    <asp:ImageButton ID="imgPopup" ImageUrl="../../../Resources/Pics/calendar.png" ImageAlign="Bottom" runat="server" Height="25px" Width="30px" />

    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />

</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="FooterPlaceHolder" runat="server">      
        <img alt="" src="../../Resources/Pics/Footer.png"  style="margin-left:500px; margin-top:200px;   width:300px;height:50px" />
    </asp:Content>

0 个答案:

没有答案