How to load an URL? Thanks.

  • Thread starter Thread starter Shapper
  • Start date Start date
S

Shapper

Hello,

I have this code to load an URL:

<script runat="server">
Sub goToPage(sender As Object, e As System.EventArgs)
Response.Redirect("page.aspx")
End Sub
</script>

Basically what I want is instead of loading to page.aspx the script
should to any URL which I send in the argument.

Something like:
goToPage('page.aspx');
or
goToPage('http://www.google.com');
....

Thank You,
Miguel
 
Sub goToPage(sender As Object, e As System.EventArgs, pageName as String)
Response.Redirect(pageName)
End Sub
 
Hmm, how about

Sub goToPage(URL As String)
Response.Redirect(URL);
End Sub

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top