Confirm the alert field in javascript and ASP.net like Hotmail

I am trying to create a confirmation window similar to the Hotmail Confirm window when we click on the "Empty folder" in the "Junk Mail" folder.

but I can’t understand that it works, and the logic behind it.

I am using ASP.Net 2 in VS 2005 Pro.

Is there any special logic that goes beyond the scope of the confirmation field, such as the one used by Hotmail, or the user control. which works based on a pressed button or action performed as OK or Cancel.

We are looking for favorable answers.

+3
source share
3 answers

Hotmail, , Javascript confirm(), . . .

+4

:

 <asp:LinkButton ID="LinkButton1" runat="server" 
             OnClientClick="return confirm('Are you sure you want to delete?');"
             OnClick="LinkButton1_Click">
  Delete</asp:LinkButton>

, Server-Side Click , Ok.

+3

, ConfirmButton AjaxControlTookit, . ConfirmButton , , JavaScript.

0

Source: https://habr.com/ru/post/1712974/


All Articles