|
 |
aspx_beginners thread: Message Box question.
Message #1 by "Jorge Cavalheiro" <jmmc@d...> on Thu, 6 Mar 2003 11:20:44
|
|
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
Message #2 by "Ted Nandakumar" <TedN@i...> on Thu, 6 Mar 2003 16:39:37 +0530
|
|
msgboxes are supposed to be activated only on the machine it is
residing.. u would be getting an compile time error if u use a msgbox
inside a asp.net web application. This is very similar to having a
msgbox activated from a com dll when called in an asp page. if u need to
show an alert box in the client.. u would still need to use a javascript
alert on the client side scripting.
HTH,
Nanda
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 4:51 PM
To: aspx_beginners
Subject: [aspx_beginners] Message Box question.
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
Message #3 by "Rohit Arora" <rohit_arora@i...> on Thu, 6 Mar 2003 16:49:22 +0530
|
|
you have to think that the code u r executing resides on the server. And
hence when that code gets called it display the messagebox where its getting
executed. In this case its server.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Ted Nandakumar [mailto:TedN@i...]
Sent: Thursday, March 06, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
msgboxes are supposed to be activated only on the machine it is residing.. u
would be getting an compile time error if u use a msgbox inside a asp.net
web application. This is very similar to having a msgbox activated from a
com dll when called in an asp page. if u need to show an alert box in the
client.. u would still need to use a javascript alert on the client side
scripting.
HTH,
Nanda
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 4:51 PM
To: aspx_beginners
Subject: [aspx_beginners] Message Box question.
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
Message #4 by "Paul Riley" <rilez@t...> on Thu, 6 Mar 2003 11:41:50 -0000
|
|
You need to look more at form buttons and javascript alerts if you want
it to go to the client machine.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: 06 March 2003 11:19
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
you have to think that the code u r executing resides on the server. And
hence when that code gets called it display the messagebox where its
getting executed. In this case its server.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Ted Nandakumar [mailto:TedN@i...]
Sent: Thursday, March 06, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
msgboxes are supposed to be activated only on the machine it is
residing.. u would be getting an compile time error if u use a msgbox
inside a asp.net web application. This is very similar to having a
msgbox activated from a com dll when called in an asp page. if u need to
show an alert box in the client.. u would still need to use a javascript
alert on the client side scripting.
HTH,
Nanda
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 4:51 PM
To: aspx_beginners
Subject: [aspx_beginners] Message Box question.
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #5 by "Jorge Cavalheiro" <jmmc@d...> on Thu, 6 Mar 2003 12:37:02
|
|
Is the alert flexbile enough? can i use 2 buttons on it? and how do i
call it from asp.net?
> You need to look more at form buttons and javascript alerts if you want
it to go to the client machine.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: 06 March 2003 11:19
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
you have to think that the code u r executing resides on the server. And
hence when that code gets called it display the messagebox where its
getting executed. In this case its server.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Ted Nandakumar [mailto:TedN@i...]
Sent: Thursday, March 06, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
msgboxes are supposed to be activated only on the machine it is
residing.. u would be getting an compile time error if u use a msgbox
inside a asp.net web application. This is very similar to having a
msgbox activated from a com dll when called in an asp page. if u need to
show an alert box in the client.. u would still need to use a javascript
alert on the client side scripting.
HTH,
Nanda
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 4:51 PM
To: aspx_beginners
Subject: [aspx_beginners] Message Box question.
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #6 by "Paul Riley" <rilez@t...> on Thu, 6 Mar 2003 12:37:37 -0000
|
|
You can use confirm (for ok/cancel) I know that for definate. Just use
response.write. Don't forget to split up </script> into "</scr" & "ipt>"
because of asp.net crapness
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: 06 March 2003 12:37
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
Is the alert flexbile enough? can i use 2 buttons on it? and how do i
call it from asp.net?
> You need to look more at form buttons and javascript alerts if you
> want
it to go to the client machine.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: 06 March 2003 11:19
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
you have to think that the code u r executing resides on the server. And
hence when that code gets called it display the messagebox where its
getting executed. In this case its server.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Ted Nandakumar [mailto:TedN@i...]
Sent: Thursday, March 06, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
msgboxes are supposed to be activated only on the machine it is
residing.. u would be getting an compile time error if u use a msgbox
inside a asp.net web application. This is very similar to having a
msgbox activated from a com dll when called in an asp page. if u need to
show an alert box in the client.. u would still need to use a javascript
alert on the client side scripting.
HTH,
Nanda
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 4:51 PM
To: aspx_beginners
Subject: [aspx_beginners] Message Box question.
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #7 by "Rohit Arora" <rohit_arora@i...> on Thu, 6 Mar 2003 18:06:46 +0530
|
|
yeah ofcourse it is..asp.net never stops u from using client side language
javascript. Just make javascript functions in ur aspx file if using
codebehind paradigm, if not still it has to be in <head> section..
Look at this sample.
Here is a simple event-handler function that displays a message when a
button named "Button1" is clicked.
<HTML>
<HEAD>
<SCRIPT id="clienthandler" language="javascript">
function Button1_onclick() {
alert("Hello, world");
}
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 12:37 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
Is the alert flexbile enough? can i use 2 buttons on it? and how do i
call it from asp.net?
> You need to look more at form buttons and javascript alerts if you want
it to go to the client machine.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: 06 March 2003 11:19
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
you have to think that the code u r executing resides on the server. And
hence when that code gets called it display the messagebox where its
getting executed. In this case its server.
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Ted Nandakumar [mailto:TedN@i...]
Sent: Thursday, March 06, 2003 4:40 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Message Box question.
msgboxes are supposed to be activated only on the machine it is
residing.. u would be getting an compile time error if u use a msgbox
inside a asp.net web application. This is very similar to having a
msgbox activated from a com dll when called in an asp page. if u need to
show an alert box in the client.. u would still need to use a javascript
alert on the client side scripting.
HTH,
Nanda
-----Original Message-----
From: Jorge Cavalheiro [mailto:jmmc@d...]
Sent: Thursday, March 06, 2003 4:51 PM
To: aspx_beginners
Subject: [aspx_beginners] Message Box question.
Hello
I have an asp.net application that contains a button that fires a
messagebox, here the code :
MessageBox.Show(msg, "Planeamento", MessageBoxButtons.OK,
MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification)
I works just fine but when i try to run on a remote computer the
messagebox is shown on the server pc only instead on the client pc.
What i am doing wrong?
Thank you.
Jorge Cavalheiro
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
|
|
 |