[Mono-list] ASP.NET Button with no OnClick event handler problem...?
Marek Habersack
grendello at gmail.com
Mon Dec 3 04:59:42 EST 2007
On Mon, 26 Nov 2007 15:18:49 +0100, "Thomas Hansen" <thomas at frostinnovation.no>
scribbled:
Hey Thomas,
> Howdy, I'm one of the developers behind Gaia Ajax Widgets (
> http://ajaxwidgets.com) and we just had a weird problem which didn't exist
> in previous versions of Mono in regards to a custom Button class inherited
> from System.Web.UI.WebControls.Button class...
[snip]
> System.IndexOutOfRangeException: Array index is out of range.
> at System.Web.UI.ClientScriptManager.RegisterForEventValidation
> (System.String uniqueId, System.String argument) [0x00000]
> at System.Web.UI.ClientScriptManager.RegisterForEventValidation
> (System.Web.UI.PostBackOptions options) [0x00000]
> at System.Web.UI.ClientScriptManager.GetPostBackEventReference
> (System.Web.UI.PostBackOptions options, Boolean
> registerForEventValidation) [0x00000]
> at System.Web.UI.WebControls.Button.GetClientScriptEventReference ()
> [0x00000]
> at System.Web.UI.WebControls.Button.AddAttributesToRender
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.WebControls.WebControl.RenderBeginTag
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.WebControls.WebControl.Render
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at Gaia.WebWidgets.AjaxControl.RenderNonCallback
> (Gaia.WebWidgets.RenderControlHtml htmlControlToRender,
> System.Web.UI.HtmlTextWriter writer) [0x00000]
> at Gaia.WebWidgets.AjaxControl.RenderControl
> (Gaia.WebWidgets.RenderControlHtml htmlControlToRender,
> System.Web.UI.HtmlTextWriter writer) [0x00000]
> at Gaia.WebWidgets.Button.RenderControl
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at Gaia.WebWidgets.MultiView.RenderChildrenOnForceAnUpdate () [0x00000]
> at Gaia.WebWidgets.MultiView.RenderCallback
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at Gaia.WebWidgets.MultiView.RenderControl
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at Gaia.WebWidgets.Panel.RenderCallback
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at Gaia.WebWidgets.Panel.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.HtmlControls.HtmlForm.RenderChildren
> (System.Web.UI.HtmlTextWriter w) [0x00000]
> at System.Web.UI.HtmlControls.HtmlContainerControl.Render
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.HtmlControls.HtmlForm.Render
> (System.Web.UI.HtmlTextWriter w) [0x00000]
> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.HtmlControls.HtmlForm.RenderControl
> (System.Web.UI.HtmlTextWriter w) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Control.RenderChildren
> (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x00000]
> at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter
> writer) [0x00000]
> at System.Web.UI.Page.InternalProcessRequest () [0x00000]
> at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext
> context) [0x00000]
It looks like a regression. Please file a bug with an attached test case,
thanks!
best regards,
marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20071203/c471fa7e/attachment.bin
More information about the Mono-list
mailing list