473,385 Members | 1,356 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,385 software developers and data experts.

asp:hyperlink control

hi all,

I have hyperlink controld in my aspx webpage. When i click on it it needs to
open a new window, then i added the attribute target="_blank"

But I would like to also give a size to the new open window as well as take
off all the menu,link bars and other bars to have a minimalistic version of
internet explorer.

How can I achieve this? I assume i need to use some javascript but i did not
find a working script yet.

Best regards,

Francois
Nov 18 '05 #1
3 5722
Hi,

you would need to pass a javascript 'window.open(...)' call to the href
attribute (or onclick attribute) the HyperLink renders. You can set this to
the NavigateUrl or by using Attributes collection.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
hi all,

I have hyperlink controld in my aspx webpage. When i click on it it needs to
open a new window, then i added the attribute target="_blank"

But I would like to also give a size to the new open window as well as take
off all the menu,link bars and other bars to have a minimalistic version of
internet explorer.

How can I achieve this? I assume i need to use some javascript but i did not
find a working script yet.

Best regards,

Francois

Nov 18 '05 #2
Hi Teemu,

Thank you for your information but I am quite beginner on the subject and I
am not sure how to pass the NavigateUrl attribute to the javascript as the
NavigateUrl is computed at page_load time during databinding to be more
exact ( i am using a repeater control )
If you have the code for it, it would be great or at least what kind of
techinque i can use

Best regards,

Francois

"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:O7*************@tk2msftngp13.phx.gbl...
Hi,

you would need to pass a javascript 'window.open(...)' call to the href
attribute (or onclick attribute) the HyperLink renders. You can set this to the NavigateUrl or by using Attributes collection.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
hi all,

I have hyperlink controld in my aspx webpage. When i click on it it needs to open a new window, then i added the attribute target="_blank"

But I would like to also give a size to the new open window as well as take off all the menu,link bars and other bars to have a minimalistic version of internet explorer.

How can I achieve this? I assume i need to use some javascript but i did not find a working script yet.

Best regards,

Francois

Nov 18 '05 #3
Hi,

you could see following article how to use JavaScript in conjuction with
ASP.NET

http://msdn.microsoft.com/asp.net/de...javascript.asp

With this technique you just output a call to window.open, whihc open a
popup window for you. It allows you to specify the width and height of the
window and so on. And about the usage with repeater: you probably get these
measures for window (or parameters) while databinding? You would need to
access the HyperLink in ItemDataBound event of Repeater and from there set
the attributes of every repeateed (databound) HyperLink.

If you still have problem, perhaps you could show a sample how you are
databinding the repeater.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Teemu,

Thank you for your information but I am quite beginner on the subject and I
am not sure how to pass the NavigateUrl attribute to the javascript as the
NavigateUrl is computed at page_load time during databinding to be more
exact ( i am using a repeater control )
If you have the code for it, it would be great or at least what kind of
techinque i can use

Best regards,

Francois

"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:O7*************@tk2msftngp13.phx.gbl...
Hi,

you would need to pass a javascript 'window.open(...)' call to the href
attribute (or onclick attribute) the HyperLink renders. You can set this to the NavigateUrl or by using Attributes collection.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"francois" <fr******@bettinghouses.com_NOSPAM> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
hi all,

I have hyperlink controld in my aspx webpage. When i click on it it needs to open a new window, then i added the attribute target="_blank"

But I would like to also give a size to the new open window as well as take off all the menu,link bars and other bars to have a minimalistic version of internet explorer.

How can I achieve this? I assume i need to use some javascript but i did not find a working script yet.

Best regards,

Francois


Nov 18 '05 #4

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

Similar topics

0
by: Kevin Quigley | last post by:
Hi, I have a datalist which has an EditItemTemplate section, within this I have a hyperlink control with which I want to open a new window with some help details. This is the hyperlink code:...
2
by: Doug Stiers | last post by:
I have an asp:hyperlink that I need to have some code fire when the link is clicked. The link is in a datagrid and the link is working properly. I tried using the OnInit event to call the...
4
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help....
4
by: James P. | last post by:
Hello there, I have an asp hyperlink in a template page. In my user control page - code behind page that uses the template, I'd like to turn this link invisible in certain case. Is it...
5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
2
by: MrMike | last post by:
I am attempting to pass a parameter named "BackURL" into a asp:Hyperlink HTML control as shown below. "BackURL" is actually a variable defined in the page's code-behind. However, my current...
9
by: dana lees | last post by:
Hello, I am using asp:HyperLink in a c# asp.net application to open a new window in the following way: <asp:HyperLink ID="lnkSiteName" runat="server" Text='<%# DataBinder.Eval(Container,...
1
by: khalid sohail | last post by:
hi everybody i want to pass the window size parameter to <asp:hyperlink> attribute Navige URL Property. tell me how to pass the parameter to it.....actually i want to open the new window on the...
2
by: BobLaughland | last post by:
Hi There, I need a control on my site that is a hyperlink style control, but it must, 1) Have a property that can hold where the hyperlink is pointing to. (e.g. like the NavigateUrl property...
1
by: rsandes1 | last post by:
Newbie here, I'm trying to code a asp hyperlink control in C#, that has some literal string text concantenated with a programatic date field that changes as a certain conditions changes within my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.