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. How can i implement live Search in asp.net project using C# ?

How can i implement live Search in asp.net project using C# ?

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-nethelp
10 Posts 4 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
    Shama Shahzadi
    wrote on last edited by
    #1

    Please help me...... as soon as possible

    T 1 Reply Last reply
    0
    • S Shama Shahzadi

      Please help me...... as soon as possible

      T Offline
      T Offline
      Thats Aragon
      wrote on last edited by
      #2

      By term "Live Search", are you referring search in google/bing/yahoo i.e. out side of your project OR do you mean it by within a system ?

      Regards

      S 1 Reply Last reply
      0
      • T Thats Aragon

        By term "Live Search", are you referring search in google/bing/yahoo i.e. out side of your project OR do you mean it by within a system ?

        Regards

        S Offline
        S Offline
        Shama Shahzadi
        wrote on last edited by
        #3

        live search in my own project... thanks for Quick reply

        T 1 Reply Last reply
        0
        • S Shama Shahzadi

          live search in my own project... thanks for Quick reply

          T Offline
          T Offline
          Thats Aragon
          wrote on last edited by
          #4

          ok, let me assume that your project is related the shopping cart and you want to search on following criteria. 1. Product Name 2. Product Feature 3. Product SKU 4. Product Description 5. Product Price Range 6. On any other field specific to your project. You can do something like below 1. Create a page which accept the input from customer in appropriate control 2. Collect all that input and pass it to the database(I assume SQL) 3. Create a stored procedure(SP) in the SQL which accept all the above collected input and pass it to the SP 4. In SP, you can SELECT the necessary fields from the table(s) and in the WHERE condition apply the filtering based on the passed parameter collected from the customer 5. Below is the example with one parameter. SELECT ProductId, ProductName, ProductDescription, ProductSKU, ProductPrice FROM Product WHERE ProductName LIKE '%@ProductName%' Here @ProductName is the search term collected from the customer. Hope it helps.

          Regards

          S 1 Reply Last reply
          0
          • T Thats Aragon

            ok, let me assume that your project is related the shopping cart and you want to search on following criteria. 1. Product Name 2. Product Feature 3. Product SKU 4. Product Description 5. Product Price Range 6. On any other field specific to your project. You can do something like below 1. Create a page which accept the input from customer in appropriate control 2. Collect all that input and pass it to the database(I assume SQL) 3. Create a stored procedure(SP) in the SQL which accept all the above collected input and pass it to the SP 4. In SP, you can SELECT the necessary fields from the table(s) and in the WHERE condition apply the filtering based on the passed parameter collected from the customer 5. Below is the example with one parameter. SELECT ProductId, ProductName, ProductDescription, ProductSKU, ProductPrice FROM Product WHERE ProductName LIKE '%@ProductName%' Here @ProductName is the search term collected from the customer. Hope it helps.

            Regards

            S Offline
            S Offline
            Shama Shahzadi
            wrote on last edited by
            #5

            well ! you dont understand my question.First i clarify it... my project is online library, i want to give suggestions when user type text for search in textbox... As in google or yahoo website , suggestions have been given when we type text for search, this is called live search...

            T P 2 Replies Last reply
            0
            • S Shama Shahzadi

              well ! you dont understand my question.First i clarify it... my project is online library, i want to give suggestions when user type text for search in textbox... As in google or yahoo website , suggestions have been given when we type text for search, this is called live search...

              T Offline
              T Offline
              Thats Aragon
              wrote on last edited by
              #6

              What you are telling is auto complete text in the search box. You can use AJAX autocomplete extender for that. Example[^]

              Regards

              1 Reply Last reply
              0
              • S Shama Shahzadi

                well ! you dont understand my question.First i clarify it... my project is online library, i want to give suggestions when user type text for search in textbox... As in google or yahoo website , suggestions have been given when we type text for search, this is called live search...

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Why didn't you give this information in the first place, or when you were asked for clarification? That way, you wouldn't have wasted anyones time, and it's called autocomplete not live search.

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                S 1 Reply Last reply
                0
                • P Pete OHanlon

                  Why didn't you give this information in the first place, or when you were asked for clarification? That way, you wouldn't have wasted anyones time, and it's called autocomplete not live search.

                  Forgive your enemies - it messes with their heads

                  My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                  S Offline
                  S Offline
                  Shama Shahzadi
                  wrote on last edited by
                  #8

                  what i want to implement is called live search.... ok... but i have to search a lot for it... thanks to all for positive response...

                  N 1 Reply Last reply
                  0
                  • S Shama Shahzadi

                    what i want to implement is called live search.... ok... but i have to search a lot for it... thanks to all for positive response...

                    N Offline
                    N Offline
                    Not Active
                    wrote on last edited by
                    #9

                    Shama Shahzadi wrote:

                    what i want to implement is called live search....

                    No, it isn't, as you have been told. If you want argue rather than listen that's up to you but it won't endear you to the people who are trying to help you and will limited the help you get in the future.


                    I know the language. I've read a book. - _Madmatt

                    S 1 Reply Last reply
                    0
                    • N Not Active

                      Shama Shahzadi wrote:

                      what i want to implement is called live search....

                      No, it isn't, as you have been told. If you want argue rather than listen that's up to you but it won't endear you to the people who are trying to help you and will limited the help you get in the future.


                      I know the language. I've read a book. - _Madmatt

                      S Offline
                      S Offline
                      Shama Shahzadi
                      wrote on last edited by
                      #10

                      well thanks fo your kind information and comment... i will b carefull next time to argue... and thanks to all who help me and give precious time, i appreciate them... That's Aragon answer also helps to learn a new thing... My fault is that i dont know the exact question what i want to ask...

                      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