how to pass session parameter from jquery to ASHX handler
<p>Below is my Jquery code and I would like to pass Session paramater e.g. Session["ID"].
Jquery calls ASHX page</p>

<p>All below parameters are working fine and the session parameter has a value, but how can I pass session paramater from Jquery?</p>

<p>So below code "paramater Sessionparameter" should be replaced with Session["ID"] or something like that. How can I do that?</p>

<p>please advice?</p>

<pre><code>   $('input[name$=btnTab1Save]').click(
             function (e) {
                 // debugger;
                 // AJAX call to the handler
                 $.post(
                    'Consulting.ashx',
                 // data to the handler in the form of QueryString
                    {
                    tab: 'tab1',
                    // id is the second column within the row
                    Ilac_id: prevRow.find('td:eq(0)').text(),
                    ID: SESSION_PARAMATER,
                    begindate: $('input[name$=begindate]').val(),
                    weigth: $('input[name$=weigth]').val(),
                    continue: true,
                    freq: $('input[name$=freq]').val(),
                    reason: $('input[name*=radListreason]:checked').val(),
                    freq2: $('input[name$=radListfreq2]:checked').val(),
                    freetext: $('input[name$=freetext]').val()
                },
                 // callback function
                 // data is the JSON object
                    function (data) {
                        if (data.Success) {
                            // close the tab
                        }
                    },
                    "json"
                );
             });
</code></pre>

<p>I can read my parameters like Convert.Toint(context.Request.Form["ID"]));</p>

<pre><code> data.weigth = Convert.ToInt32(context.Request.Form["weigth"]);
</code></pre>

<p>I tried : <code>'&lt;%= Session["ID"] .ToString() %&gt;'</code>, but it's not working....</p>
