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>