Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query String

Status
Not open for further replies.

KevoMee

Technical User
Apr 30, 2002
72
IE
Is it possible to manipulate values in the query string from the server code? VB.NET in my case. In particular can I remove a value from the query string?
 
why would you want to remove values from query string???

or are you refering to request.params() method???

Known is handfull, Unknown is worldfull
 
I want to remove it because everytime there is a page reoload event I check whether there is anything in this particular query string, if there is I want to perform a certain function.

After I do this I want to clear this value because I only want this function performed once (There probably will be another reload event on the page).

I'm talking about Request.QueryString("")
 
do this in your page load

Code:
If Not Page.IsPostBack Then
  'Do your querystring check here...this will only happen once

End If

"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
 
Yep. I guess I was confussed because of the way in which I was passing the query string.

What I was actually doing was posting back to the main page from a modal window using:

dialogArguments.all.href = "frmClient?Values=" + Values;

where the document is passed to the modal window.

Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top