I want to set the Dropdown selected value in Session. I have done in Code behind. But for some condition i have to Do in Client Side Itself. i tried the following. but i did't solution yet.
<%Session[Test] = Welcome Mamu;%>
var session_value='<%=Session[Test]%>';
alert(session_value);
The above work fine. Note that i have assign Static value(Welcome Mamu). but for Dynamatic,
var strTest=document.getElementById('DropDownList1').value;
<%Session[Test] = '+ strTest +';%>
It is Working fine in Client Side. But i Server Side(Code Behind), the Session[Test] value is '+ strTest +'.
Is any other way to assign values to Session?