Session Variable not being transferred to Web Page.
Hi,
If someone could get me out of this muddle I'll be verry happy......
I have a javascript function which is being executed by the onChange() event from a dynamic dropdown list. i.e. <select name="lsNames" id="lsNames" onChange="getIndex();>
function getIndex()
{
var x = document.main_details.lsNames.selectedIndex;
var federal_id = document.main_details.lsNames.options
alert(federal_id );
Session["federal_id"]=federal_id;
return (federal_id);
}
All the above works fine and federal_id is what it should be, however when I call the response redirect from an on submit button the session variable is blank am I missing something?
Response.Redirect "http://websiteaddress/update_system_manager.asp?federal_id=" & Session("federal_id")
The session variable 'federal_id' is declared in both web pages, it seems the javascript code is being transferred to the session variable.
Thanks in advance.
Joan.