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.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
Offline 1,080 posts
since Sep 2007