Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Window Redirection is not working

$
0
0
HttpContext context = HttpContext.Current;
                           if (HttpContext.Current.Request.QueryString["IsDlg"] != null)
                           {
                               context.Response.Write("<script type='text/javascript'>window.frameElement.commitPopup();window.top.location.replace(" + pageURl+ ");</script>");
                               context.Response.Flush();
                               context.Response.End();
                              // context.Response.Write("<script type='text/javascript'>window.location='"+pageURl+"';</script>");
                               
                           }


commitPopup() --> Works fine.

window.top.location.replace --> Not working

Pleaw let me know how to solve?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>