Remove/Delete Request.QueryString C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omlac
    New Member
    • Aug 2008
    • 10

    Remove/Delete Request.QueryString C#

    Hi all
    How do i delete/remove a Querystring variable.
    say Request.QuerySt ring["ID"]);
    i have tried this Request.QuerySt ring["ID"].Remove(0) but it didnt remove it nor did it give an error message.
    I also tried Request.QuerySt ring.Clear(); and the error was the variable is readonly.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Redirect to the same page without the querystring?

    If you are trying to modify the URL in the URL bar, you might have to use Javascript.

    Comment

    • omlac
      New Member
      • Aug 2008
      • 10

      #3
      Originally posted by insertAlias
      Redirect to the same page without the querystring?

      If you are trying to modify the URL in the URL bar, you might have to use Javascript.
      Thank you very much, it seems as if i cant modify the querystring variables

      Comment

      Working...