ASP.NET is a server side technology and displaying a messagebox from the C# code would be worse than useless as no-one will see it *and* it would block a server side thread waiting for never-arriving user input. The way to display a message box to the client is to issue a ...
Javascript Alert into the rendered page.
If this is something you will do frequently then create a server side control that emits the necessary javascript in its CreateClientSideScriptBlock. Otherwise just emit it using Response.Write
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<83**********************************@microsoft.co m>
How do I get the browser to display a message box using C# in ASP.NET?
Something similar to Javascripts Alert( ) type messagebox...
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.768 / Virus Database: 515 - Release Date: 22/09/2004
[microsoft.public.dotnet.languages.csharp]