Q: populate ddl from stored procedure

G

Guest

Hello,
I have a stored procedure sp1: “select * fro m myTaleâ€. Now I need to
populate a dropdownlist1, how can you do this in C#, can you give me an
example?
Thanks,
Jim.
 
C

Craig Deelsnyder

Hello,
I have a stored procedure sp1: “select * fro m myTaleâ€. Now I need to
populate a dropdownlist1, how can you do this in C#, can you give me an
example?
Thanks,
Jim.

This article shows you how to bind a DataTable to a ddl, and how to call a
stored procedure. Put the two together and you have a deal; the only
problem is this example is in VB.NET, but you should easily see what to
do, the main classes to use, binding statements, etc. are the same....:

http://www.dotnetjunkies.com/Tutorial/9AE62C44-3841-4687-B906-2F6D4A5A4622.dcik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top