D
Daniel
Hello, I have an old asp page that was used to redirect users called
redirect.asp:
<code1>
<%
Option Explicit
If Request.QueryString("url") <> "" Then
Response.Redirect Request.QueryString("url")
Else
Response.Redirect ("www.examplesite.asp")
End If
%>
</code1>
So far I have this:
<code2>
<%@ Page Language="vb" enableviewstate="False"%>
<script runat=server>
Public Sub Page_Load()
Response.Redirect ("http://www.tv.dlpsaleslab.com/default.aspx")
End Sub
</script>
</code2>
My question is how do I use VB.NET to do this.
When I add the above code I am given an error, since I am new to VB,
can someone help advise what is the proper way to set up a
Response.Redirect in the manner as I have done in in code1 using
VB.NET?
Thank you,
redirect.asp:
<code1>
<%
Option Explicit
If Request.QueryString("url") <> "" Then
Response.Redirect Request.QueryString("url")
Else
Response.Redirect ("www.examplesite.asp")
End If
%>
</code1>
So far I have this:
<code2>
<%@ Page Language="vb" enableviewstate="False"%>
<script runat=server>
Public Sub Page_Load()
Response.Redirect ("http://www.tv.dlpsaleslab.com/default.aspx")
End Sub
</script>
</code2>
My question is how do I use VB.NET to do this.
When I add the above code I am given an error, since I am new to VB,
can someone help advise what is the proper way to set up a
Response.Redirect in the manner as I have done in in code1 using
VB.NET?
Thank you,