PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

How display MessageBox in aspx-page?

 
 
Alexander Vasilevsky
Guest
Posts: n/a
 
      3rd Aug 2008
How display MessageBox in aspx-page?

http://www.alvas.net - Audio tools for C# and VB.Net developers


 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      3rd Aug 2008
You have to send the command for that down to the client, since it is the
client that will be rendering the page. Since JavaScript is the standard
scripting language that all clients understand, you need to send the
JavaScript alert() command to the client.

Response.Write("alert('Your message here.')") would do it.


"Alexander Vasilevsky" <(E-Mail Removed)> wrote in message
news:g74glj$23aq$(E-Mail Removed)...
> How display MessageBox in aspx-page?
>
> http://www.alvas.net - Audio tools for C# and VB.Net developers
>
>



 
Reply With Quote
 
HillBilly
Guest
Posts: n/a
 
      3rd Aug 2008
There is no native MessageBox for web development. We have to use
client-side script and HTML. The easiest way out?

//JavaScript
alert('Hello World');


You don't by any chance have any documentation naming and comparing the
sound files distributed with the various Windows OS releases do you? For no
good reason I can think of the Vista release has renamed and relocated the
folders and all of the sound files.


"Alexander Vasilevsky" <(E-Mail Removed)> wrote in message
news:g74glj$23aq$(E-Mail Removed)...
> How display MessageBox in aspx-page?
>
> http://www.alvas.net - Audio tools for C# and VB.Net developers
>
>


 
Reply With Quote
 
Teemu Keiski
Guest
Posts: n/a
 
      3rd Aug 2008
You can output a javascript snippet (for example alert window) from
server-side code with Page.ClientScript.RegisterXXX methods or if you're
using ASP.NET Ajax, with ScriptManager's RegisterXXX methods
(XXX=StartupScript / ClientScriptBlock). That's if you need to initiate it
from server-side.

You can also show something with DIVs / SPAN's when you have a lot more
control over the styles etc. Certainly there's also popup windows, but they
are not very friendly for users using popup blockers (quite many don't like
them at all). :-)

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Alexander Vasilevsky" <(E-Mail Removed)> wrote in message
news:g74glj$23aq$(E-Mail Removed)...
> How display MessageBox in aspx-page?
>
> http://www.alvas.net - Audio tools for C# and VB.Net developers
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding MessageBox to my aspx page =?Utf-8?B?Vk1J?= Microsoft C# .NET 3 23rd May 2006 09:41 PM
How can I display my .ASPX page from within an HTML page? Bob Segrest Microsoft ASP .NET 1 13th Apr 2005 04:57 PM
Display RTF text in a ASPX page ? =?Utf-8?B?RG9vdHM=?= Microsoft ASP .NET 0 13th Nov 2004 03:09 PM
Display RTF text in aspx page ? =?Utf-8?B?VGlncm91?= Microsoft ASP .NET 4 19th Oct 2004 06:29 PM
display an aspx page on a panel William LaMartin Microsoft ASP .NET 4 10th Dec 2003 09:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:39 PM.