+2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
+
+ * HtmlSelect.cs: refactoring.
+
2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
* HtmlSelect.cs: fix databinding (only 2.0), state management.
}
#if NET_2_0
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
- {
- return DefaultLoadPostData (postDataKey, postCollection);
- }
-
- protected virtual void RaisePostDataChangedEvent ()
+ protected virtual
+#endif
+ void RaisePostDataChangedEvent ()
{
OnServerChange (EventArgs.Empty);
}
+
+#if NET_2_0
+ protected virtual
#endif
- bool DefaultLoadPostData (string postDataKey, NameValueCollection postCollection)
+ bool LoadPostData (string postDataKey, NameValueCollection postCollection)
{
/* postCollection contains the values that are
* selected
bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
-#if NET_2_0
return LoadPostData (postDataKey, postCollection);
-#else
- return DefaultLoadPostData (postDataKey, postCollection);
-#endif
}
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
-#if NET_2_0
RaisePostDataChangedEvent ();
-#else
- OnServerChange (EventArgs.Empty);
-#endif
}
}
}