How to bind database table rows to the label in asp.net

May 21 2015 7:43 AM

I have one table with name Subject and two columns SubId,SubName and Year .In this table I added multiple subject names based on year.

                     From this, in front end design there is a dropdown list having binding Year rows from Subject Table from Database. When I select particular year the subject names should come in Labels only.

                    How can I write code for this requirement? 

Answers (1)