KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm sending empty string through $.post and it deserializes to null. How to differentiate if the string was empty or null at the client side ? Regards UPDATE What I'm actually doing is: $.post("Controller/Action", $.param({Name: ""}, true), null, "json"); at the server: public Container { public string Name; } public void Action(Container container) { bool c = container.Name == null; // c is true, why ? }
Tags (comma-separated)
Save Edits
Cancel