
Because ASP.NET uses postback procedures when a user clicks a button, you can't simply insert Javascript functions into the web page's code. The Javascript must be declared in the code-behind in the application. Using C#, this example shows programmers how to create a confirmation window when users delete a record. Instructions: 1) Create a button. A button is needed to link the Javascript code.