$('tr td:first-child').click(function() {
var foobar = $(this).text();
$("#showgrid").load('/Product/List/Item?id=' + foobar);
});
When I am sending foobar value like this in the Actionresult method I am getting string id value perfectly but I am not able to display the grid?
But interesting thing is when I am sending like this
$("#showgrid").load('/Product/List/Item?id=' + "12345");
Then I am able to display the grid. foobar result is same 12345.
What is the different between these two types?
Try this:
You may have some extra spaces in there.