[Mono-dev] Mono-devel-list Digest, Vol 36, Issue 8

Antti S. Lankila alankila at bel.fi
Fri Apr 4 04:54:24 EDT 2008


mono-devel-list-request at lists.ximian.com wrote:
> void Page_Init()
> {
>     dropdown.DataSource = somelist;
>     dropdown.DataBind();
> }
>   

As a workaround, I have ViewState['dd_value'] = dropdown.Items[0].Value 
and ditto for Text. In every Page_Load I restore the first item's Value 
and Text from ViewState.

-- 
Antti


More information about the Mono-devel-list mailing list