[Mono-dev] ASP.Net DropDownList and CheckBoxList bug

Antti S. Lankila alankila at bel.fi
Thu Apr 3 13:05:49 EDT 2008


Hello all.

I'm writing an ASP.Net application in C# and for most part it's working 
pretty good. However, I'm seeing strange behaviour when I repeatedly 
load a page (through clicking on its buttons which have OnClick 
handlers): DropDownList and CheckBoxList at least seem to lose the first 
item after two clicks on a button, any button. This is 100% repeatable. 
The page is set up roughly as follows:

void Page_Init()
{
    dropdown.DataSource = somelist;
    dropdown.DataBind();
}

and the dropdown is left alone afterwards. On the first load, all the 
entries are present. After the first button click and full page refresh, 
all entries are still present. However, on the second click, the first 
element in the dropdown has vanished. Both the Value and the Text 
properties appear to have become empty strings.

Is this a known bug in mono 1.2.6, or am I supposed to be doing 
something differently? My mono distribution is the Ubuntu Hardy one, 
1.2.6+dfsg-6ubuntu3.

-- 
Antti


More information about the Mono-devel-list mailing list