javascript - How to display gridview data in popup in .net? -
now have been created display gridview data in new tab on click event.
but need display in popup.
here code:
protected void loginfo_click(object sender, eventargs e) { button btn = (button)(sender); response.write("<script>"); response.write("window.open('loginfo.aspx?id=" + btn.commandargument + "','_blank')"); response.write("</script>"); } aspx:
<asp:gridview id="gridview1" runat="server" autogeneratecolumns="false" datakeynames="bookid" enablepersistedselection="true" backcolor="white" height="240px" width="755px" bordercolor="red" borderwidth="2px"> <columns> <asp:boundfield datafield="id" headertext="id" insertvisible="false" readonly="true" sortexpression="book_id" > <controlstyle bordercolor="red" /> </asp:boundfield> <asp:boundfield datafield="bookid" headertext="bookid" sortexpression="bookid" /> <asp:boundfield datafield="studentid" headertext="studentid" sortexpression="studentid" /> <asp:boundfield datafield="date" headertext="date" sortexpression="date" /> <asp:boundfield datafield="returndate" headertext="returndate" sortexpression="returndate" /> <asp:boundfield datafield="returnstatus" headertext="returnstatus" sortexpression="returnstatus" /> <asp:boundfield datafield="name" headertext="name" sortexpression="name" /> <asp:boundfield datafield="address" headertext="address" sortexpression="address" /> <asp:boundfield datafield="section" headertext="section" sortexpression="section" /> <asp:boundfield datafield="class" headertext="class" sortexpression="class" /> </columns> </asp:gridview> and cs:
protected void page_load(object sender, eventargs e) { sqlconnection con = connection.dbconnection(); sqlcommand com = new sqlcommand("sp_logdetails", con); com.commandtype = commandtype.storedprocedure; com.parameters.addwithvalue("@bookid", request.querystring["id"]); sqldataadapter adp = new sqldataadapter(com); dataset ds = new dataset(); adp.fill(ds); gridview1.datasource = ds.tables[0]; gridview1.databind(); } i'm new use jquery in .net, there possible create popup without using dll , using in jquery.
can guide me fix this?
any highly appreciated.
thank you,
Comments
Post a Comment