Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Value for Web Dropdownlist?
Message
 
À
17/09/2004 15:52:28
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00943169
Message ID:
00943675
Vues:
19
How are you binding the list? Timing is very crucial to the tricky way that SelectedValue is set on dropdowns and lists in .NET. Basically if the databinding occurs before you load the list the selected value setting will be lost.

You might have some luck moving around the code that deals with setting up the data that gets loaded in the list before anything else happens.

+++ Rick ---

>Kevin,
>
>I ran my test form with version 1.2, same results. Setting default values for dropdownlist does not work. I will continue to use my work around unless you have any other ideas.
>
>Terry Carroll
>
>
>>
>>>I have tried to set the value for a web dropdownlist control in the "HookSetDefaultValues" and can not get it to work. There seems to a problem in the binding!
>>
>>Have you set the control's BindingValueSource and BindingValueSourceMember properties as shown in the MM .NET Dev Guide topic "Data Binding Web Forms List Controls"?
>>
>>Regards,
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform