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. General Programming
  3. C#
  4. help me with search code

help me with search code

Scheduled Pinned Locked Moved C#
questionalgorithmshelptutorial
6 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.
  • L Offline
    L Offline
    luckyve
    wrote on last edited by
    #1

    Hi friends. I am cearting my website ... I need "search" in a webform. for example, when the user types " demo " in the textbox of the search page, then it should appear all the things in all pages of the website,which is correlate with the word "demo". Just like the search in codeproject. how can I do it ? I just know about searching with a specific field,like user name,age,... but I dont have any idea about a word searching ... is there any articles which can help me? Or can anyone help me to write ...? thanks alot.:rose:

    D 1 Reply Last reply
    0
    • L luckyve

      Hi friends. I am cearting my website ... I need "search" in a webform. for example, when the user types " demo " in the textbox of the search page, then it should appear all the things in all pages of the website,which is correlate with the word "demo". Just like the search in codeproject. how can I do it ? I just know about searching with a specific field,like user name,age,... but I dont have any idea about a word searching ... is there any articles which can help me? Or can anyone help me to write ...? thanks alot.:rose:

      D Offline
      D Offline
      David Trasbo
      wrote on last edited by
      #2

      Are you searching i a SQL Database? -- David Trasbo.

      N L 2 Replies Last reply
      0
      • D David Trasbo

        Are you searching i a SQL Database? -- David Trasbo.

        N Offline
        N Offline
        netJP12L
        wrote on last edited by
        #3

        Put "Like" keyword in your select query and pass different parameters i.e syntax may not be write: Select * from Like="AAA",Like"BBB";

        L 1 Reply Last reply
        0
        • D David Trasbo

          Are you searching i a SQL Database? -- David Trasbo.

          L Offline
          L Offline
          luckyve
          wrote on last edited by
          #4

          Yes,Sorry I forgot to say.. My Database is SQLServer 2000 plz help

          N 1 Reply Last reply
          0
          • N netJP12L

            Put "Like" keyword in your select query and pass different parameters i.e syntax may not be write: Select * from Like="AAA",Like"BBB";

            L Offline
            L Offline
            luckyve
            wrote on last edited by
            #5

            netJP12L wrote:

            Put "Like" keyword in your select query and pass different parameters i.e syntax may not be write: Select * from Like="AAA",Like"BBB";

            sorry I didnt understand ... What does "like" do ?? What is "AAA" or "BBB" ...? I want this search form to work with any word...like codeporject's search ... plz help me

            1 Reply Last reply
            0
            • L luckyve

              Yes,Sorry I forgot to say.. My Database is SQLServer 2000 plz help

              N Offline
              N Offline
              netJP12L
              wrote on last edited by
              #6

              You need to set a criteria for how a particular thing will be searched out in your database. Like is a keyword that tells the query look for something that i am passing in the parameter. Like keyword is different than Equal or ==. As Obvisouly, equal mean look exactly what I need to search. SELECT * FROM QUESTION_PARENT WHERE (PTYPE LIKE 'searchCriteria')

              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