Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

HI

 

Ive created a custom error page to obviously capture errors that occur...BUT theres a couple more things i would like to do and am struggling to find info on (decent info anyway)

 

1) How do i capture the error type in that custerror.aspx page to display appropriate message?

 

2) if a incorrect link like to an .htm file that doesnt exits occures, the error isnt fired, how can i also customise it to catch none, aspx errors?

 

thanks loads for the help...

  • *Experts*
Posted

1) Call Server.GetLastError() in the Application's Error event handler.

 

2) A 404 error page can be assigned through the IIS options

in the Control Panel.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...