2
Answers

How to bind database table column names to the dropdown list

Hai Sir,
       I have one table "Subject" in my database with column names subid,sub1,sub2,sub3 and etc.
        And I want to bind these column names to the dropdown list in my frontend(.NET).

 

Answers (2)

0
Photo of Nanhe Siddique
NA 3.4k 110k 9y
0
Photo of Shuvojit Halder
NA 1k 10.4k 9y
Your sql query will be like that
 
 
select COLUMN_NAME,ORDINAL_POSITION from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='Subject'
 
 
 
then you bind the result in your dropdown.