Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. add error handling page to project

add error handling page to project

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    daku1
    wrote on last edited by
    #1

    i want to know where do i have to make changes in order to add complile error hanle page? i have created a page and i want to put it in project. what do i do for it to be working? thank you

    D 1 Reply Last reply
    0
    • D daku1

      i want to know where do i have to make changes in order to add complile error hanle page? i have created a page and i want to put it in project. what do i do for it to be working? thank you

      D Offline
      D Offline
      Dave Sexton
      wrote on last edited by
      #2

      You want a page to handle compiler errors? Your site won't run if you have a compile error! In the event you actually mean something else - add the file to your project by right-clicking on the project & selecting "Add Existing Item...", browse for file & add it. Then add a Global.asax file to the project (assuming you don't already have one). Inside the AppilcationError event of the Global.asax file add code to handle your error & redirect to your error page as required.


      I think I'm going to call my next project "Chuck Norris". It's a sure way to guarantee it's unbreakable.

      • • •

      But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups