473,385 Members | 1,392 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.

hyperlink/linkbutton transfer with http://localhost

Hi There,

It should be easy question, but i don't know how to do.

How to transfer to another website from my page. I tried with linkbutton and
Hyperlink but i cannot figure out
always it transfer to

http://localhost:4111/www.yahoo.com

but i want transfer to www.yahoo.com

Thanks
Jul 15 '07 #1
3 2873
On Jul 15, 7:45 pm, "Ganesh" <gsgan...@yahoo.comwrote:
Hi There,

It should be easy question, but i don't know how to do.

How to transfer to another website from my page. I tried with linkbutton and
Hyperlink but i cannot figure out
always it transfer to

http://localhost:4111/www.yahoo.com

but i want transfer to www.yahoo.com

Thanks
Must be HTTP://www.yahoo.com

Jul 15 '07 #2
Sounds like you're using VS 2005's internal web server,
and using relative links, instead of absolute links.

Try seeting the hyperlink's NavigateURL to :http://www.yahoo.com

<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="http://www.yahoo.com" Target="_blank">Yahoo</asp:HyperLink>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Ganesh" <gs******@yahoo.comwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi There,

It should be easy question, but i don't know how to do.

How to transfer to another website from my page. I tried with linkbutton and Hyperlink but i cannot figure out
always it transfer to

http://localhost:4111/www.yahoo.com

but i want transfer to www.yahoo.com

Thanks


Jul 15 '07 #3
Ganesh wrote:
>Hi There,

It should be easy question, but i don't know how to do.

How to transfer to another website from my page. I tried with linkbutton and
Hyperlink but i cannot figure out
always it transfer to

http://localhost:4111/www.yahoo.com

but i want transfer to www.yahoo.com

Thanks


Hi,

<asp:HyperLink
ID="lnkUser"
Runat="Server" />

void Page_Load(object sender, EventArgs e) {

lnkUser.NavigateUrl = String.Format( "~/{0}.aspx", strUsername );
lnkUser.Text = String.Format( "{0}'s home page", strUsername );

}

or

Instead of using HyperLink controls to dipplay hyperlinks, you can use teh
HTML anchor tag. Using the anchor tag instead of the HyperLInk control
requires slightly fewer server resources.
Develop your own Web accounting application using AS.net
http://www.vkinfotek.com

<a href="<%=ResolveUrl("~/listjob.aspx")%>">list job</a>

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200707/1

Jul 16 '07 #4

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

Similar topics

4
by: clintonG | last post by:
Any folklore regarding the benefits of using one or the other of these controls? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT...
2
by: Ingeborg | last post by:
Hi. I want to insert an hyperlink/button for loading another page, but I need to store some data in this operation too, but I don't think the HyperLink web control has a "onclick" event, and I...
2
by: damonf | last post by:
I'm currently trying to add an ASP hyperlink to a template column in a datagrid. The normal hyperlink column doesn't give me the ability to add attributes to the item. In my grid there are four...
1
by: Pat | last post by:
All, What I want to do: ******************* Click on a hyperlink in the last column in a datagrid, have it grab a value in the fourth column in the same row and send it to the codehind into a...
1
by: mschoup | last post by:
I have a simple aspx page(WebForm1.aspx) with a HyperLink, LinkButton, and two CheckBoxes. When I select a CheckBox and then click the LinkButton, the CheckBox retains state. When I select the...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
7
by: Arpan | last post by:
Both the Hyperlink web server control & the LinkButton web server control display text as links; so what are the differences between the 2 web server controls? Thanks, Arpan
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: k lee | last post by:
I want to create a linkButton to activate my hyperlink which will open a new page in a new window. I would like to know how to code the code of activate the hyperlink which I wish to place it in the...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.