client side script for server control
-
need to have a popup window asking user for yes and no when he selects delete if he says yes i go ahead and delete otherwise i return back to screen and do other things. Can I write a javascript method and call it in onclick of my delete button? will it work? not sure as delete linkbutton runat="server".
-
need to have a popup window asking user for yes and no when he selects delete if he says yes i go ahead and delete otherwise i return back to screen and do other things. Can I write a javascript method and call it in onclick of my delete button? will it work? not sure as delete linkbutton runat="server".
Sure you can use Javascript, By geting the button click event on popup, You can handle that event by passing the values...
-
need to have a popup window asking user for yes and no when he selects delete if he says yes i go ahead and delete otherwise i return back to screen and do other things. Can I write a javascript method and call it in onclick of my delete button? will it work? not sure as delete linkbutton runat="server".
-
need to have a popup window asking user for yes and no when he selects delete if he says yes i go ahead and delete otherwise i return back to screen and do other things. Can I write a javascript method and call it in onclick of my delete button? will it work? not sure as delete linkbutton runat="server".
thanx all. I tried it but getting an error can anyone help <pre> <asp:TemplateField ShowHeader="False"> <itemtemplate> <asp:LinkButton id="linkBtnSurrender" runat="server" Text="Surrender" CommandName="Surrender" CommandArgument='<%#Eval("SOVehicle.SOVehicleId") %>' onclick="confirmation()" value = "Surrender"></asp:LinkButton> </itemtemplate> </asp:TemplateField> </pre> getting this error :doh: CS0117: 'ASP.usercontrols_sovehiclepodcontrol_ascx' does not contain a definition for 'confirmation'
-
thanx all. I tried it but getting an error can anyone help <pre> <asp:TemplateField ShowHeader="False"> <itemtemplate> <asp:LinkButton id="linkBtnSurrender" runat="server" Text="Surrender" CommandName="Surrender" CommandArgument='<%#Eval("SOVehicle.SOVehicleId") %>' onclick="confirmation()" value = "Surrender"></asp:LinkButton> </itemtemplate> </asp:TemplateField> </pre> getting this error :doh: CS0117: 'ASP.usercontrols_sovehiclepodcontrol_ascx' does not contain a definition for 'confirmation'
Change onclick to onclientclick.
-
Change onclick to onclientclick.
Thanx v much.. it worked.. :-D