Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
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
 
Old April 8th, 2009, 05:44 AM
Authorized User
 
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Post 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!!
 
Old April 8th, 2009, 03:51 PM
Authorized User
 
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please help me!! I don't know the best solution for fill dropdownlist!

Thanks!!!
 
Old April 8th, 2009, 05:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

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.
================================================== =========
 
Old April 8th, 2009, 05:29 PM
Authorized User
 
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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??
 
Old April 10th, 2009, 01:35 PM
Authorized User
 
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old April 15th, 2009, 10:27 AM
Authorized User
 
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I still have this problem :-(((( please help me!!
 
Old April 15th, 2009, 02:22 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old April 15th, 2009, 05:28 PM
Authorized User
 
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old April 17th, 2009, 02:13 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Why not? If you need to manage data, you need some mechanism to manage it ;-)

Do you see another way?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
nTier example ... ho to import records from external files il_dandi ASP.NET 3.5 Basics 1 April 4th, 2009 05:02 AM
nTier example... how to fill form il_dandi ASP.NET 3.5 Basics 10 April 3rd, 2009 10:57 AM
how can selectedvalue of DDL make other DDL visibl hertendreef ASP.NET 2.0 Professional 4 May 20th, 2008 04:38 PM
DDL error cmw231 ASP.NET 2.0 Basics 2 July 17th, 2006 08:07 AM
dealing with CLASS IN NTIER drachx General .NET 1 October 12th, 2004 11:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.