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. Building a search function

Building a search function

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasemysqlhelp
2 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.
  • T Offline
    T Offline
    tmoney101
    wrote on last edited by
    #1

    Hey, im building a page using asp.net (c#). I have never done it before but would like to build a search feature that searches my mysql database and returns relevant results. I have searched the net for help and found some tutorials, altough they are not that good. While in the beginning the search would not be used much its my hope to be getting a lot of people using the search function eventually, so I would like to build it using the best approach so I will not have any bad problems or errors down the line. Does any one know of any good articles, or tutorials that could help me out? thankyou.

    M 1 Reply Last reply
    0
    • T tmoney101

      Hey, im building a page using asp.net (c#). I have never done it before but would like to build a search feature that searches my mysql database and returns relevant results. I have searched the net for help and found some tutorials, altough they are not that good. While in the beginning the search would not be used much its my hope to be getting a lot of people using the search function eventually, so I would like to build it using the best approach so I will not have any bad problems or errors down the line. Does any one know of any good articles, or tutorials that could help me out? thankyou.

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Since your search function is simply going to query a database for results, consider this as you would any other MySQL data-access request. You'll have a SELECT statement that supports parameters for retrieving records from your MySQL database. The parameter values will be supplied by your user by entering "whatever" in your "Search" box. You'll execute the query and bind the results to whatever makes sense for your search results (e.g. a GridView, or DataList, or Repeater... depending on how you want the search results to display).

      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