 |
| ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

April 8th, 2009, 05:44 AM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
nTier example, how to fill DDL
Hi! I've create a project using the solution of Hi! Imar Spaanjaar
I'd like to fill DDL of my page and I would like to know the best solution...
If I've a table named "colors" and I want to fill a DDL named ddlColor using nTier example ... what I have to do??
I don't like to create a new entity named color only for manage DDL fill
Thanks!!
|
|

April 8th, 2009, 03:51 PM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Please help me!! I don't know the best solution for fill dropdownlist!
Thanks!!!
|
|

April 8th, 2009, 05:09 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
Please send me teh codez??? What do you have?? what do you particular need?? (Nobody will do all the code for you)...
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|
|

April 8th, 2009, 05:29 PM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for reply!!
I don't want the code!!
I would like only to know how to fill the DDL using http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=476 example
Do I have to create a specific entity for my DB colors table?? and create the manager for colors table.... or is there another solution??
|
|

April 10th, 2009, 01:35 PM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Please help me!!!
I don't know how to resolve this problem :-((
I would like only to know the best solution for apply nTier structure for fill DropDownList
|
|

April 15th, 2009, 10:27 AM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I still have this problem :-(((( please help me!!
|
|

April 15th, 2009, 02:22 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I'm afraid the answer is: it all depends.
How many items are you talking about? Will your data (frequently) change or is it relatively static? Is it related to other data?
If the answer to all this is no: then why store it in the database in the first place? Ehy not look at the .NET Color class and return all its internal values from either your own class, or through a (static) Helper class.
If the answer is yes to one or more, then why is this:
>> I don't like to create a new entity named color only for manage DDL fill
Why not? Does it really matter that much?
Imar
|
|

April 15th, 2009, 05:28 PM
|
|
Authorized User
|
|
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for help me!! My answer is yes ... because I've many records and I will use this solution also for other tables (for example cities)
You tell me to create a specific entity class for manage (for example) cities and then create a citiesDB file and a citiesManager file .... is it OK?
Thanks
|
|

April 17th, 2009, 02:13 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Why not? If you need to manage data, you need some mechanism to manage it ;-)
Do you see another way?
Imar
|
|
 |