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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -