Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox() functionality in web forms
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00848774
Message ID:
00848819
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform