locked
numericupdown control cannot apply on textbox (AutoPostback=true) RRS feed

  • Question

  • User944339287 posted

    Hi guys, my page will keep refresh if I set AutoPostback = true to my textbox. Please advise. TQ

    <asp:DataGrid ID="MyDataGrid" runat="server" DataKeyField="PID">
    <Columns>                                                                              
      <asp:TemplateColumn HeaderText="Qty.">              
      <ItemTemplate>
      <asp:TextBox ID="txt_quantity" runat="server" Text='<%#Container.DataItem("quantity")%>' AutoPostBack="True" OnTextChanged="QuantityChanged"></asp:TextBox>
      <cc1:numericupdownextender ID="nude_quantity" runat="server" TargetControlID="txt_quantity" width="70" minimum="1" maximum="99" />
      </ItemTemplate>                               
      </asp:TemplateColumn>  
    </asp:DataGrid>

     

    Saturday, November 30, 2013 10:26 PM

Answers

  • User-183374066 posted

    One thing you can do is to move your method to service and call them from Extender properties 

    ServiceDownPath="WebService1.asmx"
    ServiceDownMethod="PrevValue"
    ServiceUpPath="WebService1.asmx"
    ServiceUpMethod="NextValue"

    Or Try to do postback from javascript .. See Raymond Reply

    http://forums.asp.net/t/1170015.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, December 1, 2013 4:07 AM

All replies