show URL with a different query string parameter (display ONLY)

Last post 09-04-2008 7:33 PM by HenryTheHorse. 2 replies.

Sort Posts:

  • show URL with a different query string parameter (display ONLY)

    08-28-2008, 2:51 PM

    I have a single page that shows different content upon reloading.  However, when I reload the page, I want a different query string parameter shown each time it reloads.  For example:

    http://myserver/Default.aspx?step=1

    http://myserver/Default.aspx?step=2

    http://myserver/Default.aspx?step=3

    I don't want to call Response.Redirect or Server.Transfer since I'm not currently doing this or want to: my steps work fine...I just want to show a different URL parameter for SEO purposes.  I've tried HttpContext.RewritePath() but this doesn't change the display of the URL in the browser. How can I do this? 

  • Re: show URL with a different query string parameter (display ONLY)

    08-29-2008, 11:46 PM
    • Member
      494 point Member
    • irtizaur
    • Member since 04-21-2007, 7:09 PM
    • Posts 67

     Hi Henry,

    check this article.. its a great one

    http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

    thanks

     

    Irtizaur Rahman

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: show URL with a different query string parameter (display ONLY)

    09-04-2008, 7:33 PM

     

    Thanks but Context.RewritePath() changes the Internal path.  I want to write the corresponding query string to the browser itself.
Page 1 of 1 (3 items)