Removing Query Strings

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Mar 2004
Posts: 634
Reputation: Slade has a spectacular aura about Slade has a spectacular aura about 
Solved Threads: 6
Slade's Avatar
Slade Slade is offline Offline
Practically a Master Poster

Removing Query Strings

 
0
  #1
Jun 11th, 2004
Is there any possible way to remove a query string without redirecting to another page? You see, my problem is I am using panels, when the create new button is clicked, it gives the querystring of "?JobID=New" now when I click on another button (which simply hides the current panel and makes another visible), the query string is still there. I have tried Request.QueryString.Remove and Request.QueryString.Clear but it says it is read only, is there any possible way to remove it?
Formerly known as Slade.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 634
Reputation: Slade has a spectacular aura about Slade has a spectacular aura about 
Solved Threads: 6
Slade's Avatar
Slade Slade is offline Offline
Practically a Master Poster

Re: Removing Query Strings

 
0
  #2
Jun 11th, 2004
I just researched a little. It's not possible .
Formerly known as Slade.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1
Reputation: stevenng is an unknown quantity at this point 
Solved Threads: 0
stevenng stevenng is offline Offline
Newbie Poster

Re: Removing Query Strings

 
0
  #3
May 15th, 2006
Hi Slade, I found this article that explains exactly what your looking for. It's written in VB.net but I rewrote it in C# if you need it:
http://www.codeproject.com/useritems...g_Argument.asp

Originally Posted by Slade
I just researched a little. It's not possible .
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 4
Reputation: david_bronsky is an unknown quantity at this point 
Solved Threads: 0
david_bronsky david_bronsky is offline Offline
Newbie Poster

Re: Removing Query Strings

 
0
  #4
Feb 12th, 2008
Use UrlRewriting
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 30
Reputation: dilipv is an unknown quantity at this point 
Solved Threads: 4
dilipv dilipv is offline Offline
Light Poster

Re: Removing Query Strings

 
0
  #5
Feb 13th, 2008
hi Slade,
According to me URL rewriting can help in solving your problem. Just check following URL

http://forums.asp.net/p/1217523/2165532.aspx

Hope this will help you.
If problem persist feel free to share with me.
Thanks & Regards
Dilip Kumar Vishwakarma
Programmer
.Net Consulting
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Removing Query Strings

 
0
  #6
Feb 13th, 2008
Yes it is possible Slade.

You need to ask yourself, how did the querystring get there?

A URL is read only yes, so you cannot "edit" it through commands on the server.

Just think about it a bit.. you got the querystring when you submitted the form...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC