c# - Submitting gridview through jquery -
hi have excel or can use csv file 3 columns. name, age & city. getting data datatable binding gridview display on page. want take gridview whole table or iterate through each row , process in process.cs through jquery write database. problem jquery, not working correctly.
code behind binding gridview:
gridview1.datasource = primesupplier.tolist(); gridview1.databind();
on aspx page have:
<form id="mainform" runat="server"> <asp:panel id="panel1" runat="server"> <div style="width: 100%; height: 310px; overflow:scroll"> <asp:gridview id="gridview1" runat="server" cellpadding="6" cellspacing="5" allowpaging="true" allowsorting="true" > </asp:gridview> </form> $(document).ready(function () { var stempval = null; <script type="text/javascript"> $(document).ready(function () { $("#gridview1").ajaxsubmit( "./folder1/process.aspx" , function (response) { ji('success' , , function () { ("./"); } ); }); });
the jquery function submitting #gridview1 not working. trying either pass whole gridview or iterate through each row , write database. please help.
Comments
Post a Comment