Click to See Complete Forum and Search --> : Filling data into listview from database


jijophilip
March 16th, 2008, 08:28 PM
Hi all
i went through a lot of your fourms, but i am really struck with this one, if anyone of you can help me it would be great
i have a database which contains fields like first name, last name , address....

on my form i have a textbox
the user will enter his query in the text box and when he presses the button the list view should be updated from data in the database
if the user says select first name from database then only the first name should be displayed
accordingly if the user selects 2 -3 fileds then they should be displayed
if the user selects al fields then all the fields should be updated

can anyone help me with this please
i am really struck..
thanks in advance

foamy
March 17th, 2008, 04:13 AM
I would use the string in the textbox as the SQL querystring, then turn each resulting row into a single string
( something like [firstname, lastname] = "firstname, lastname" )
and then put those in the listview...

zdavis
March 17th, 2008, 08:34 PM
please post code to what you have and we can go from there...

-zd