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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top