c# - Redirect to a form on button click in Grid View -
i have build gridview on webpage, having 2 buttonfields columns: accept , reject. when click on reject button, want show popup form input fields , store data database.
i'm stuck @ showing popup on clicking reject button field. possible?v
put code in .aspx file
<asp:templatefield headertext="edit" itemstyle-width="150px"> <itemtemplate> <asp:linkbutton id="btnedit" runat="server" commandname="edit" text="edit" causesvalidation="false"/> </itemtemplate> </asp:templatefield>
put code in .cs file
if (e.commandname.equals("edit")) { string querystring="val"; page.clientscript.registerstartupscript(gettype(), "", "window.open('page.aspx?qs=" + querystring + "','','width=500,height=500');"", true); }
Comments
Post a Comment