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. Web Development
  3. ASP.NET
  4. How can i make my page, not to show error?

How can i make my page, not to show error?

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharp
8 Posts 5 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.
  • M Offline
    M Offline
    m rastgar
    wrote on last edited by
    #1

    Hi. In my webapplication, i never handle errors by try catch (my code language is c#). But I handle all errors in PageError and Applicationerror events. But after handling them, I want to show my message in another page. I do that on this way: Response.Write("window.open('errorpage.aspx')"); But I have a problem. On this way, the first page shows the exception and the code which error was raised. But I want to show the original page, because I show my message in another page. Please offer my method to do the way which I want to handle my errors. Thanks Rastgar

    E N 2 Replies Last reply
    0
    • M m rastgar

      Hi. In my webapplication, i never handle errors by try catch (my code language is c#). But I handle all errors in PageError and Applicationerror events. But after handling them, I want to show my message in another page. I do that on this way: Response.Write("window.open('errorpage.aspx')"); But I have a problem. On this way, the first page shows the exception and the code which error was raised. But I want to show the original page, because I show my message in another page. Please offer my method to do the way which I want to handle my errors. Thanks Rastgar

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      m.rastgar wrote:

      i never handle errors by try catch

      Nice programming practice :omg: Why not handle the error, create a logging object that handles the exception and pops up a page with the info?

      1 Reply Last reply
      0
      • M m rastgar

        Hi. In my webapplication, i never handle errors by try catch (my code language is c#). But I handle all errors in PageError and Applicationerror events. But after handling them, I want to show my message in another page. I do that on this way: Response.Write("window.open('errorpage.aspx')"); But I have a problem. On this way, the first page shows the exception and the code which error was raised. But I want to show the original page, because I show my message in another page. Please offer my method to do the way which I want to handle my errors. Thanks Rastgar

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        m.rastgar wrote:

        Please offer my method to do the way which I want to handle my errors.

        Debug and eliminate them, then they won't show up and you won't have to worry about displaying them.


        only two letters away from being an asset

        J M 2 Replies Last reply
        0
        • N Not Active

          m.rastgar wrote:

          Please offer my method to do the way which I want to handle my errors.

          Debug and eliminate them, then they won't show up and you won't have to worry about displaying them.


          only two letters away from being an asset

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          Mark Nischalke wrote:

          Debug and eliminate them

          And how exactly do you debug and eliminate Natwork outages, timeouts (except raising the script timeout to an unusually high number) or any number of other exceptions that can happen during the ongoing usage of any application?

          --- How to get answers to your questions[^]

          T 1 Reply Last reply
          0
          • J J4amieC

            Mark Nischalke wrote:

            Debug and eliminate them

            And how exactly do you debug and eliminate Natwork outages, timeouts (except raising the script timeout to an unusually high number) or any number of other exceptions that can happen during the ongoing usage of any application?

            --- How to get answers to your questions[^]

            T Offline
            T Offline
            ToddHileHoffer
            wrote on last edited by
            #5

            Seriously, if those of you posting here are employed as programmers then I should become a consultant so I can get paid $$$ to clean up all the mess you all are inevitably creating. If your not going to use try catch blocks, at least use an error handling class.

            GameFly free trial

            N J 2 Replies Last reply
            0
            • T ToddHileHoffer

              Seriously, if those of you posting here are employed as programmers then I should become a consultant so I can get paid $$$ to clean up all the mess you all are inevitably creating. If your not going to use try catch blocks, at least use an error handling class.

              GameFly free trial

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              Hey, me first on the clean up gig, I posted first.:-D


              only two letters away from being an asset

              1 Reply Last reply
              0
              • T ToddHileHoffer

                Seriously, if those of you posting here are employed as programmers then I should become a consultant so I can get paid $$$ to clean up all the mess you all are inevitably creating. If your not going to use try catch blocks, at least use an error handling class.

                GameFly free trial

                J Offline
                J Offline
                J4amieC
                wrote on last edited by
                #7

                :confused:

                --- How to get answers to your questions[^]

                1 Reply Last reply
                0
                • N Not Active

                  m.rastgar wrote:

                  Please offer my method to do the way which I want to handle my errors.

                  Debug and eliminate them, then they won't show up and you won't have to worry about displaying them.


                  only two letters away from being an asset

                  M Offline
                  M Offline
                  m rastgar
                  wrote on last edited by
                  #8

                  could i have a class when any exception raises, my class method raise> if yes, tell me how? Thanks Rastgar

                  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