Alan;
Yes, it is an ASP.NET page with a server ddl side control. I have been working with different ideas like:
ddl.Items.IndexOf(ddl.Items.FindByText(etc.)
If you get a chance try it with a table. If I find the answer I will let you know.
Tom
>Ok, I think I know what you're talking about now. I'm doing something very similar, but I'm populating my unbound ddl manually using the ddl's Add() method - Add(new ListItem(key,val)) (the items being read from a text file). I haven't tried using a table, but I can try that out later and see what happens.
>
>Do I take it that your ddl is a web control on an aspx page?
>
>Alan
>
>>Alan;
>>
>>Thank you for the attempt to solve this issue. No, AutoPostBack will not do it.
>>
>>I should have added that the control is unbound. That might help a bit more.
>>
>>This is not easy to describe in words. That is why I gave the ASP example. Let me try another explanation:
>>
>>1. I want to use a ddl to display a specific piece of data related to a row of data.
>>
>>2. If I go into Edit mode I want to fill the ddl with data from a table while retaining the original displayed data in the ddl. This will allow the user to make another selection. Right now if I fill the ddl from the table the record shown in the ddl is the BOF.
>>
>>Does that help? I can try to elaborate more if necessary. It is simple to show someone what I mean but not too easy to put into words! :)
>>
>>Tom
>>
>>
>>
>>
>>>I'm not real sure I understand what you want, but if you set the list's AutoPostBack property to true, does that give you what you want?
>>>
>>>Alan
>>>
>>>>This is an issue about behavior. In ASP a cbo will display the value saved by the user. When using a table to drive the cbo you can pull down the cbo list and the original value will still be displayed.
>>>>
>>>>Using a Drop Down List control I want to be able to create the same behavior as described above. Can someone point me in the right direction?
>>>>
>>>>Tom
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement