473,395 Members | 1,583 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,395 software developers and data experts.

Show Popup Help Window

Greetings,

I'm new to ASP.NET and am trying to figure out how to popup a help window.

I was able to get the following code to work:

helpButton1.Attributes.Add("onclick",
"window.open('http://www.softcircuits.com', null, 'height=250, width=250,
status= no, resizable= no, scrollbars=no, toolbar=no, location=no,
menubar=no');");

But there are a few problems with it:

1. The button does not show a hand pointer when the mouse hovers over it,
indicating the button performs an action. I'd like to fix that.

2. I need my script to be a little more complex and would prefer to define
it outside of this call. Can someone show me how I could create the script
string separately and then just pass the name of it to Attributes.Add?

3. Any other suggestions on how to handle this? Maby add the script to my
HTML directly? Since the popup window will show some of my pages, should I
create regular C# code to handle this? Anything else?

Thanks for any tips!

Jonathan
Sep 18 '06 #1
4 2228
use RegisterClientScriptBlock to register the script. use onmouseover and
onmouseout event to set the curor style of the button.

-- bruce (sqlwork.com)
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:O1*************@TK2MSFTNGP02.phx.gbl...
Greetings,

I'm new to ASP.NET and am trying to figure out how to popup a help window.

I was able to get the following code to work:

helpButton1.Attributes.Add("onclick",
"window.open('http://www.softcircuits.com', null, 'height=250, width=250,
status= no, resizable= no, scrollbars=no, toolbar=no, location=no,
menubar=no');");

But there are a few problems with it:

1. The button does not show a hand pointer when the mouse hovers over it,
indicating the button performs an action. I'd like to fix that.

2. I need my script to be a little more complex and would prefer to define
it outside of this call. Can someone show me how I could create the script
string separately and then just pass the name of it to Attributes.Add?

3. Any other suggestions on how to handle this? Maby add the script to my
HTML directly? Since the popup window will show some of my pages, should I
create regular C# code to handle this? Anything else?

Thanks for any tips!

Jonathan


Sep 18 '06 #2
Use the cursor:hand; style.
As for the popup, you might consider using the free control detailed in the
second half of this article:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:O1*************@TK2MSFTNGP02.phx.gbl...
Greetings,

I'm new to ASP.NET and am trying to figure out how to popup a help window.

I was able to get the following code to work:

helpButton1.Attributes.Add("onclick",
"window.open('http://www.softcircuits.com', null, 'height=250, width=250,
status= no, resizable= no, scrollbars=no, toolbar=no, location=no,
menubar=no');");

But there are a few problems with it:

1. The button does not show a hand pointer when the mouse hovers over it,
indicating the button performs an action. I'd like to fix that.

2. I need my script to be a little more complex and would prefer to define
it outside of this call. Can someone show me how I could create the script
string separately and then just pass the name of it to Attributes.Add?

3. Any other suggestions on how to handle this? Maby add the script to my
HTML directly? Since the popup window will show some of my pages, should I
create regular C# code to handle this? Anything else?

Thanks for any tips!

Jonathan


Sep 18 '06 #3


--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.comwrote
in message news:%2****************@TK2MSFTNGP06.phx.gbl...
use RegisterClientScriptBlock to register the script. use onmouseover and
onmouseout event to set the curor style of the button.

-- bruce (sqlwork.com)
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:O1*************@TK2MSFTNGP02.phx.gbl...
>Greetings,

I'm new to ASP.NET and am trying to figure out how to popup a help
window.

I was able to get the following code to work:

helpButton1.Attributes.Add("onclick",
"window.open('http://www.softcircuits.com', null, 'height=250, width=250,
status= no, resizable= no, scrollbars=no, toolbar=no, location=no,
menubar=no');");

But there are a few problems with it:

1. The button does not show a hand pointer when the mouse hovers over it,
indicating the button performs an action. I'd like to fix that.

2. I need my script to be a little more complex and would prefer to
define it outside of this call. Can someone show me how I could create
the script string separately and then just pass the name of it to
Attributes.Add?

3. Any other suggestions on how to handle this? Maby add the script to my
HTML directly? Since the popup window will show some of my pages, should
I create regular C# code to handle this? Anything else?

Thanks for any tips!

Jonathan



Sep 19 '06 #4
I tried Page.RegistClientScriptBlock but it seemed to cause myh script to
run right when the page was loaded rather than when the button was clicked.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.comwrote
in message news:%2****************@TK2MSFTNGP06.phx.gbl...
use RegisterClientScriptBlock to register the script. use onmouseover and
onmouseout event to set the curor style of the button.

-- bruce (sqlwork.com)
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:O1*************@TK2MSFTNGP02.phx.gbl...
>Greetings,

I'm new to ASP.NET and am trying to figure out how to popup a help
window.

I was able to get the following code to work:

helpButton1.Attributes.Add("onclick",
"window.open('http://www.softcircuits.com', null, 'height=250, width=250,
status= no, resizable= no, scrollbars=no, toolbar=no, location=no,
menubar=no');");

But there are a few problems with it:

1. The button does not show a hand pointer when the mouse hovers over it,
indicating the button performs an action. I'd like to fix that.

2. I need my script to be a little more complex and would prefer to
define it outside of this call. Can someone show me how I could create
the script string separately and then just pass the name of it to
Attributes.Add?

3. Any other suggestions on how to handle this? Maby add the script to my
HTML directly? Since the popup window will show some of my pages, should
I create regular C# code to handle this? Anything else?

Thanks for any tips!

Jonathan



Sep 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Venkat | last post by:
Hi All, I have got two windows namely parent and a child . My parent window has got a link, on clicking which opens a child window(i am using window.open function). I do the following set...
2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
4
by: gallery | last post by:
My client is asking that once a viewer visits his website, the onLoad popup window not show up again. What's the best way to do this? Thanks, Marje
5
by: Obantec Support | last post by:
Hi i leached some code and strung together a popup i need for a page with 5 help buttons. Now i could use 5 scripts and pre-load the values but i would rather get a better understanding of how...
15
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
6
by: richard | last post by:
http://littleworldofours.com/1960/table1.html I want to take the calendar table and hide it from the page until a user clicks on a link. Then show only that calendar in a popup window. What's my...
11
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.