retrieve

Posted by Pokuri31 under ASP.NET on 9/22/2008 | Views : 1406 | Status : [Member] | Replies : 3
how to retrieve all user names from data base and stored in list box using generic classes?




Responses

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
use this code


sqlcon.Open();
SqlCommand sqlcmd = new SqlCommand("select * from tablename", sqlcon);
sqlcmd.CommandType = CommandType.StoredProcedure;
sqlcmd.CommandText = "select * from tablename";
sqladp.SelectCommand = sqlcmd;
sqladp.Fill(ds);


Mark as Answer if its helpful to you

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

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

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

Posted by: Vuyiswamb on: 10/19/2008 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
please explain exCTLY WHAT IS YOU PROBLEM AND WHAT DO YOU WANT TO ACHIEVE

Thank you for posting at Dotnetfunda
[Administrator]

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

Login to post response