IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New C# question
I'm creating a user interface with a bunch of check boxes, text boxes, and combo boxes.

Rather than hardcode the defaults and pick lists, I'm drawing them from a SQL/Server table that has a record for each text box and combo box pick list value, along with the sort order, ie:

Field: cmbPlex
Sort_Order: 1
Lookup: Simplex

Field: cmbPlex
Sort_Order: 2
Lookup: Duplex

And so on.

In the start off the program, it runs through a predetermined hash list of field name->object pairs, and then does a query to the database to see if there is anything there.

I'd LIKE to simply query a distinct list of "Field" to get a list of things I should be working against, but I don't know how to go from the text sting to the associated object without pre-filling the hash - which I'm trying to avoid.

Can I do the reverse, ie: walk the list of objects, and then match them up against the SQL data? If so, can you point me in a direction?

New OT: Why aren't you drinking and playing with your presents?


Peter
[link|http://www.no2id.net/|Don't Let The Terrorists Win]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
[link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator]
[image|http://i66.photobucket.com/albums/h262/pwhysall/Misc/saveus.png|0|Darwinia||]
New Not my holiday
No presents.
And they frown at drinking at your desk here.
New On the 26th?
Public holiday in civilised countries, don't you know.


Peter
[link|http://www.no2id.net/|Don't Let The Terrorists Win]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
[link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator]
[image|http://i66.photobucket.com/albums/h262/pwhysall/Misc/saveus.png|0|Darwinia||]
New As you've pointed out many times before
we aren't civilized.
New Is this a good time to tell you all
that I'll be sitting around drinking beer until the 2nd?

/me raises a bottle of [link|http://www.wychwood.co.uk/wychwood_hobgoblin.htm|Hobgoblin] to y'all.


Peter
[link|http://www.no2id.net/|Don't Let The Terrorists Win]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
[link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator]
[image|http://i66.photobucket.com/albums/h262/pwhysall/Misc/saveus.png|0|Darwinia||]
New I'll be doing the same
only starting on the 3rd until probably March. Right now I'm burning the midnight oil on a database conversion that has to be done on the 2nd while the University is on break.




[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
New Application or Web page
I can't tell from your description if your talking about an application or a web page. Despite Microsoft's attempts to plaster over the differences and pretend building an application is the same as building a web application, there are significant differences.

As for your question, your interface items have to be in some sort of container. And most Microsoft containers have a find method of some sort that will go from an objects name to the object. In ASP.NET it is FindControl.

Jay
New Application
     C# question - (crazy) - (8)
         OT: Why aren't you drinking and playing with your presents? -NT - (pwhysall) - (5)
             Not my holiday - (crazy) - (4)
                 On the 26th? - (pwhysall) - (3)
                     As you've pointed out many times before - (crazy) - (2)
                         Is this a good time to tell you all - (pwhysall) - (1)
                             I'll be doing the same - (tuberculosis)
         Application or Web page - (JayMehaffey) - (1)
             Application -NT - (crazy)

Such firms gave a bad name to the penis enhancement business.
87 ms