4
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by SheSaidImaPregy
0

i just don't want to show special characters like ? & % in url (or address bar)

when we use query string we should use this special characters

how can i eliminate this characters by rewritting url or any other way

0

I'd suggest implementing a 3rd party component. We use http://urlrewriter.net/ quite a bit and I've been very impressed with it. If you decide to go this route and end up having any issues with the setup, let us know.

1

It's not difficult in asp.net to use the ASP.NET built in methods to do url rewriting.

Also, if you wish to stray away from this method, just add a check at the beginning of each page.

Dim idSplit = request.serverVariables("SCRIPT_NAME").split("/")
Dim id = idSplit(idSplit.length - 1)
Dim page = idSplit(idSplit.length - 2)

If page = "demo.aspx" And Not id Is Nothing Then
    'there's a querystring.
End If

This is not a very effective way, but if it is small and minimal people are using it, it can be an easy solution.

Votes + Comments
Nice to see you back bud!
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.