about textbox and dropdownlist

Posted by Sonas under ASP.NET on 3/31/2008 | Views : 1763 | Status : [Member] | Replies : 5
i want to display fields using dropdownlist and textbox

sona sugumarn


Responses

Posted by: Bubbly on: 2/18/2010 [Member] Bronze

Up
0
Down
Hello,

Are you asking about the method to populate data in dropdownlist/textbox?

++
Thanks & Regards,
Deepika

Sonas, 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

are u asking populated record from db means
use this

sqlcon.Open();
SqlDataAdapter sqladp = new SqlDataAdapter("select * from [employee]", sqlcon);
sqladp.Fill(dt);
Txt1.Text=dt.Defaultview[0][0].tostring();
ddl.selecteditem.Text=dt.Defaultview[0][1].tostring();


Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

Sonas, 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 Resolved Posts if it helpful to you.

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

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

Posted by: Raja on: 3/31/2008 [Member] Starter

Up
0
Down
Then display it, whats the problem?

Regards,
Raja, USA

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

Posted by: Ragha on: 4/1/2008 [Member] Starter

Up
0
Down
yes u can do that


whats the problme?

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

Login to post response