tags:

views:

29

answers:

1

Hi,

Is it possible to postback to a Iframe which is a different domain?

For eg: ` Form runat="server" action="Something in Domain A"

Iframee src="DomainA.com" name="A"

      Form runat="Server" **action="DomainB/default.aspx" Target="A"**

      Form

Iframee

Form `

I will do a postback in the Iframe, so that the whole page doesnt get refreshed, but when I do a postback, can I set the Target of the Form to Iframe which has a source url from DomainA?

Please advice.

-Ben

A: 

Yes, you can set the form action to be an off-domain site. That restriction is really around for AJAX request.

Or am I misunderstanding?

Xorlev
setting action to a offdomain site is ok, I was wondering if the result of the form post can be set to an Iframe which is in diferent domain though "Target" property.
Ben