473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1768
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Quarco | last post by:
Hi, Quick & simple question: I have to send the next data to a socket in order to make a popup visible on a windows machine.. TITLE Title of popup TEXT Text in popup POPUP
6
by: Mosher | last post by:
Hello all, is there any way to send php variables to another popup html window? I just want users to be able to click on a hyperlink like this... e.g., <a target=new...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
1
by: Chris | last post by:
Hi, how can I send information that is in the Response.OutputStream to the client but continue server processing without having to close the page , or without having to Reponse.End() the...
7
by: dhnriverside | last post by:
Hi guys I've got a web application on a Win2k IIS5 server. I've been coding it using anonymous access, and have just come to test the AD stuff - trouble is - all i get is a 402.1 error ("not...
4
by: Alexander Widera | last post by:
I have a page with the following code for example: <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" Debug="true"%> <script runat="server"> void Page_Load(object...
4
by: Steve Westwood | last post by:
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...
2
by: Kiyomi | last post by:
Hello, I have some codes under event ButtonSend_Click to check the user input values. This check is complicated enough using different stored procedures. Then according the result of the...
3
by: Bam | last post by:
Hey gang. I have searched the web, and can't find what i need. hoping someone here can help i have a form that pops up based on a click. the popup opens up correctly. now what i want it to do is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.