|
-
Jun 21st, 2005, 02:00 PM
#1
Thread Starter
Hyperactive Member
Items in a dropdownlist
Hi!
I am developing an asp.net application using c#.
I have to display some items in a dropdownlist. Same dropdownlist is displayed in several pages in my application. Presently, the items are hardcoded. For some reason, I dont want to pick it up from the database and populate it.
But since, the dropdown list is on several pages, I want a store, where I just change the collection (items) and my items in the dropdown list is refreshed in all the pages.
Can it be done. Can something be done with web.config?
-
Jun 21st, 2005, 07:36 PM
#2
Re: Items in a dropdownlist
I'm not sure if this is viable in ASP.NET but I think you should be able to put your list items in an array or collection and bind your list controls to it. Then a change in the underlying array or collection should be reflected in each control.
-
Jun 22nd, 2005, 09:14 AM
#3
Re: Items in a dropdownlist
 Originally Posted by sinha
Hi!
I am developing an asp.net application using c#.
I have to display some items in a dropdownlist. Same dropdownlist is displayed in several pages in my application. Presently, the items are hardcoded. For some reason, I dont want to pick it up from the database and populate it.
But since, the dropdown list is on several pages, I want a store, where I just change the collection (items) and my items in the dropdown list is refreshed in all the pages.
Can it be done. Can something be done with web.config?
Why don't you want to pick it up from your database?
-
Jun 22nd, 2005, 01:09 PM
#4
Thread Starter
Hyperactive Member
Re: Items in a dropdownlist
Because there is no database in this application. Basically I am building a tool.
For this purpose only, I do not want to use a data base.
Anyway, I am doing that through a user control, which I am including in my page.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|