0

client side

 <script type="text/javascript">
    function getIstekTalebi(id) {
        var istek2 = id;
        '<%Session["UserName"] = "'+istek2+'"; %>';

        alert('<%=Session["UserName"].ToString() %>');
    }

</script>

How can use this session in server side in .cs asp.net

Ferandro
  • 49
  • 1
  • 1
  • 8

1 Answers1

0

This code alow and working for my question

string val = HttpContext.Current.Session["deger"].ToString();
Ferandro
  • 49
  • 1
  • 1
  • 8