User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 403,202 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,526 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 198 | Replies: 2
Reply
Join Date: Apr 2008
Posts: 5
Reputation: jessc0108 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jessc0108 jessc0108 is offline Offline
Newbie Poster

Help needed please!!!!!!!!!!!!!!!!

  #1  
Apr 13th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Help needed please!!!!!!!!!!!!!!!!

  #2  
Apr 13th, 2008
change your query!
--
"Dummy."
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Help needed please!!!!!!!!!!!!!!!!

  #3  
Apr 13th, 2008
(select * from table1 where abc = '" & label1.text & "'"

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

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC