message boxes

M

Mike P

Is it possible to bring up a message box or a new window from within an
ASP.NET C# script?


Any help would be really appreciated.


Cheers,

Mike
 
N

Nicholas Paldino [.NET/C# MVP]

Mike,

ASP.NET code is not script, it is actual compiled code that runs on the
server. Because it runs on the server, you can not pop up a message box
using the regular call to MessageBox. Instead, you will have to inject the
script code into the response that will make a call to the alert method on
the window object that is exposed to Javascript.

Hope this helps.
 
I

Ignacio Machin

Hi,

You will have to use client side scripting for that, if you give a more
precise description I will give you the solution for the problem at hand.

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top