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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -