Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - External Links page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

External Links page

 Post Reply Post Reply Page  123 4>
Author
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Topic: External Links page
    Posted: 20 September 2004 at 3:22pm
As you all know I am not very good with programming. 

However I need to make an external link page.

e.g website www.microsoft.com

link on page = www.huwnet.org.uk/external.aspx.....microsoft.com

page read=

external link blah blah blah click to continue to microsoft.com
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2004 at 3:38pm
so something like this:

Dim Url As String = Request.QueryString("URL")
hl1.NavigateUrl = Url
...

To go to this link please click <asp:Hyperlink id="hl1" runat="server">here</asp:Hyperlink>?
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2004 at 2:09pm
So the path is www.blah.com/blah.aspx?url=blah.com
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2004 at 2:34pm
yep
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2004 at 11:51am
Does asp.net use <% ?
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2004 at 11:52am
and <!--
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2004 at 12:01pm
Here is the code I am using, please tell me what is wrong:

<% Dim Url As String = Request.QueryString("URL")
hl1.NavigateURL = URL %>

<html>
<head>
<title>Huwnet - Redirect</title>
</head>
<body>
<asp:Hyperlink id="hl1" runat="server">Go to site</asp:Hyperlink>?
</body>
</html>
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2004 at 12:10pm
First off you need a page declareation (the very first line):

<%@ Page Language = "VB" %>

ASP.NET can use <% %> but theres little point using it as it has been replaced by <script> tags (for inline code). Try this code instead (p.s. next time post the error)

<%@ Page Language = "VB" %>
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
hl1.NavigateUrl = Server.URLEncode(Request.Querystring("URL"))
End Sub
</script>

<html>
<head>
<title>Huwnet - Redirect</title>
</head>
<body>
<form runat="server" id="form1">
<asp:Hyperlink id="hl1" runat="server">Go to site</asp:Hyperlink>
</form>
</body>
</html>



Edited by Mart
Back to Top
 Post Reply Post Reply Page  123 4>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.