Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox() functionality in web forms
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00848774
Message ID:
00848819
Views:
21
Neil,

A messagebox would need to be done using client side code (javascript). You can call the confirm function that will ask a question like for the following example a dialog will appear (client-side) that will ask the user to confirm if they want to delete a record:
cmdDelete.Attributes.Add("onclick", "return confirm (""Are you sure?"");")
There is also the alert function that can be used to display a message with the "Ok" to exit the message.

Another option is the prompt function with will ask the user for a string.

>Hi,
>
>Does the mm.net framework have a "messagebox()" method that can be used in web forms? I did a google on attaining messagebox functionality in asp.net and it seems as if there is no straight forward way to do it.
>
>Neil
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform