Tuesday 2 February 2010

Url Trimming for security perpose

 

string url = "http://images.google.co.uk/imghp?hl=en&tab=wi";
Uri uri = new Uri(url);
Response.Redirect(uri.GetLeftPart(UriPartial.Path));

No comments:

Post a Comment