This is a discussion on How to pass session values in popup window within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; hi all, i couldn't get the session value in popup window. i call the popup window through javascript. but ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi all, i couldn't get the session value in popup window. i call the popup window through javascript. but in that popup window i couldn't get the session values. Thanx in advance
__________________ M.Ramesh Kumar |
| Sponsored Links |
| |||
| Code: <script language="javascript">
function hpclick()
{
var WinSettings = "center:yes;resizable:yes;dialogHeight:300px"
window.showModalDialog("http://localhost:4911/WebSite19/Create_category.aspx",WinSettings);
}
__________________ Regards, Sundaram |
| |||
| private void Page_Load(object sender, System.EventArgs e) { string jsString = "<SCRIPT language='JavaScript'>"; jsString += "window.open('ProgressHandler.aspx?SessionID=" ; // Pass the Session-ID as a parameter jsString += Session.SessionID + "',null,'');"; jsString += "</SCRIPT>"; RegisterClientScriptBlock("OpenPopup", jsString); StartProcesButton.Attributes.Add("OnClick","javasc ript: LoadViewer();"); } |
| |||
| Hi, Pass the Session value using Global variable like this, window.showModalDialog("http://localhost:4911/WebSite19/Create_category.aspx?sampleValue="+<%=Session("use rId")%>,WinSettings); Then in that Page retrieve the Session value using New Session Variable, Session("UserID")=Request.QueryString["sampleValue"]; |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Session never expires in site unless you close the window | ursklakshmanan | PHP Programming | 1 | 03-31-2008 03:07 AM |
| How to open popup onmouseover and to close the same window onmouseout javascript? | bluesky | HTML, CSS and Javascript Coding Techniques | 3 | 12-07-2007 06:51 AM |
| HOw to disable Confirm password popup window in Firefox browser | GDevakii | HTML, CSS and Javascript Coding Techniques | 0 | 09-24-2007 04:33 AM |
| Session in child window | Sivamurugan | PHP Programming | 3 | 09-11-2007 05:39 AM |
| How to pass the value from the child window to parent window in javascript? | kingmaker | HTML, CSS and Javascript Coding Techniques | 1 | 09-04-2007 03:18 AM |