html - IE7 and posting a form in an iframe in MS CRM = new window -


I have an ASP.NET MVC page which has a very simple form: a textbox and a submit button. The form uses the standard mvc BeginForm () syntax:

  & lt;% (Html.BeginForm ()) {%>  

When the page is opened directly, everything works fine.

However, we have another web site (non MVC) that loads this page within IFrame. Most browsers seem to fix this situation, except IE7 (and IE6). When submitting the form, the form is posted in IEfr from a new window in IFrame.

Is there anything I can stop the new window from opening, iFrame this form? I like ASP.NET MVC, but I think this should be the JavaScript / Java solution.

Edit:

I should note that the original page IFrame is actually using Microsoft CRM 4.0

This was a CRM security setting enabled which was enabled.

There is a security property for "restrict cross-frame scripting" in an IFRAM in CRM, it seems that by default it is turned on when it starts, any links and form posts are always Will open in a new window, even if you type html

If this setting is turned off, then any link and form will reuse the post IFRAME


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -