Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
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!!
  #2 (permalink)  
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!!!
  #3 (permalink)  
Old April 8th, 2009, 05:09 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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.
================================================== =========
  #4 (permalink)  
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??
  #5 (permalink)  
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
  #6 (permalink)  
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!!
  #7 (permalink)  
Old April 15th, 2009, 02:22 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 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!
  #8 (permalink)  
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
  #9 (permalink)  
Old April 17th, 2009, 02:13 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 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!
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 12:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.