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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved ASP.NET
5 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.
  • R Offline
    R Offline
    Reethika
    wrote on last edited by
    #1

    [Message Deleted]

    B 1 Reply Last reply
    0
    • R Reethika

      [Message Deleted]

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      if you have to recognize quotation mark on SQL then use four quotations to get result as single one like this: select ''''+'single quotation mark'


      I Love T-SQL

      R 1 Reply Last reply
      0
      • B Blue_Boy

        if you have to recognize quotation mark on SQL then use four quotations to get result as single one like this: select ''''+'single quotation mark'


        I Love T-SQL

        R Offline
        R Offline
        Reethika
        wrote on last edited by
        #3

        Thanks for ur reply, I've to write in Vb. Its a mailing proj. While sending msg in a mail, IF the user uses (') then it crops error. How to overcome it

        B 1 Reply Last reply
        0
        • R Reethika

          Thanks for ur reply, I've to write in Vb. Its a mailing proj. While sending msg in a mail, IF the user uses (') then it crops error. How to overcome it

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          Have you tried doubling up any single quotes to escape them when they're in the string? stringvalue.Replace("'", "''")


          I Love T-SQL

          V 1 Reply Last reply
          0
          • B Blue_Boy

            Have you tried doubling up any single quotes to escape them when they're in the string? stringvalue.Replace("'", "''")


            I Love T-SQL

            V Offline
            V Offline
            VanithaVasu
            wrote on last edited by
            #5

            I don't have any Idea in Vb. But in C# For ex: if we want our string to diaplay like - xml version="1.0" then we have to code like -- xml version= "\" 1.0 \"". So here you will get the output as: xml version="1.0"

            VanithaVasu

            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