943,568 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 30540
  • ASP.NET RSS
Jun 11th, 2004
0

Removing Query Strings

Expand Post »
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?
Similar Threads
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
Jun 11th, 2004
0

Re: Removing Query Strings

I just researched a little. It's not possible .
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 15th, 2006
0

Re: Removing Query Strings

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

Quote originally posted by Slade ...
I just researched a little. It's not possible .
Reputation Points: 10
Solved Threads: 0
Newbie Poster
stevenng is offline Offline
1 posts
since May 2006
Feb 12th, 2008
0

Re: Removing Query Strings

Use UrlRewriting
Reputation Points: 10
Solved Threads: 0
Newbie Poster
david_bronsky is offline Offline
4 posts
since Feb 2008
Feb 13th, 2008
0

Re: Removing Query Strings

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
Reputation Points: 10
Solved Threads: 4
Light Poster
dilipv is offline Offline
30 posts
since Feb 2008
Feb 13th, 2008
0

Re: Removing Query Strings

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...
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Oct 11th, 2011
0
Re: Removing Query Strings
i reaserched it and there is only one way to remove request query string ,redirect on same page without querystring
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jack lion is offline Offline
1 posts
since Oct 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Inserting empty values in SQL TABLE that has allow no nulls
Next Thread in ASP.NET Forum Timeline: page can not be display





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC