how to get data to DropDownList from database table with C# and asp.ne

how to get data to DropDownList from database table with C# and asp.n

Page 1 of 1

4 Replies - 15590 Views - Last Post: 27 November 2008 - 04:27 AM Rate Topic: -----

#4 cna  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 1
  • Joined: 12-November 08

Re: how to get data to DropDownList from database table with C# and asp.ne

Posted 12 November 2008 - 11:21 PM

how to get data to DropDownList from database table with C# and asp.net?
Was This Post Helpful? 1

#5 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: how to get data to DropDownList from database table with C# and asp.ne

Posted 12 November 2008 - 11:43 PM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#6 qaisakhtar  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 5
  • Joined: 14-November 08

Re: how to get data to DropDownList from database table with C# and asp.ne

Posted 14 November 2008 - 10:46 PM

View Postcna, on 12 Nov, 2008 - 10:21 PM, said:

how to get data to DropDownList from database table with C# and asp.net?



Fill the dataset with database table.
Set the datatext field and datatext value property of the dropdown listbox with the appropriate field and bind it.

If you need then I will give the code also.
Was This Post Helpful? 1

#7 kunal1628  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 25-November 08

Re: how to get data to DropDownList from database table with C# and asp.ne

Posted 26 November 2008 - 10:26 PM

please send me the code (C#) getting values from SQL in DropDownListBox.
I am trying to select a value from dropdownlist and according to the value a textbox gets filled from the database.
eg. Dropdown has A,B,C items.
In database there are two columns "Name" and "Number" fillled with A,B.C and 1,2,3 respectively.
When I select "A" from Dropdown list text box should display "1"

please send me a code for such an example on following email id : kunal1628@aol.in
Was This Post Helpful? 0
  • +
  • -

#8 valy0017  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 42
  • Joined: 18-November 08

Re: how to get data to DropDownList from database table with C# and asp.ne

Posted 27 November 2008 - 04:27 AM

hello - I need that kind of code too for a project - a virtual library - could you give it to me 2 ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1