Testing if URL and querystring is valid
Posted
by Scott
on Stack Overflow
See other posts from Stack Overflow
or by Scott
Published on 2010-05-13T18:20:50Z
Indexed on
2010/05/13
18:24 UTC
Read the original article
Hit count: 330
What is the best way to test if a url & querystring is valid? For example, after a login redirect I want to make sure the target url is valid. If not, go to a default page.
We seem to have a problem with the querystring, starting with "ReturnUrl=", being duplicated and that throws an exception. We'd rather have it go to a default page.
© Stack Overflow or respective owner