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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. PAge crashes on entering ' and REPLACE

PAge crashes on entering ' and REPLACE

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
4 Posts 3 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.
  • S Offline
    S Offline
    SABhatti
    wrote on last edited by
    #1

    I have an asp page wichh submit two fields, title and contents. Now if user types single code ('), or semi-colon (;) and replace (the word REPLACE) then on submitting the form, page crashes. Any help please.. Note: it is working fine on development server (win 2003) but crashing on production server (win 2000) -----

    G B 2 Replies Last reply
    0
    • S SABhatti

      I have an asp page wichh submit two fields, title and contents. Now if user types single code ('), or semi-colon (;) and replace (the word REPLACE) then on submitting the form, page crashes. Any help please.. Note: it is working fine on development server (win 2003) but crashing on production server (win 2000) -----

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Please don't cross post. I replied in the web development forum.

      --- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams

      1 Reply Last reply
      0
      • S SABhatti

        I have an asp page wichh submit two fields, title and contents. Now if user types single code ('), or semi-colon (;) and replace (the word REPLACE) then on submitting the form, page crashes. Any help please.. Note: it is working fine on development server (win 2003) but crashing on production server (win 2000) -----

        B Offline
        B Offline
        Bino B
        wrote on last edited by
        #3

        since single quote is a reserved character in SQL, u need to replcae it with some other character before inserting into the DB.u can easily use a simple 'replace' method. like replace("'","~")

        Regards Sean http://www.codepal.co.nr

        S 1 Reply Last reply
        0
        • B Bino B

          since single quote is a reserved character in SQL, u need to replcae it with some other character before inserting into the DB.u can easily use a simple 'replace' method. like replace("'","~")

          Regards Sean http://www.codepal.co.nr

          S Offline
          S Offline
          SABhatti
          wrote on last edited by
          #4

          Thanks Sean. But this is not the problem, please see this for complete details.

          -----

          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