window.open
Hi,
I am trying to open a pop up modal window(which is an aspx page)......from a click of a <a > tag...
and in the page_load of a popupwindow.aspx...i have a code which reads the session variable( it works fine)...
and at the click of a save button in the popupwindow.aspx(using window.close) or using "X" button of the title bar...the window is closed
and now when i click the link again it opens a window...but when i have a debug point in page_load...it does not go there..and some how it maintains the viewstate of that page and displays whatever in page_load...but it is not actually going into page_load...
i am very confused...
javascript function
function ShowDialog()
{
retval=window.showModalDialog('popupwindow.aspx',' Code','dialogHeight: 200px; dialogWidth: 200px;edge: Raised; center: Yes; help: No; resizable: No; status: No;');
}
<A onclick="ShowDialog()" href="javascript:;"><IMG src="images\bullet3.jpg"></A>
in the page_load of the popupwindow.aspx...i have
this.Label1.Text=Session["test"].ToString();//which works..just keep a debugging point and notice it never goes there second time.
Thank You.
|