By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,666 Members | 1,413 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,666 IT Pros & Developers. It's quick & easy.

message boxes

P: n/a
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
No. A simple client-side Java script can be used for that.

Eliyahu

"Mike P" <mr*@telcoelectronics.co.uk> wrote in message
news:ep**************@tk2msftngp13.phx.gbl...
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #2

P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Mike P" <mr*@telcoelectronics.co.uk> wrote in message
news:ep**************@tk2msftngp13.phx.gbl...
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #3

P: n/a
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Mike P" <mr*@telcoelectronics.co.uk> wrote in message
news:ep**************@tk2msftngp13.phx.gbl...
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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.