c# - Why is '+' Character Removed From Url -
why mvc remove + code=wamtepi6kzcp997j2d+zeq==
link
http://localhost:33693/passwordrecovery/initpassword?email=abc@gmail.com&code=wamtepi6kzcp997j2d+zeq== controller func
public actionresult initpassword(string email, string code) { return view(); }
th '+' sign has special meaning in urls, means 'space'.
you should urlencode code parameter preserve '+' sign.
you can use @uri.escapedatastring() or @html.raw() in razor views.
Comments
Post a Comment