J
Jonathan Wood
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
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