Pl help me in this issue
-
I am working on a project i have created 3 tiers: presentation layer datalinklayer business logiclayer i have a dropdownlist named Category_List resides in my login screen.I want to dynamically add the items to it .so i created a table called type which has a single field called Category. now i want to bind my backend sql server with my application. i am able to do it staight away in my asp.net application but what i want is that the connection string should be in a class file ,while the page loads the method that contains the connection string should be called and the items must get filled in my Dropdownlist. iam unable to do it inthe class file,pl help me in doing so with helpof an example. thank u arun
-
I am working on a project i have created 3 tiers: presentation layer datalinklayer business logiclayer i have a dropdownlist named Category_List resides in my login screen.I want to dynamically add the items to it .so i created a table called type which has a single field called Category. now i want to bind my backend sql server with my application. i am able to do it staight away in my asp.net application but what i want is that the connection string should be in a class file ,while the page loads the method that contains the connection string should be called and the items must get filled in my Dropdownlist. iam unable to do it inthe class file,pl help me in doing so with helpof an example. thank u arun
What problem do you have in writing a class file? Would you please elaborate this? Just add one class file in your web application, and define all data access functions in it. Also you can define a function in the class that will dynamically fill the dropdown list by passing it as a parameter by reference. Regards, Ketan