468,727 Members | 1,685 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,727 developers. It's quick & easy.

I wont to send a popup message to the web page.



I have a WebForm button. Depending on calculation I wont to send a popup
message to the web page. I am not sure of the approach. From the server
side code I don't seem to be able to access the client side script. Can
anyone help?

I am using the VS .net C# environment

Thank you,

Steve
Jul 21 '05 #1
4 1611
Window.Open or use a Javascript Alert.
"Steve Westwood" <s-********@rcn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


I have a WebForm button. Depending on calculation I wont to send a popup
message to the web page. I am not sure of the approach. From the server
side code I don't seem to be able to access the client side script. Can
anyone help?

I am using the VS .net C# environment

Thank you,

Steve

Jul 21 '05 #2
private void ButtonChangePassword_Click(object sender, System.EventArgs e)

{

string Message;

Message = Tool.ChangeName(oldName, NewName);

/****Here is where I wont to send a popup to the web page. An Alert would
work fine.

}

How do I send a client side command, from a server side function.
Thank you

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl...
Window.Open or use a Javascript Alert.
"Steve Westwood" <s-********@rcn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


I have a WebForm button. Depending on calculation I wont to send a popup message to the web page. I am not sure of the approach. From the server side code I don't seem to be able to access the client side script. Can
anyone help?

I am using the VS .net C# environment

Thank you,

Steve


Jul 21 '05 #3
You can code the Javascript in the HTML and have it reference your button
click...http://www.school-for-champions.com/...ng/jsalert.htm

http://www.experts-exchange.com/Prog..._20664575.html

Here are examples of both...
"Steve Westwood" <s-********@rcn.com> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
private void ButtonChangePassword_Click(object sender, System.EventArgs e)

{

string Message;

Message = Tool.ChangeName(oldName, NewName);

/****Here is where I wont to send a popup to the web page. An Alert would work fine.

}

How do I send a client side command, from a server side function.
Thank you

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl...
Window.Open or use a Javascript Alert.
"Steve Westwood" <s-********@rcn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


I have a WebForm button. Depending on calculation I wont to send a popup message to the web page. I am not sure of the approach. From the server side code I don't seem to be able to access the client side script. Can anyone help?

I am using the VS .net C# environment

Thank you,

Steve



Jul 21 '05 #4
Use ASP Button's Attributes collection and put the JavaScript for onclick
event.

"Steve Westwood" <s-********@rcn.com> wrote in message
news:#8**************@TK2MSFTNGP09.phx.gbl...


I have a WebForm button. Depending on calculation I wont to send a popup
message to the web page. I am not sure of the approach. From the server
side code I don't seem to be able to access the client side script. Can
anyone help?

I am using the VS .net C# environment

Thank you,

Steve

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Quarco | last post: by
6 posts views Thread by Mosher | last post: by
12 posts views Thread by HarveyB | last post: by
7 posts views Thread by dhnriverside | last post: by
4 posts views Thread by Alexander Widera | last post: by
4 posts views Thread by Steve Westwood | last post: by
2 posts views Thread by Kiyomi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
xarzu
1 post views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.