2009-02-10 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Tue, 10 Feb 2009 18:12:15 +0000 (18:12 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 10 Feb 2009 18:12:15 +0000 (18:12 -0000)
commit4d4dfda2d6348c869240111093fec6c92ea64b6d
treec0c8c8f93be7f7826bb9ac21142269182cdfcb2f
parent7cb492aae63e5eeaf3b9160379894f123b854614
2009-02-10  Marek Habersack  <mhabersack@novell.com>

* ImageButton.cs: AddAttributesToRender renders the onclick
attribute only if any of the following is true:
  - OnClientClick is not empty
  - Validation is enabled for the control
  - PostBackUrl is used
PostBackOptions now indicate that control requires the javascript
protocol for the handler.
RaisePostBackEvent passes String.Empty as the argument.
Fixes bug #463939

2009-02-10  Marek Habersack  <mhabersack@novell.com>

* ImageButtonTest.cs: added test for bug #46393

svn path=/trunk/mcs/; revision=126482
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/ImageButton.cs
mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/Test/System.Web.UI.WebControls/ImageButtonTest.cs