Here I'm opening a new window then i will do some operations and i want to send back the data to main from from child form
Main form:
var sURL = 'AnodizingLoadingPopupHelp.aspx' +
'?ProfitCenterCode=' + strProfitCenterCode +
'&LineCode=' + MachineID;
var sFeatures1 = "dialogHeight: 240px;dialogWidth:280px;dialogLeft:40px;dialogTop:100px";
window.showModalDialog(sURL, "Lookup", sFeatures1, true);
var Receivedata = '<%= Session["data"] %>';
alert(Receivedata );
Child form:
var senddata = data;
'<%Session["data"] = "' + senddata + '"; %>';
alert(senddata);
window.close();
Here I'm using session but , I'm not able to get value in session , it says "undefined"