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. The Lounge
  3. MVC 5: How do I render error page in a different div?

MVC 5: How do I render error page in a different div?

Scheduled Pinned Locked Moved The Lounge
questionasp-netarchitecturehelp
8 Posts 7 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.
  • U Offline
    U Offline
    User 8695194
    wrote on last edited by
    #1

    I am handling error by overriding OnException method after that I need to render my partial error view into a div in _Layout.cshtml and not into the original div where it occurred. Thanks!

    OriginalGriffO J P V M 5 Replies Last reply
    0
    • U User 8695194

      I am handling error by overriding OnException method after that I need to render my partial error view into a div in _Layout.cshtml and not into the original div where it occurred. Thanks!

      OriginalGriffO Online
      OriginalGriffO Online
      OriginalGriff
      wrote on last edited by
      #2

      Wrong place to post: read the top of the page, and pay attention to the red words: click here to ask your programming questions. Post it here: Ask a Question[^] But give us details: Remember that we can't see your screen, access your HDD, or read your mind.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      J 1 Reply Last reply
      0
      • U User 8695194

        I am handling error by overriding OnException method after that I need to render my partial error view into a div in _Layout.cshtml and not into the original div where it occurred. Thanks!

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        You're much more likely to get an answer if you ask at the right place. Try here[^] .

        Wrong is evil and must be defeated. - Jeff Ello

        1 Reply Last reply
        0
        • U User 8695194

          I am handling error by overriding OnException method after that I need to render my partial error view into a div in _Layout.cshtml and not into the original div where it occurred. Thanks!

          P Offline
          P Offline
          Palash Mondal_
          wrote on last edited by
          #4

          Also, while posting a new question please include attempted solutions, why they didn't work, and the expected results. That would really helps others to figure out the issue with your code and provide a better solution.

          Regards, Palash

          1 Reply Last reply
          0
          • U User 8695194

            I am handling error by overriding OnException method after that I need to render my partial error view into a div in _Layout.cshtml and not into the original div where it occurred. Thanks!

            V Offline
            V Offline
            Vincent Maverick Durano
            wrote on last edited by
            #5

            Good luck with that! :rolleyes:

            1 Reply Last reply
            0
            • U User 8695194

              I am handling error by overriding OnException method after that I need to render my partial error view into a div in _Layout.cshtml and not into the original div where it occurred. Thanks!

              M Offline
              M Offline
              Marco Bertschi
              wrote on last edited by
              #6

              JavaScript?

              JavaScript gives you a false sense of safety. It's like riding a bike with those little side wheels and then riding head first into a ravine. Sander Rossel

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                Wrong place to post: read the top of the page, and pay attention to the red words: click here to ask your programming questions. Post it here: Ask a Question[^] But give us details: Remember that we can't see your screen, access your HDD, or read your mind.

                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

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

                And somebody upvoted it... :~

                Anything that is unrelated to elephants is irrelephant
                Anonymous
                -----
                The problem with quotes on the internet is that you can never tell if they're genuine
                Winston Churchill, 1944
                -----
                I'd just like a chance to prove that money can't make me happy.
                Me, all the time

                OriginalGriffO 1 Reply Last reply
                0
                • J Johnny J

                  And somebody upvoted it... :~

                  Anything that is unrelated to elephants is irrelephant
                  Anonymous
                  -----
                  The problem with quotes on the internet is that you can never tell if they're genuine
                  Winston Churchill, 1944
                  -----
                  I'd just like a chance to prove that money can't make me happy.
                  Me, all the time

                  OriginalGriffO Online
                  OriginalGriffO Online
                  OriginalGriff
                  wrote on last edited by
                  #8

                  Well, at least we know he has a friend. Probably imaginary, but there you go!

                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  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