473,751 Members | 2,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyperlink to open popup window?

I have an <asp:Hyperlin k> 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 19606
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="javascrip t:window.open(' http://www.takempis.co m')">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******** ******@TK2MSFTN GP10.phx.gbl...
I have an <asp:Hyperlin k> 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******** ******@TK2MSFTN GP12.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="javascrip t:window.open(' http://www.takempis.co m')">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******** ******@TK2MSFTN GP12.phx.gbl... "Kevin Spencer" <ke***@takempis .com> wrote in message
news:eL******** ******@TK2MSFTN GP12.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="javascrip t:window.open(' http://www.takempis.co m')">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******** ******@TK2MSFTN GP09.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:HyperLin k id=Hyperlink3 ForeColor="#555 BAE"
NavigateUrl="ja vascript:window .open('<%# DataBinder.Eval (Container.Data Item,
"PhotoId", "DisplayPhoto.a spx?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
2081
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 window, the session variable gets filled, the window closes, then no more popup window because the session variable is not empty anymore. Thanks in advance!
0
1352
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" Target="_new"> HyperLink </asp:HyperLink>
2
1443
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 the user can enter a description on why he denied. Is there a way i can do it? If i am using the Javascript window.open how would i go about storing the value when the user clicks the close button on the popup window. Thanks for the help.
2
1763
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 value that is in the list box and have the user click on the image control and open a new window with the image. Thanks, Lou
2
5710
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
1367
by: siva07 | last post by:
<SCRIPT language=JavaScript type=text/javascript> <!-- function open1(URL) { popupWin = window.open(URL, 'popup', 'dependent=0, height=400,width=480,screenX=200,left=200,screenY=200,top=10,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0', 'launcher'); } //--> </SCRIPT>
12
6590
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 ( allow popup ) otherwise the popup will not be showed Is there any way to open this window without getting permission? <script type="text/javascript" >...
1
2259
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
2659
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
8842
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9587
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9405
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8268
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6819
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6086
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4719
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4897
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.