Urgent Help...on Error Handling

  • Thread starter Thread starter Chirag Malvi
  • Start date Start date
C

Chirag Malvi

hello all,

I am developing ASP.net application in VS.net - 2003.

On occurance of error i am trying to redirect it to the errorpage.htm in the
frame set. presently i am using the frame set with content, main, banner and
footer frames.

In content frame if the error occurs the errorpage.htm is opening in the
content page. But my requirement is to show the error page.htm in the parent
window.

how do i do this ??? what configuration i need to do in web.config? or is
any other possibilities??

Any help is highly appreciable.

regards
Chirag
 
Your best bet might be a framebuster script on your error.htm page.

I just ripped this off from another site, so it isn't tested:

<script language="JavaScript">
if(top.window.frames.length>0) {top.location.replace(self.location)};
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top