|
 |
aspx thread: "Getting user acknowledgement in asp.net"
Message #1 by "Frank Staal" <franks@c...> on Mon, 21 Oct 2002 10:43:29
|
|
What is the asp.net way to get a user acknowledgement on an aspx page
using am aspx web form. For example: after clicking on a delete-button, I
want to ask the user "Are you sure?" Yes/No.
Message #2 by "Frank Staal" <franks@c...> on Mon, 21 Oct 2002 10:44:21
|
|
What is the asp.net way to get a user acknowledgement on an aspx page
using am aspx web form. For example: after clicking on a delete-button, I
want to ask the user "Are you sure?" Yes/No?
Please advice,
Frank Staal
Message #3 by Terrence Joubert <Terrence@v...> on Mon, 21 Oct 2002 13:17:00 +0400
|
|
Frank,
Use this example:
Add this code to your Page_Load event(it assumes your delete button is named
cmdDeleteButton, you can change that):
cmdDeleteButton.Attributes.Add("OnClick", "return confirm('Are you sure');")
If the user's response is Yes, then the page will post back to the server
and the button's clicked event will execute, else nothing will happen.
Terrence
-----Original Message-----
From: Frank Staal [mailto:franks@c...]
Sent: Monday, October 21, 2002 2:43 PM
To: ASP+
Subject: [aspx] "Getting user acknowledgement in asp.net"
What is the asp.net way to get a user acknowledgement on an aspx page
using am aspx web form. For example: after clicking on a delete-button, I
want to ask the user "Are you sure?" Yes/No.
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #4 by "Frank Staal" <franks@c...> on Mon, 21 Oct 2002 12:18:50
|
|
|
|
 |