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. Replacing WildCard Character

Replacing WildCard Character

Scheduled Pinned Locked Moved ASP.NET
databaseoracle
4 Posts 2 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 4547220
    wrote on last edited by
    #1

    Hi, I want to replace the wildcard character '&'. Actually Entering the & as a input in search criteria gives all records. I want to replace that character so that i won't get any record for that. I am using Oracle as database. Thanks, Umesh Tayade

    B U 2 Replies Last reply
    0
    • U User 4547220

      Hi, I want to replace the wildcard character '&'. Actually Entering the & as a input in search criteria gives all records. I want to replace that character so that i won't get any record for that. I am using Oracle as database. Thanks, Umesh Tayade

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

      oracle syntax replace('My&String', '&', ''); C# syntax string newString = "My&String".Replace("&","");


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com

      U 1 Reply Last reply
      0
      • U User 4547220

        Hi, I want to replace the wildcard character '&'. Actually Entering the & as a input in search criteria gives all records. I want to replace that character so that i won't get any record for that. I am using Oracle as database. Thanks, Umesh Tayade

        U Offline
        U Offline
        User 4547220
        wrote on last edited by
        #3

        Hi, I got the Answer. I Replaced & by ascii value of it(&). Its Working.

        1 Reply Last reply
        0
        • B Blue_Boy

          oracle syntax replace('My&String', '&', ''); C# syntax string newString = "My&String".Replace("&","");


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com

          U Offline
          U Offline
          User 4547220
          wrote on last edited by
          #4

          Hi, Thanks for Answering, but replacing it in that way it gives all the records from the database. I have replaced the & by Ascii value of it(&) and its working. inputSQL.Replace("&", "&"); Thanks, Umesh Tayade

          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