Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 14-Feb-13 19:26pm
v4
Comments
Nandakishore G N 15-Feb-13 1:35am    
since you are developing using asp.net..there is no keypressevent..so its better to use javascript or jquery...search in google you'll get examples related to keypress..

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
C#
Label1.Text = TextBox1.Text; 


check this link to see how you can populate a label from textbox
http://www.dotnetfunda.com/tutorials/controls/label.aspx[^]
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900