C# URL Manipulaton -
hi need url part following(highlighted):
"https://mail.microsoft.com/owa/redir.aspx?c=lvzevtbynu2twqjn3eikmq8hz93zltaijhsevil8pzpxmps1hyengwvx89uxaybsmxqovzq2byw.&url=https%3a%2f%2fhyd2bifmdsfdfd.farrrrr.corp.microsoft.com%2ffms%2fbrandedsurvey.aspx%3fsurveycontextid%3d66469411-5860-4544440-a523-58e7977f91a6%26usl%3den-us%26usdl%3den"
how can that?
if asp.net
:
string urlinurl = request.querystring("url");
else, can use string.split()
function split , 2nd item (index 1) array.
string newurl = oldurl.split(new string[]{"&url="})[1];
Comments
Post a Comment