Click here to Skip to main content
15,892,004 members
Home / Discussions / C#
   

C#

 
GeneralRe: Keeping Framework updated Pin
Stephane Rodriguez.10-Aug-03 20:37
Stephane Rodriguez.10-Aug-03 20:37 
Generalcreating an image from a string Pin
misterbear7-Aug-03 5:20
misterbear7-Aug-03 5:20 
GeneralRe: creating an image from a string Pin
Lasse Johansen7-Aug-03 6:00
Lasse Johansen7-Aug-03 6:00 
GeneralTrapping windows app minimize functionality Pin
Manster7-Aug-03 4:56
Manster7-Aug-03 4:56 
GeneralRe: Trapping windows app minimize functionality Pin
apferreira7-Aug-03 5:39
apferreira7-Aug-03 5:39 
GeneralReading Data from files Pin
soloforce7-Aug-03 4:02
soloforce7-Aug-03 4:02 
GeneralRe: Reading Data from files Pin
Nnamdi Onyeyiri7-Aug-03 4:09
Nnamdi Onyeyiri7-Aug-03 4:09 
GeneralDropDownList Controls Pin
NamoGuy7-Aug-03 3:41
NamoGuy7-Aug-03 3:41 
First Thanks to Ista for you prevoise response, but it was only one level, I was looking for two fields.

I have two questions about loading a DDL. I have created these two simple examples as mine real need was harder to explain.

1) Lets say we have a Several UserControls and at least 15 of them have a State DropDownList control that is loaded from the database. So you have IA, Iowa, IL, Illonios, TX, Texas and so forth. I don't want to copy the code to open the database and load the DDL via binding on all 15 pages, I just want to code it once in a My_Utils.cs class. What is the best way to do this.


2) Now lets pretend that the above example was a create new user screen in which the data was not present so we could bind away and the user could pick what ever they wanted. This question is more from the edit side of the house. Lests say I edit a customer record where the database stores the TX code for Texas. When we edit the customer record how do you bind the States table to the DropDownList (as in questin 1 above) and then make the active record the TX record. I know how to do it loading it in a for loop and doing a If to check that values match. I was opening there might be a better way.

If you now where sample code is on the net could point me there. Thanks

Mike Stone
Kaskaskia COllege
GeneralRe: DropDownList Controls Pin
Ista8-Aug-03 19:18
Ista8-Aug-03 19:18 
GeneralDirectShow example - PushSource Pin
Andy Beamish7-Aug-03 2:46
Andy Beamish7-Aug-03 2:46 
GeneralRe: DirectShow example - PushSource Pin
Ista8-Aug-03 19:18
Ista8-Aug-03 19:18 
GeneralRe: DirectShow example - PushSource Pin
Andy Beamish13-Aug-03 5:09
Andy Beamish13-Aug-03 5:09 
GeneralRe: DirectShow example - PushSource Pin
Andy Beamish13-Aug-03 8:05
Andy Beamish13-Aug-03 8:05 
GeneralQuick question - Formatting Output Pin
IrishSonic7-Aug-03 2:13
IrishSonic7-Aug-03 2:13 
GeneralRe: Quick question - Formatting Output Pin
Rocky Moore7-Aug-03 3:12
Rocky Moore7-Aug-03 3:12 
GeneralRe: Quick question - Formatting Output Pin
James T. Johnson7-Aug-03 3:15
James T. Johnson7-Aug-03 3:15 
QuestionHow to use SendMessage with the param EM_SETPASSWORDCHAR Pin
lithium74567-Aug-03 1:48
lithium74567-Aug-03 1:48 
Generalmysteries of the disapearing text Pin
freshthinking7-Aug-03 0:32
freshthinking7-Aug-03 0:32 
GeneralRe: mysteries of the disapearing text Pin
Rocky Moore7-Aug-03 2:14
Rocky Moore7-Aug-03 2:14 
GeneralRe: mysteries of the disapearing text Pin
Nnamdi Onyeyiri7-Aug-03 4:12
Nnamdi Onyeyiri7-Aug-03 4:12 
GeneralCursor detection problem Pin
CyberKewl6-Aug-03 23:56
CyberKewl6-Aug-03 23:56 
GeneralRe: Cursor detection problem Pin
Nnamdi Onyeyiri7-Aug-03 11:14
Nnamdi Onyeyiri7-Aug-03 11:14 
GeneralRe: Cursor detection problem Pin
CyberKewl7-Aug-03 14:39
CyberKewl7-Aug-03 14:39 
Generaldata binding Pin
KSEI6-Aug-03 22:14
KSEI6-Aug-03 22:14 
GeneralRe: data binding Pin
Ista8-Aug-03 19:19
Ista8-Aug-03 19:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.