PDA

View Full Version : Unable to pass string with "." to code behind


girishnehte
06-01-2009, 01:42 PM
Hello friends,

I am using Visual Studio 2008 to build my web application. We are using MVC architecture I am using JSON to pass the data from clientside code to code behind.

$.getJSON(url, null, function(data) { }
This above statement I am using to call the code behind function. where url is the variable in which I specify which function to call. and data is the variable where the code behind function returns the data.
now
var url = "/Editor.mvc/SpellCheck/" + TextwithSapces;
This above line has the value of url and "TextwithSapces" is the variable having the parameter to pass to the function. Now if we pass the simple string in the "TextwithSapces" variable then it is very fine and works good. but the problem is if we pass the string ending with "." then it did not pass it to the code behind function asnd even did not show any error.
Please let me know what could be the reason.

Thanks & Regards
Girish Nehte