Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 drop down in a page. I want both Drop downs should be populated by binding from web.config. According to my understanding we can add Element in Appsettings in web.config. But each of them will be indexed. So while populating i have to start the seconddropdown from half of the element say 5th in app settings. Is there any way i can create two different app setting elements And populate the list????
Posted

What is in your webconfig, the connection string ? Yes, you can store any values you want in your app config, and name them whatever you require. However, it should be your data layer that deals with this abstraction and your presentation layer should just be showing the data.
 
Share this answer
 
You can also create Xml Files and populate these dropdownlist using xml files. hope it will be best process. mostly we uses web.config file for application setting not for suitable to store data.

hope it will help you.

Thanks

Regards

Lalit Kumar
India
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900