eramgarden
Contributor
- Joined
- Mar 8, 2004
- Messages
- 579
I have a dropdownlist. I want to read the data from database and populate it.
I know I can do it in the code behind by populating a dataset..as explained in this link:
http://www.experts-exchange.com/Web/Q_21489607.html
But I like to create a class, in my code-behind call that Class and populate the ddl..
I know how to create the class, but what should be passed to it from my code-behind, what should the "return" value of the function be? If someone could give me an outline/class shell..that would be good too. Thanks
I know I can do it in the code behind by populating a dataset..as explained in this link:
http://www.experts-exchange.com/Web/Q_21489607.html
But I like to create a class, in my code-behind call that Class and populate the ddl..
I know how to create the class, but what should be passed to it from my code-behind, what should the "return" value of the function be? If someone could give me an outline/class shell..that would be good too. Thanks