bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
#if NET_2_0
EnsureDataBound ();
#endif
string val = postCollection [postDataKey];
ListItemCollection items = Items;
int end = items.Count;
int selected = SelectedIndex;
for (int i = 0; i < end; i++) {
ListItem item = items [i];
if (item == null || val != item.Value)
continue;
if (i != selected) {
SelectedIndex = i;
#if NET_2_0
return true;
#else
need_raise = true;
#endif
}
#if !NET_2_0
return true;
#endif
}
return false;
}