I am trying to set a session in jquery. here is the code but couldnt figure it out. Please look at the line below the comment. How can I do it?
$(document).ready(function () {
$("#demo-input-facebook-theme").tokenInput("http://xxx.com/MedService.aspx", {
onAdd: function (item) {
// *************************************
// I want to add item.name to below code
// *************************************
<% HttpContext.Current.Session["Session_Post_Kategori"] += "item.name"; %>
},
onDelete: function (item) { },
theme: "facebook"
});
});