DataSource Controls :: How To Program A Search Function

Jan 25, 2010

I'm on training in a company and i'm making a web application with an SQL server database..Now I created everything but i need to know how to program a search function..t's the point that when I search to a computer it'll put all the pc's with the matching word into the dropdownlist..Like when you search for "A" I get all the pc's wich has an 'A' in their name, I made everything, in the query builder I made a parameter with the textbox but i need not EXACT the value I typed but verything wich has it in it.

View 6 Replies


Similar Messages:

DataSource Controls :: Word Search In Sql Server Without Full Text Search On Particular Column?

Jan 27, 2010

I want a word search i doing the search like this , but it is giving character wherever there is in the string,if i give two character like ok it is searching for a full string where ever Ok is there select * from table1 where textfield like '%word%' this query would match word but also wordabc how can i make it aware of delimitions

View 3 Replies

DataSource Controls :: Full Text Search -- How To Search Image

Mar 29, 2010

I am using SQL Server 2008 and Full Text search.

Its working fine for PDF / doc files but not working for .JPG files.

Basically i have some document scanned and stored it in varbinnary datatype in DB.

I am able to search for .doc /.xml /.pdf files .. but not able to search .jpg.

also i am not getting ".jgp" extension in result of following query

SELECT document_type, version, manufacturer
FROM sys.fulltext_document_types order by document_type

View 1 Replies

DataSource Controls :: Program A Select * From Rel Where Rel Like 'L'%'?

Jun 15, 2010

The following code is used to get a relation out of the database:

rel_SQL = "select * from Relatie where relatie_soort_nr = '" + rel_srt_nr + "' and relatie_naam like '%" + sel_Waarde.Trim() + "%'";

This code is a problem when you have a relation with ' in his/here name.

rel_SQL = "select * from Relatie where relatie_soort_nr = '1' and relatie_naam like '%L'%'";

As you can see there is one to many ' sign in the code, how can I solve this like problem?

View 3 Replies

DataSource Controls :: Able To Run Program In Debug Mode But Not On IIS

Jan 11, 2010

I am currently working on this situation that I could not find any other resources online to help me
Everything is working fine through VS2008 debug mode, or run without debugging ( database connectivity and everything works)but however when i copy the whole project and set up the IIS,
everything work except for database connectivity. I could not seems to read from the database which currently I am using a attached .mdf file

the error shown is as below :

Server Error in '/' Application.

Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

[Code]....

Source File: Signup.aspx.vb Line: 23 Stack Trace:

[Code]....

but however when i run on VS 2008, I am able to read the data from the database successfully,

View 4 Replies

Web Forms :: How To Create C# Search Function And Add Friend Function

Jan 1, 2010

I need to create something which is like an Add friend function in my website which works like this:

1) User types in name of the person he wants to search in the search field and clicks enter

2) on the same page, the search result will come out with an "add friend" button beside every name

3) when the user clicks the "add friend" button, he will be brought to another page (or pop up with a message box?) with a text message field to send to the friend, and a submit button to submit the friend request.

4) over at the Friend's page, he will be able to view the add friend request and decide whether to accept or deny the friend request.

View 1 Replies

DataSource Controls :: How To Use Cursor In Recursive Sql Function (scalar-value Function)

Apr 25, 2010

how can i use cursor in this function ?

ALTER FUNCTION [dbo].[GetCatIDChilds]

(

@CatID [code].....

View 1 Replies

DataSource Controls :: How To Parse Normal Search Text To Sql Server Full Text Search String

Feb 13, 2010

How i can make the normal search string to sql server full text search parse, because when we are user enyer search text "how to run windows schedule in C#", in database we have article to to this, but data not returning and sometime is say error in key word and etc.

View 1 Replies

Data Controls :: How To Perform Search Function In GridView

Feb 22, 2014

How to ? Perform the search function in gridview ...

View 1 Replies

DataSource Controls :: Search In A Database - Make A TEXTBOX And A Button "Search"?

Jan 18, 2010

now have tried to locate and find anything about how to make a

TEXTBOX and A Button "Search"

Problem is that I have made this "bellow" and when I then enter a "value" into texbox2 and hit enter on the button it wont show me the "emnenummer" that I have requested.

im not even sure this is the correct way to do a "search"

<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><asp:Button ID="Button1"
runat="server" Text="Button" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"[code]....

View 3 Replies

Forms Data Controls :: Search Function With DropDownList And Textbox?

Jun 28, 2010

I have a table called "publication" which contains records about Sharkspeare's plays, there are columns called "type", "nortonoxfordnumber", "nortonoxfordtext" and "character". What I like to achieve is to allow users to search the data using both dropdownlist and the textbox. i.e., the listitems of the dropdownlist are Othello, Tempest and twelfth night. Users should be able to type a keyword such as "music" to search within the particular play say "Othello" from the dropdownlist.

I would like to add button click function, and I know that I need to use the query with "and" and LIKE, but I am not sure how to do it as I keep getting the syntext error.

I managed to get some code done, however, I only managed to be able to search one column at the time, here is my code:

[Code]....

View 9 Replies

Forms Data Controls :: How To Make A Text Box Function As A Search Box

Jan 2, 2011

I am new here, I was thinking about using a text box to function as a search box. For example, I key in the ID, the value will be searched in the SQL database and return other values in the same row. I was thinking of combining this with GRIDVIEW.

View 2 Replies

Forms Data Controls :: Carrying Out A Search Function Before Databind?

Aug 16, 2010

I need to build an address list gridiview that has 3 search boxes - First Name, Surname, Address. How do i set it up so you can use one of 3 different where clauses? or possible 2 where clauses prior to the databind??

I dont want to search / filter a gridview that has already been databind, i want the search to go straight to the DB if possible.

View 2 Replies

Data Controls :: How To Perform Search Function In All Web Pages In Website

Feb 23, 2014

How to perform the search function for whole website in asp.net  ....

View 1 Replies

Forms Data Controls :: Simple Search Function On Records In Sql Database?

Aug 2, 2010

Is there an easy way to search all the columns in the database?

I was the user to input a search word in a textbox and then search all of my database. I then want an array full of the primary keys of all of the records that had the search word contained somewhere in the record (i.e in any of the record fields).

This sounds really simple to me but I can't figure out how to do this and can't find examples online.

View 5 Replies

DataSource Controls :: Keyword Search In Sql?

Feb 9, 2010

In one of my column have a comma separated list of keywords.I have to build a query that will return the matching rows whenever user enters the keyword.for ex.if my keywords are java,.net,sql,php,ajax then on search of java OR java,sql OR php,java should return the above row.

View 5 Replies

DataSource Controls :: Search By DateTime In SQL?

Feb 12, 2010

I want to use a TextBox with the Ajax Toolkit Calender Extender as a control to return all activities on a particular date regardless of what time they are at into a GridView.I don't understand how to set up the SQL Statement to properly do this. If it helps here is my current SQL statement

[Code]....

View 2 Replies

DataSource Controls :: How To Search Through A Database Column C#

May 11, 2010

How to search through a Database column C# and display only what you want like a number 2 in a Gridview ..

View 12 Replies

DataSource Controls :: How To Search For Any Input Word In Db

Jun 9, 2010

I need to have search form in my web app . I want visitor input text in textbox control and when he click on Search button it check DB table for his input text.

I dould like if user input "Windows 7" and I have the sentence in DB Records as "My be Some Windows Generation .." it list this record.

in other word I want to search for any word that users entered in DB.

Could any one tell me efficient way instead of split input text to words and then execute search query per word?

View 3 Replies

DataSource Controls :: Using LoginName As A Search Parameter?

Feb 23, 2010

Im working on my Dissertation and am seriously stuck. Im creating a blogging site with the ability to log in, this will also include the ability to search for projects etc. (created in Visual Studio in VB)

There are different roles: Student, admin, tutor. the table is made up of 2 tables aspnetdb.mdf and blogging.accdb; the first was created by visual studio and the later is mine that contains the projects, bloggs etc.

I want to use the asp:loginName in a search that is sourcing its data from the blogging database, Iv tried for days to do it myself, by trying to write an inner join manually, using its full name etc but keep coming up against a brick wall.

View 1 Replies

DataSource Controls :: Making A Search From Several Tables?

Mar 16, 2011

I have a searchbox where i ask for information to a table, but i want to rewrite the code so i can search from several tables.

Here is my temporary select command which works great when using only one table:

[Code]....

View 3 Replies

DataSource Controls :: A Query Generator To Search In The DB?

May 27, 2010

I'm looking for something similar to EasyQuery. Some sort of control that lets the user or the admin to select some tables, then some columns for the tables and the conditions, so he can do the query without entering the mysql sentence, only selecting the tables and the rows...

View 1 Replies

DataSource Controls :: Dynamic Search With Key Words?

Feb 21, 2010

I need to implement a stored procedure for search with 1 fileldkeywords(jobtitle,skills,company name....etc) everything is in different tables?how i will query this?any samples using dynamic query or temporary tables

View 3 Replies

DataSource Controls :: Search Records In A Database Using Linq To Sql?

Jun 19, 2010

I have a table 'articles' where all the articles are stored and I want to create a search engine for my website.

user types the keywords in the search engine and what code i should use to search the records in my database?

View 2 Replies

DataSource Controls :: Search Repository And Ensuring Results?

Jun 1, 2010

I was trying to find out how to search a repository and ensuring the results returned are only for the items in the repository which match the search text. For example:

[Code]....

Where i have "where s.SupportIssueID.... I want only the results which have an ID that matches or is LIKE the given "searchText". I thought I could use s.SupportIssueID.Contains but this isnt available in the helpers.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved