【问题标题】:Ajax CalendarExtender not displaying 2nd row onAjax CalendarExtender 不显示第二行
【发布时间】:2018-06-28 02:40:30
【问题描述】:

我有一个 Ajax CalendarExtender,ID 到一个文本框,数据来自多个记录。 如果文本框都是空白的,则没有赋值。文本框将通过单击弹出日历。

如果文本框包含一个值,第一个文本框将弹出一个空白日历,其余的将不弹出任何内容。

我有带有 ajax 日历的独立文本框,它们工作正常。这是我所拥有的赋值。

               <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns = "false">
                       <Columns>
                         <asp:TemplateField HeaderText="Maturity Date">
                           <ItemTemplate >
                             <asp:TextBox ID="txtMatureDate"  text="4" runat ="server"></asp:TextBox>
                             <ajaxToolkit:CalendarExtender ID="maturitydate" TargetControlID="txtMatureDate" Format="MMMM,yyyy"  runat ="server" DefaultView="Months" />
                          </ItemTemplate>
                        </asp:TemplateField>
                      </Columns>
                   </asp:GridView>

这里是数据源。

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim SqlDataSource3 As New SqlDataSource()
    SqlDataSource3.ID = "SqlDataSource3"
    Me.Page.Controls.Add(SqlDataSource3)
    SqlDataSource3.SelectCommand = "select maturitydate from PFW_LPMCalc_test where  maturitydate >= '02/01/2017' and maturitydate <= '07/31/2017' order by maturitydate desc"
    SqlDataSource3.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("jdwholegoods").ConnectionString
    GridView1.DataSource = SqlDataSource3,
    GridView1.DataBind()
End Sub

我有脚本管理器并且

【问题讨论】:

  • 我将此代码放在另一个项目中,它可以工作。所以我在这个项目中添加了一些东西来制造这个问题......哎呀。

标签: asp.net ajax gridview


【解决方案1】:

好的.. 所以我卸载了 Ajax Toolkit 并重新安装。它有一个更新的版本,虽然我不认为它做到了。我的猜测是在当前版本之上有一些东西,它需要回到顶部。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-14
    • 1970-01-01
    • 2011-01-09
    • 2020-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多