Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

hyperlink/linkbutton transfer with http://localhost

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ganesh - 15 Jul 2007 18:45 GMT
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
Alexey Smirnov - 15 Jul 2007 18:57 GMT
> Hi There,
>
[quoted text clipped - 9 lines]
>
> Thanks

Must be HTTP://www.yahoo.com
Juan T. Llibre - 15 Jul 2007 19:49 GMT
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/
======================================
> Hi There,
>
[quoted text clipped - 8 lines]
>
> Thanks
timmy123 - 16 Jul 2007 06:38 GMT
>Hi There,
>
[quoted text clipped - 9 lines]
>
>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>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.