Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Value for Web Dropdownlist?
Message
From
18/09/2004 11:16:45
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00943169
Message ID:
00943733
Views:
16
Rick,

The framework handles the binding.
Do you know for a fact that setting default values for a mmDropDownList in the “HookSetDefaultValues” works correctly?

Terry Carroll





>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,
Previous
Reply
Map
View

Click here to load this message in the networking platform