How to remove parameters from a URL on an ASP.NET site that uses URL Routing? -


i added url routing non-mvc site that's based on asp.net , c#. if following incoming request:

http://www.coolsite.com/item/27 

...i can remap behind scenes to:

http://www.coolsite.com/widgets.aspx?id=27 

today, added additional parameter end of url track user "liked" link on facebook. want build referral or flower type graph can track users shared or liked something, , of friends followed shared link. so, user "joe" has id of 333, url looks if "likes" page:

http://www.coolsite.com/item/27/333 

the value "333" important me when page being built on server can update facebooklikereferral db table, don't want (or need) show "333" parameter in address box after page has loaded.

what's best practice way modify url (via routing or other mechanism) to remove "333" or "/333" end of url?

return redirect result without parameter.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -