Regarding autocomplete with image

Posted by Gsm_Gsv under ASP.NET on 4/17/2012 | Points: 10 | Views : 978 | Status : [Member] | Replies : 2
I want to have a facebook like search box, where you will get both image and name while searching.
How to fetch both image and name from database?

I have tried using HttpHandler and Jquery and got the result, but I fetched the image from a folder and not from database. The disadvantage of this method is that, both image ID(Image name in folder) and persons ID(Primary Key) should be same.

So, how to fetch image and name from database and display dynamically while searching?

--------------------
Regards
Madhu

---------------------------------------
Live the life you've dreamed

Regards
MADHU



Responses

Posted by: Kk86kiran on: 4/17/2012 [Member] Starter | Points: 25

Up
0
Down
Refer this link and do one thing just create table with image column and change the query i.e select image,name from tablename.

http://www.codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit


k.m.j.kiran

Gsm_Gsv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsm_Gsv on: 4/17/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Kiran,

But the image will be stored in binary format, It cant be displayed dynamically. I need to write the stream of bytes before displaying dynamically. I am facing problem with this.

Any good reference site with example will be appreciable

------------
Regards
Madhu

---------------------------------------
Live the life you've dreamed

Regards
MADHU

Gsm_Gsv, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response