Hello everyone,
I had a web application running successfully and working great on the web.
One fine day I decided to use it with DNN to make it look a little better.
A Quick dirty solution, use IFrame module, create all the pages in DNN, put an IFRame module on each page and load each page of the core application into its individual DNN Page.
Works a charm... But I had a few issues.
1. When in my core application, I use Response.Redirect to move a user from one page to another, it would move in the IFrame but parent DNN page stays there only.
I researched on DNN and found that a simple JS would do the trick and indeed it does. Problem - I loose all my Querystring parameters in doing so.
For example - I had a DNN Page PageA.aspx which loads a page "CorePageA.aspx" in IFrame. This CorePageA.aspx has a button which redirect user to CorePageB.aspx?mode=edit. Now on CorePageB.aspx when I use JS
if(parent.location.href != "http://www.xxxxxx.com/PageB.aspx")
parent.location.href = "http://www.xxxxxx.com/PageB.aspx ";
It reloads the parent perfectly as expected, but unfortunately, CorePageB.aspx opened in the IFrame looses its querystring parameter (mode=edit).
Hope I did not confuse anyone. But Can anyone give me a better solution to it.
Further, I doubt if using parent.location.href would raise an "Access Denied" error since the two apps are on seperate domain.
Any help is greatly appreciated.
Thanks
Ashutosh