asp.net 2 asp:Button firering anevent on client side and server si

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a GridView with the next button :
Code:
<asp:TemplateField HeaderText="Delete?">
<ItemTemplate>
<asp:Button Text="X" ID="btnDelete" runat="server"
OnClick="DeleteGame" OnClientClick="alert(1);" UseSubmitBehavior="false" />
</ItemTemplate>
</asp:TemplateField>

i want when i pres the button to get a prompt which ask if i am sur i want
to delete, and if yes to send to a function
on server side called "DeleteGame" do some stuff

how do i do it?

thnaks in advance
peleg
 
Back
Top