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

Setting height and width of window opened by hyperlink

I am adding a hyperlink to a table and I want the hyperlink to open a
window with height and width I can set myself when it is clicked :

HyperLink hypGetExtractSQL = new HyperLink();

hypGetExtractSQL.Target = "_blank";
hypGetExtractSQL.ImageUrl =
"~/images/btnGetExtractSQL.jpg";
hypGetExtractSQL.NavigateUrl =
"~/secure/GetExtractSQL.aspx?guid=" + dr["CountID"].ToString();

htw.Write("</tr>");

pnlContent.Controls.Add(new
LiteralControl(sw.ToString()));

Is it possible to do this, or do I need to use a different approach?

*** Sent via Developersdex http://www.developersdex.com ***
Sep 12 '08 #1
1 2432
"Mike P" <mi*******@gmail.comwrote in message
news:OJ**************@TK2MSFTNGP03.phx.gbl...
>I am adding a hyperlink to a table and I want the hyperlink to open a
window with height and width I can set myself when it is clicked :

HyperLink hypGetExtractSQL = new HyperLink();

hypGetExtractSQL.Target = "_blank";
hypGetExtractSQL.ImageUrl =
"~/images/btnGetExtractSQL.jpg";
hypGetExtractSQL.NavigateUrl =
"~/secure/GetExtractSQL.aspx?guid=" + dr["CountID"].ToString();

htw.Write("</tr>");

pnlContent.Controls.Add(new
LiteralControl(sw.ToString()));

Is it possible to do this, or do I need to use a different approach?
Yes, you need a different approach. Instead of a hyperlink with
target=_blank, you will need to add a little bit of javascript to the
cient-side onclick event of the hyperlink. The javasript would be a
window.open(...), where one of the parameters lets you set (among other
things) the height and width of the opened window.

Sep 12 '08 #2

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

Similar topics

5
by: Laura | last post by:
Hello, Newbie question: Does anyone know how to dynamically set the screen width in an applet? I have an applet that creates a horizontal bar menu on a webpage, and I would like the width to be...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
2
by: Robson Carvalho Machado | last post by:
Dear friends, I'm dynamically creating a Hyperlink with spacer.gif as ImageURL that is an 1px transparent image only to determine link position, but as I create this link dynamically I could not...
1
by: Nathan Sokalski | last post by:
I am using the ImageUrl property of the Hyperlink control to create a graphical Hyperlink. However, I want to change the size of the image I am using, but the generated HTML places the width/height...
14
by: rsearing | last post by:
I am new to HTML and will have to beg if this is obvious, but I am trying to design a table that looks like: ******************************** *----A------*------------------------*...
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
2
by: ssmeshack | last post by:
Hai all, Im having problem to set minimum height to <td> tag. It only takes height only not min-height. Im ie7 browser and developing web based system in Visual Web Deveploper 2008 (C# .Net). ...
3
by: Annette Block | last post by:
I'm rather new in JavaScript, but I have some experience in php. I learned it's rather easy to open a window of a specified size with JavaScript, that you need to specify the opened file, but I...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.