Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a search box/script help

Status
Not open for further replies.

mikedaruke

Technical User
Mar 14, 2005
199
US
How would i go about creating a search box and having it actually execute an sql query when clicked?

Any sample code out there? I would want the search box on my header, which is included on all pages.

The pages currently use a code behind, which goes to a compiled dll, so I can't add to that since I dont have the source. I need to add the code probably to the aspx header page correct? any help would be appreciated
 
does the current API provide public objects and or events to hook into? if not you can't incorporate new functionality.

your closest solution is to use javascript and call a webservice to return database results. then use the DOM object to present the results.

this will work up until the point you need to post back to the server. Unless page validation is disabled the current state of the client does not match the original state sent by the server and ASP.Net will throw an exception. This is my default to deter XSS.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
1. contact the previous developers and check with them
2. review the documentation, if any exists
3. use the object browser in VS to view the API
4. find a decompiler to disect the assembly

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top