* HtmlInputButton: Fix the 2.0/1.0 postback stuff the right way.
* HtmlInputCheckBox: Fix the 2.0/1.0 postback stuff the right way.
* HtmlInputFile.cs: Fix the 2.0/1.0 postback stuff the right way.
* HtmlInputHidden.cs: Fix the 2.0/1.0 postback stuff the right
way, and in OnPreRender, call Page.RegisterRequiresPostback.
* HtmlInputImage.cs: Fix the 2.0/1.0 postback stuff the right way,
and in OnPreRender, call Page.RegisterRequiresPostback.
* HtmlInputRadioButton.cs (OnPreRender): call
Page.RegisterRequiresPostback.
* HtmlInputText.cs: Fix the 2.0/1.0 postback stuff the right way.
Also, in OnPreRender, call Page.RegisterRequiresPostback.
* HtmlTextArea.cs (OnPreRender): call
Page.RegisterRequiresPostback.
svn path=/trunk/mcs/; revision=49408
+2005-09-04 Chris Toshok <toshok@ximian.com>
+
+ * HtmlInputButton: Fix the 2.0/1.0 postback stuff the right way.
+
+ * HtmlInputCheckBox: Fix the 2.0/1.0 postback stuff the right way.
+
+ * HtmlInputFile.cs: Fix the 2.0/1.0 postback stuff the right way.
+
+ * HtmlInputHidden.cs: Fix the 2.0/1.0 postback stuff the right
+ way, and in OnPreRender, call Page.RegisterRequiresPostback.
+
+ * HtmlInputImage.cs: Fix the 2.0/1.0 postback stuff the right way,
+ and in OnPreRender, call Page.RegisterRequiresPostback.
+
+ * HtmlInputRadioButton.cs (OnPreRender): call
+ Page.RegisterRequiresPostback.
+
+ * HtmlInputText.cs: Fix the 2.0/1.0 postback stuff the right way.
+ Also, in OnPreRender, call Page.RegisterRequiresPostback.
+
+ * HtmlTextArea.cs (OnPreRender): call
+ Page.RegisterRequiresPostback.
+
2005-09-02 Chris Toshok <toshok@ximian.com>
* HtmlSelect.cs: implement 2.0 DataSourceID data binding.
void IPostBackEventHandler.RaisePostBackEvent (string eventArgument)
{
+#if NET_2_0
+ RaisePostBackEvent (eventArgument);
+#else
RaisePostBackEventInternal (eventArgument);
+#endif
}
#if NET_2_0
bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
+#if NET_2_0
+ return LoadPostData (postDataKey, postCollection);
+#else
return LoadPostDataInternal (postDataKey, postCollection);
+#endif
}
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
+#if NET_2_0
+ RaisePostDataChangedEvent();
+#else
RaisePostDataChangedEventInternal ();
+#endif
}
}
}
bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
+#if NET_2_0
+ return LoadPostData (postDataKey, postCollection);
+#else
return LoadPostDataInternal (postDataKey, postCollection);
+#endif
}
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
+#if NET_2_0
+ RaisePostDataChangedEvent ();
+#else
RaisePostDataChangedEventInternal ();
+#endif
}
}
}
bool IPostBackDataHandler.LoadPostData (string postDataKey,
NameValueCollection postCollection)
{
+#if NET_2_0
+ return LoadPostData (postDataKey, postCollection);
+#else
return LoadPostDataInternal (postDataKey, postCollection);
+#endif
}
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
+#if NET_2_0
+ RaisePostDataChangedEvent ();
+#else
RaisePostDataChangedEventInternal ();
+#endif
}
#if NET_2_0
override void OnPreRender (EventArgs e)
{
base.OnPreRender (e);
+
+ if (Page != null) {
+ Page.RegisterRequiresPostBack (this);
+ }
}
protected virtual void OnServerChange (EventArgs e)
bool IPostBackDataHandler.LoadPostData (string postDataKey,
NameValueCollection postCollection)
{
+#if NET_2_0
+ return LoadPostData (postDataKey, postCollection);
+#else
return LoadPostDataInternal (postDataKey, postCollection);
+#endif
}
void IPostBackDataHandler.RaisePostDataChangedEvent ()
{
+#if NET_2_0
+ RaisePostDataChangedEvent();
+#else
RaisePostDataChangedEventInternal ();
+#endif
}
void IPostBackEventHandler.RaisePostBackEvent (string eventArgument)
{
+#if NET_2_0
+ RaisePostBackEvent (eventArgument);
+#else
RaisePostBackEventInternal (eventArgument);
+#endif
}
#if NET_2_0
override void OnPreRender (EventArgs e)
{
base.OnPreRender (e);
- if (Page != null)
+
+ if (Page != null) {
Page.RegisterRequiresPostBack (this);
+ }
}
protected virtual void OnServerClick (ImageClickEventArgs e)
override void OnPreRender (EventArgs e)
{
base.OnPreRender (e);
+
+ if (Page != null) {
+ Page.RegisterRequiresPostBack (this);
+ }
}
protected virtual void OnServerChange (EventArgs e)
override void OnPreRender (EventArgs e)
{
base.OnPreRender (e);
+ if (Page != null) {
+ Page.RegisterRequiresPostBack (this);
+ }
}
protected virtual void OnServerChange (EventArgs e)
if (serverChange != null)
serverChange (this, e);
}
-#if NET_2_0
- protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
- {
- return DefaultLoadPostData (postDataKey, postCollection);
- }
- protected virtual void RaisePostDataChangedEvent ()
- {
- OnServerChange (EventArgs.Empty);
- }
-#else
+#if !NET_2_0
protected override void RenderAttributes (HtmlTextWriter writer)
{
// the Type property can be, indirectly, changed by using the Attributes property
}
#endif
- internal bool DefaultLoadPostData (string postDataKey, NameValueCollection postCollection)
+ bool LoadPostDataInternal (string postDataKey, NameValueCollection postCollection)
{
string s = postCollection [postDataKey];
- if (Attributes ["value"] != s) {
- Attributes ["value"] = s;
+ if (Value != s) {
+ Value = s;
return true;
}
return false;
}
+ void RaisePostDataChangedEventInternal ()
+ {
+ OnServerChange (EventArgs.Empty);
+ }
+
+#if NET_2_0
+ protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
+ {
+ return LoadPostDataInternal (postDataKey, postCollection);
+ }
+
+ protected virtual void RaisePostDataChangedEvent ()
+ {
+ RaisePostDataChangedEventInternal ();
+ }
+#endif
+
bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
{
#if NET_2_0
return LoadPostData (postDataKey, postCollection);
#else
- return DefaultLoadPostData (postDataKey, postCollection);
+ return LoadPostDataInternal (postDataKey, postCollection);
#endif
}
#if NET_2_0
RaisePostDataChangedEvent ();
#else
- OnServerChange (EventArgs.Empty);
+ RaisePostDataChangedEventInternal ();
#endif
}
override void OnPreRender (EventArgs e)
{
base.OnPreRender (e);
+
+ if (Page != null) {
+ Page.RegisterRequiresPostBack (this);
+ }
}
protected virtual void OnServerChange (EventArgs e)