Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 23, 2012 08:14 AM by vineeta_2010
Jun 21, 2012 11:14 AM|LINK
I am opening a page ("page2") by response redirect from modal popun extender on page1,
now I want to open previous page(page1) along with modal popup extender, when I close this page (page2).
how can I do this.I am using c# asp.net 2008.
I made an image uploader in modal popup.page2 shows image in a big form.
Jun 21, 2012 11:35 AM|LINK
When you are redirecting from page2 to page1 write like that
on page load of Page1 write following code
if(Request.QueryString("IsOpenModalPopUp") != null)
if(Convert.ToBool(Request.QueryString("IsOpenModalPopUp") ) == true)
Jun 21, 2012 12:50 PM|LINK
hi thanx for replying I am not redirecting from page1, i close page2,after closing page2 I want that I should return on previous page.
I am not using any button for closing it . I close it by clicking browser button
Jun 22, 2012 05:15 AM|LINK
Are you using popup window for Page2.aspx
Jun 22, 2012 09:48 AM|LINK
yes you are getting it write.i am using popup window to show some images in gridview if click on view button than you can see larger image on next page (page2) .
Jun 22, 2012 10:09 AM|LINK
Check this link
When you close your child window i.e. Page2.aspx write
window.opener.location.reload(), This will reload the parent window i.e. Page1.aspx. In Page1.aspx you should save the value in some state variable to know whether the modal popup is already opened or not. On page load you should check that.
This is the only method I found :)
Jun 22, 2012 11:00 AM|LINK
Is your issue fixed?
Jun 23, 2012 08:14 AM|LINK
not yet I didnt try this solution yet,actually I am bit busy will reply you soon ,but thanx for replying..:),I really apreciate.