By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,384 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Hyperlink to open popup window?

P: n/a
I have an <asp:Hyperlink> in my .aspx file.

How can I configure it to open the URL (NavigateURL) in a popup window
instead of a new normal browser window. I use Target="_blank", but didn't
find other values to specify a popup window.

Olav
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
One way is to use the target as you mentioned. You can also open a new
window using the JavaScript window.open() method, which gives you more
control over the properties of the window. If you want a hyperlink to
activate the JavaScript, you would use a URL as follows:

<a href="javascript:window.open('http://www.takempis.com')">Link Text</a>

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Olav Tollefsen" <x@y.com> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
I have an <asp:Hyperlink> in my .aspx file.

How can I configure it to open the URL (NavigateURL) in a popup window
instead of a new normal browser window. I use Target="_blank", but didn't
find other values to specify a popup window.

Olav

Nov 18 '05 #2

P: n/a
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...
One way is to use the target as you mentioned. You can also open a new
window using the JavaScript window.open() method, which gives you more
control over the properties of the window. If you want a hyperlink to
activate the JavaScript, you would use a URL as follows:

<a href="javascript:window.open('http://www.takempis.com')">Link Text</a>


But, how do I get rid of the toolbar and address field stuff. I only want a
basic browser window to display some content.

Olav
Nov 18 '05 #3

P: n/a
> But, how do I get rid of the toolbar and address field stuff. I only want
a
basic browser window to display some content.
See
http://msdn.microsoft.com/workshop/a...ods/open_0.asp

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Olav Tollefsen" <x@y.com> wrote in message
news:#u**************@TK2MSFTNGP12.phx.gbl... "Kevin Spencer" <ke***@takempis.com> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...
One way is to use the target as you mentioned. You can also open a new
window using the JavaScript window.open() method, which gives you more
control over the properties of the window. If you want a hyperlink to
activate the JavaScript, you would use a URL as follows:

<a href="javascript:window.open('http://www.takempis.com')">Link
Text</a>
But, how do I get rid of the toolbar and address field stuff. I only want a basic browser window to display some content.

Olav

Nov 18 '05 #4

P: n/a
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:#T**************@TK2MSFTNGP09.phx.gbl...
But, how do I get rid of the toolbar and address field stuff. I only
want a
basic browser window to display some content.


See

http://msdn.microsoft.com/workshop/a...ods/open_0.asp

Thanks, do you have a hint to get the syntax correct when using it with a
DataSet:

<asp:HyperLink id=Hyperlink3 ForeColor="#555BAE"
NavigateUrl="javascript:window.open('<%# DataBinder.Eval(Container.DataItem,
"PhotoId", "DisplayPhoto.aspx?PhotoId={0}") %>')"
Runat="server'>L3_5</asp:HyperLink>

I get an error message "The server tag is not well formed".

How do I get the quotes right?

Olav
Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.