Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a Collection to a ListBox Object
Message
De
10/03/2005 04:14:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/03/2005 20:35:09
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00993867
Message ID:
00994327
Vues:
19
>Good morning!
>
>It's so good to wake up in the morning... turn on your pc... and read the replies to your post...
>
>I am glad that the answer to my question is "YES!!!" However, it seems that it can not be achieved the way I was hoping to accomplish it. I was trying to do this without having to create a class object. Simply by just creating a collection object and feeding it a structured variable (which somewhat resembles the properties). But based on the link Einar gave and some samples on MSDN... it was clear that this was not possible. A class object was indeed needed and that's what I did... and what do you know? It works!
>
>Thanx! guys for the help. But now, because of this I may have to make some changes in the design of my application... completely! I just got word last night from my boss, that this would have to be a web based application! Can you believe that? After a few weeks of designing and development... poof! They decide to change everything! Arrgh!
>
>Anyway, I have to get started... I have a lot of ASP.NET research to do.
>
>Best to ya' ol!
>
>Martin

Martin,
Yes it's quite strange a struct also needs properties for this to work. However a struct too can have properties. My suggestion do not create a class but add properties to your struct. A struct is a valuetype where a class is a reference type. In summary, if possible use struct. With a class your code would also need extra changes (referencing to the same object if you don't create new instances-with struct valuetypes are boxed). A class object was NOT indeed needed. Read my reply.
For ASP.net www.asp.net,dotnetnukes and dotnetjunkies might be good references to add to your favorites. Time to forget about most of the events that a rich client supports:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform