I am working in a project where I have to redirect on Error Page in a particular scenario. For that I have created Error.aspx page. Right now I am using
window.top.location.href = “../Error.aspx” and it generate http://localhost/app_web/Error.aspx
and its working fine except once (which shows Message http://xyz/ErrorPage.aspx‘ does not exist. ). So can anyone suggest which is the better option for this.
Thanks
topis “better than”parentif your intent is to framebust your page into the top level, because your page may be inside a frame that is itself inside a frame.As for your relative path problem, you may want to try: