I have the following code which works fine but shows the appended query string:
var url = '@Url.Action("RawDataPageTable", "Chlor", new { id = Model.Senid })';
url = url + '?Voting=' + isChecked;
window.location = url;
With how I am sending the parameter info, it is shown on the browser.
I tried to do the following so no query string is not visible in place of window.location = url but it did nothing:
$.redirect(url,
{
Voting: isChecked
});
Is there any other way to pass data in such a way that it is not visible in the URL? Note that I am using jQuery.
Anyway to do this in a $.post in jquery so we can pass the data?