We help IT Professionals succeed at work.
Get Started

Passing a Query String  - meta tag redirect

Robb Hill
Robb Hill asked
Last Modified: 2008-03-17
I am in asp.net 2.0.  I have  3 web pages.

The first page sends a redirect like so...

 Response.Redirect("Wait.aspx?redirectPage=" _
                     & "Gridrender.aspx&mode=runGrid&quID=" _
                     & +Session("Quid") _
                     & "&secondsToWait=30")

the wait page looks like this on vb code behind

  Protected redirectPage As String = ""

    Protected Sub Page_Load(ByVal sender As Object, _
                                  ByVal e As System.EventArgs) Handles Me.Load
        If Request.QueryString("redirectPage") Is Nothing Then
            redirectPage = Request.QueryString("redirectPage")

        End If
    End Sub

///I am trying to redirect with a variable in teh aspx page ..like so

<meta  http-equiv="Refresh" content="5; url=<%Response.Write(redirectPage+Request.Url.Query)%>" />

I have never redirected in the meta tag before...the syntax isnt liked by by asp...but it compiles....I am really not sure
what the url in the meta tag is being set to...

Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE