Custom DataType Dropdownlist UserControl value not set
Hi All,
I've created a drop down list usercontrol with it's values set up from a db table. The problem is when i use it as a MemberType property the value in the drop down is not set when the member is saved:
The user control
public partialclassMemberDomainList : UserControl, IUsercontrolDataEditor
You try to set the value in the page_load event. The new value is probably not assigned in this event. I suggest you use the selected_index changed event of the dropdownlist.
Custom DataType Dropdownlist UserControl value not set
Hi All,
I've created a drop down list usercontrol with it's values set up from a db table. The problem is when i use it as a MemberType property the value in the drop down is not set when the member is saved:
The user control
and in the datatypes section its storage value is integer..
Any help would be awesome.
Thanks,
Tom
Hi Tom,
You try to set the value in the page_load event. The new value is probably not assigned in this event. I suggest you use the selected_index changed event of the dropdownlist.
Cheers,
Richard
Hi Richard,
thanks so much! perfect answer!
is working on a reply...