TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Manoj Maharana
NA
362
127.7k
how can i pass a string variable in json
Aug 30 2016 2:18 AM
When i got string value in obj then return false calls and output getting null in controller...so how to solve this??
how can i pass a string variable in json??
Here is the code:
function EditRow(obj) {
debugger
//var jSon = JSON.stringify(obj);
//data: { "LocationId": obj },
$.ajax({
url: "/TLocation/EditLocation/",
type: "GET",
cache: true,
//async: true,
//data: JSON.stringify({ LocationId: obj }),
//data: { "LocationId": obj },
data: { LocationId: JSON.stringify(obj) },
success: function (result) {
$("#EditLocation").html(result);
},
error: function (result) { alert(''); }
});
return false;
}
obj="Test"
Reply
Answers (
3
)
How to eliminate renderblocking of webresources.asd
how i want to add property to my model as upload file in asp