>All,
>
> I have a custom dropdown list control which has a property that I added called Client Code. If I drag the drop down onto a webform, set a value and run the webform the property is empty. The code I'm using is below.
>
>Any Ideas?
>
>
> [Bindable(true),
> Category("Data"),
> DefaultValue("")]
> public string ClientCode
> {
> get
> {
> return (ViewState["ClientCode"] == null) ? "BSC" :
> ViewState["ClientCode"].ToString();
> }
> set
> {
> ViewState["ClientCode"] = value;
> }
> }
>
Jim,
Pretty simple, but is ViewState enabled on the control?