Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to fire update command in my grid-view using JavaScript or jquery.
Below is my code of grid-view in aspx
XML
<asp:TemplateField HeaderText="Quantity" ItemStyle-Width="12%">
   <ItemTemplate>
     
  <asp:TextBox ID="TxtQty" runat="server" Text='<%#  Eval("p_quantity") %>' Width="39px" ></asp:TextBox>
   <asp:LinkButton ID="LnkView" runat="server" CommandName="Update" CssClass="new28">Update</asp:LinkButton>
           </ItemTemplate>
   <HeaderStyle HorizontalAlign="Left" />
      </asp:TemplateField>



Below is my aspx.cs code
i want to call this command on text change event of TxtQty textbox.
Please help me in this code.
C#
protected void GridView1_RowCommand1(object sender, GridViewCommandEventArgs e)
   {

if (e.CommandName == "Update")
Posted
Updated 17-Apr-15 22:41pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900