I have a javascript file that will send a value to a json file that has c# in there and sql queries to retrieve from the database.
I already ensured that the value has been retrieved, but my query doesn't give any result while it should.
JS:
$.postJSON('/path/path/html.aspx', {
action: 'myAction', id: $(this).val(), sectiontext: chosensection
}, function (j) {
//some func
});
});
this above code in JS that will send values to html.aspx, values are sent im sure. But, when I use it in the query as request["chosensection"] it gives no result
and when i use a string that has the same value as request["sectiontext"] gives result.