QueryString's lifetime?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

When I navigate to a page, say called Form1.aspx, with a QueryString, any
postbacks within Form1.aspx keeps the content of QueryString. However, when I
redirect Form1.aspx to itself the content of QueryString is lost. What is the
lifetime of QueryString?

Thank you.
 
When I navigate to a page, say called Form1.aspx, with a QueryString, any
postbacks within Form1.aspx keeps the content of QueryString. However, when I
redirect Form1.aspx to itself the content of QueryString is lost. What is the
lifetime of QueryString?

As long as the querystring remains a part of the URL, it's accessible.

If you redirect back to itself sans querystring, it's gone.

-Darrel
 
Thank you.

darrel said:
As long as the querystring remains a part of the URL, it's accessible.

If you redirect back to itself sans querystring, it's gone.

-Darrel
 

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