Click here to Skip to main content
12,633,990 members (24,353 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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
v4
Comments
Nandakishorerao 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..
Rate this: bad
 
good
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
http://www.dotnetfunda.com/tutorials/controls/label.aspx[^]
  Permalink  
Rate this: bad
 
good
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.
  Permalink  

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 | Mobile
Web02 | 2.8.161208.2 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2016
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