473,406 Members | 2,633 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,406 software developers and data experts.

Hyperlink to open popup window?

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

Similar topics

2
by: David Hearn | last post by:
I have a need to open a popup window from one of my forms if a particular session variable is empty. What is the best way to do this? Once the popup opens, the user will make a selection from the...
0
by: mg | last post by:
The hyperlink code below causes a new page to popup above the main page, where the code below runs. <asp:HyperLink id="HyperLink1" runat="server" NavigateUrl="http://www.microsoft.com"...
2
by: Houston Lucifer | last post by:
Hi all, I have a gridview which in the edit mode has a column which has two radio buttons (Approve and Deny). When the user selects deny i have to popup a window with the description textbox where...
2
by: Lou Civitella | last post by:
Using VB 2005 and ASP.Net 2.0. I have a Image control on my page that gets updated when you click on an item in a list box. This works without any problems. Now I want to be able to use the same...
2
by: Lou Civitella | last post by:
I have an asp:Button on my page. The buttons OnClick event runs some code. I would like to have it also open a popup window. Is this possible and how do I go about doing this? Thanks, Lou
3
by: siva07 | last post by:
<SCRIPT language=JavaScript type=text/javascript> <!-- function open1(URL) { popupWin = window.open(URL, 'popup', 'dependent=0,...
12
by: bnashenas1984 | last post by:
I have a page which opens a little popup to show recieved messages but when ever the page tries to open the popup the user should click on the yellow message on top of internet explorer and click on...
1
by: vinodkus | last post by:
dear sir/madam I want when an website opens then a popup window made in flash should be open automatically in a new window. How it is possible Please help me Thanks in Advance
4
by: onlymukti4u | last post by:
Hi, I need to call another page as a popup without any titlebar,scrollbar and menubar. I had used window.open method but by defult titlebar is coming. Can anyone help me out. Regards, Prasad
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.