HI, I am currently stuck. i am using visual studio 2005 and have successfully got data from my database using a repeater. I dont know if this is possible but i thought i would ask...
i want to get my data from the database based on a value that is in a label

any ideas welcome?

i am supposed to be using asp.net if this helps

Recommended Answers

All 2 Replies

change your query!

(select * from table1 where abc = '" & label1.text & "'"

or you can use "select * from table1 where abc = @abc"
and add the param @abc, label1.text

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.