Monday, 5 August 2013

Jump out from Iframe to Parent Page with Response.Redirect Method

Copy and Paste this javascript function to .aspx page:

<script type="text/javascript" language="javascript">

        //for Redirect Iframe
        function Redirect() {

            top.location = "Checkout.aspx";

        }

        </script>

Then Copy and Paste it to .cs page:

ScriptManager.RegisterStartupScript(Page, typeof(System.Web.UI.Page),

                                       "click", @"<script type='text/javascript'>Redirect();</script>", false);

No comments:

Post a Comment