469,954 Members | 1,722 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,954 developers. It's quick & easy.

Server.Transfer / POST within iframe

Ok, I have a asp.net project. Everything works great. HOWEVER, this project was made to be called from within a frame or iframe.

When being used within the iframe the user gets a blank frame when clicking certian buttons.

Here is the code for the iframe.
<iframe src="http://www.website.com/?cid=A195E1A9-A5D7-4046-89A4-1C00D4F81E35" id="frameName" frameborder="0" width="550" height="750"></iFrame>


Here are the steps taken to reproduce.

1. Open main page in browser. (main page includes an iframe that calls my application) Both pages load fine.

2. User clicks the "Register" button. The code behind this button has one line of code Server.Transfer("register.aspx");

3. the register.aspx page loads correctly within the iframe.

4. User fills in form and clicks submit.

5. The content of the iframe dissapears. If I view the source of the iframe it contains the same html as the parent page which is...

<iframe src="http://www.website.com/?cid=A195E1A9-A5D7-4046-89A4-1C00D4F81E35" id="frameName" frameborder="0" width="550" height="750"></iFrame>


NOW, if I make a page on my local machine and change the src attribute of the iframe tag to point to this same project but on my local machine it works fine. The production website works fine too as long as it is not contained within a frame or iframe.

Any Ideas???
Feb 9 '08 #1
0 1274

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by doug | last post: by
6 posts views Thread by StephenMcC | last post: by
4 posts views Thread by Keith Patrick | last post: by
8 posts views Thread by p3t3r | last post: by
4 posts views Thread by ewolfman | last post: by
3 posts views Thread by jasonheath.net | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.