-1
var data = "testStr=" + 'E+1';
        $.ajax({
            url: '@Url.Action("test", "Confi", new { Area = "Confi" })',
            type: 'POST',
            data: data,
            success: function (response) {

            }
        });

Above is my ajax call. Before call data var has string as testStr= E+1. But when ajax call is made in controller the + is replaced by blank. What am I doing wrong.

user2998990
  • 970
  • 5
  • 18
  • 36

1 Answers1

0

Try using &#43 instead of +.

locknies
  • 1,345
  • 3
  • 15
  • 36