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. Pass string to error page

Pass string to error page

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 2 Posters 1 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
    mail572352
    wrote on last edited by
    #1

    Hi, My code needs to send a string (error text) to an error page. What's the best way of doing it? The string might be quite long so I want to avoid just sending it as a parameter to the page though that's possible if the error string is short enough.

    T 1 Reply Last reply
    0
    • M mail572352

      Hi, My code needs to send a string (error text) to an error page. What's the best way of doing it? The string might be quite long so I want to avoid just sending it as a parameter to the page though that's possible if the error string is short enough.

      T Offline
      T Offline
      Tarakeshwar Reddy
      wrote on last edited by
      #2

      The best way is to send an error code which could be used by the error page to get the error description from some kind of key value pair storage

      M 1 Reply Last reply
      0
      • T Tarakeshwar Reddy

        The best way is to send an error code which could be used by the error page to get the error description from some kind of key value pair storage

        M Offline
        M Offline
        mail572352
        wrote on last edited by
        #3

        Thanks, I want to avoid an error code though because I want to display the actual exception detail if I get any and I can't guess as to what exceptions or detail I will get. My solution is that I've used a session variable instead because I can create it when an exception occurs and clear it after I've displayed it.

        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