I have a Default.aspx page in which i have an image.
on click of that image, a popup opens.
that popup is an aspx page(submitForm.aspx) which has an ascx page(submitform.ascx) this asxc page has the coding and design of the form
Now the issue is when i click that image, a popup appears which is a registration form on submiting the form a pdf opens in a new window
what i want is when the pdf opens in a new window the popup should close
this is code to open the pdf
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "window.open('http://www.ilink-systems.com/Portals/0/ilink/pdf/chempoint-v2.pdf', null, 'height=600,width=900,status=yes,toolbar=no,menubar=no,location=no' );", true);
when i click the submit button in the ascx page, first pdf should open and then the popup should close or vise versa.
this is the code i tried to close the popup
Page.ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.close();", true);
all the coding and design is in the ascx page on clicking the submit button i have to open the pdf in new window and close the popup that is(submitForm.xspx).
please help me....