Click here to Skip to main content
13,351,225 members (34,927 online)
Rate this:
Please Sign up or sign in to vote.
See more:
In my website, in a web page there is multi lined textbox. If something entered in the textbox means, I want search each word(line by line) and display the images to a datalist according to the search. And according tot he search, how many images found means I want to display the number of images found to a label. And if any word from the multi lined textbox not found in search means, I want to display that word in a label with 'NOT FOUND'.... Please help me.... I am doing in ASP.NET.
Posted 13-Feb-13 21:56pm
Updated 14-Feb-13 20:26pm
Nandakishorerao 15-Feb-13 1:35am
since you are developing using is no its better to use javascript or in google you'll get examples related to keypress..
Rate this: bad
Please Sign up or sign in to vote.

Solution 5

i guess the best way is :

include the query that you are using for your search in if block if success then show image in data list else on button click write
Label1.Text = TextBox1.Text; 

check this link to see how you can populate a label from textbox[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try to use CheckBoxes.
So there will be no wrong values and multiple selection can be done.

If you can't, you have compare the values with those from database and if not found, then you can display the error message.

Hope this helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100