not able to redirect pages in iframe
-
hi all, can anyone tell me the possible contraints to redirect pages in iframe.i am not able to redirect pages in IE and it gives a lot of problems like loss of session data etc... or can anyone suggest me how i can hide the url of the website using asp.net1.1 and do my application navigation without using an iframe any help or suggestions are welcome thanks in advance.
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"
-
Can you please explain a bit, what you realy want? So that we can suggest you a proper way. Thanks
All the way from Sialkot ...
hi sialkot, thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE. Of course may be i appear unclear with such a weird question but what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe Question1:i lose session data and exception occurs that thread has been aborted. so my question is how can i redirect page in a iframe while loading session variables just before the redirect. Question 2: is there any way to change the url of application from display from user and use our own website url? i hope i am clearer now... thanks for help...
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"
-
hi sialkot, thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE. Of course may be i appear unclear with such a weird question but what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe Question1:i lose session data and exception occurs that thread has been aborted. so my question is how can i redirect page in a iframe while loading session variables just before the redirect. Question 2: is there any way to change the url of application from display from user and use our own website url? i hope i am clearer now... thanks for help...
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"
rama charan wrote:
hope i am clearer now...
Not question 2 :confused: As for #1, how are you doing the redirect? If you are using Response.Redirect, look at the secnd parameter for that method.
only two letters away from being an asset
-
rama charan wrote:
hope i am clearer now...
Not question 2 :confused: As for #1, how are you doing the redirect? If you are using Response.Redirect, look at the secnd parameter for that method.
only two letters away from being an asset
thanks mark for your help 1)yes i have already tried using response.redirect ("mypage.aspx",false) but still it does not work when i tried like response.redirect("~/mypage.aspx",false) it works. but then the issue occurs when i press any link on menu like "link1.aspx" then i am redirected to login page as the pages are accessible only to authenticated users. hope i am clear about my first question 2)then second question is all these issues to redirect occur only when my application runs in iframe completely but when it is running outside its fine. so i use iframe to use website address for my application.So i wanted to know if there any way to hide my appplication page addresses like 34.23.23.12:6780\login.aspx but instead show like mywebsite.com thanks all once again for your efforts but give out any suggestions or help regarding this i feel i am not still out with a complete solution
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"
-
hi sialkot, thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE. Of course may be i appear unclear with such a weird question but what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe Question1:i lose session data and exception occurs that thread has been aborted. so my question is how can i redirect page in a iframe while loading session variables just before the redirect. Question 2: is there any way to change the url of application from display from user and use our own website url? i hope i am clearer now... thanks for help...
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"
rama charan wrote:
i lose session data
Exactly what session data are you losing?
rama charan wrote:
exception occurs that thread has been aborted.
That is normal. That is how the Response.Redirect command exits from the current page. You are not supposed to catch that exception. When you catch exceptions, you should only catch the ones that you know how to handle.
rama charan wrote:
is there any way to change the url of application from display from user and use our own website url?
The url shown in the browser is always the url of the page displayed. You can never change that.
--- single minded; short sighted; long gone;
-
rama charan wrote:
i lose session data
Exactly what session data are you losing?
rama charan wrote:
exception occurs that thread has been aborted.
That is normal. That is how the Response.Redirect command exits from the current page. You are not supposed to catch that exception. When you catch exceptions, you should only catch the ones that you know how to handle.
rama charan wrote:
is there any way to change the url of application from display from user and use our own website url?
The url shown in the browser is always the url of the page displayed. You can never change that.
--- single minded; short sighted; long gone;
Guffa wrote:
The url shown in the browser is always the url of the page displayed. You can never change that.
UrlRewrite ??
only two letters away from being an asset
-
thanks mark for your help 1)yes i have already tried using response.redirect ("mypage.aspx",false) but still it does not work when i tried like response.redirect("~/mypage.aspx",false) it works. but then the issue occurs when i press any link on menu like "link1.aspx" then i am redirected to login page as the pages are accessible only to authenticated users. hope i am clear about my first question 2)then second question is all these issues to redirect occur only when my application runs in iframe completely but when it is running outside its fine. so i use iframe to use website address for my application.So i wanted to know if there any way to hide my appplication page addresses like 34.23.23.12:6780\login.aspx but instead show like mywebsite.com thanks all once again for your efforts but give out any suggestions or help regarding this i feel i am not still out with a complete solution
Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"
- This seems to be a problem with the authentication setup, not with redirect. Have you tried using Server.Transfer instead? 2) http://www.codeproject.com/aspnet/urlrewriter.asp[^]
only two letters away from being an asset
-
Guffa wrote:
The url shown in the browser is always the url of the page displayed. You can never change that.
UrlRewrite ??
only two letters away from being an asset
-
Mark Nischalke wrote:
UrlRewrite ??
Then you are changing the url of the page on the server. The browser still displays the url of the page.
--- single minded; short sighted; long gone;
Am I looking at this incorrectly then? http://msdn2.microsoft.com/en-us/library/ms972974.aspx[^]
only two letters away from being an asset
-
Am I looking at this incorrectly then? http://msdn2.microsoft.com/en-us/library/ms972974.aspx[^]
only two letters away from being an asset