[Mono-list] ASP.NET Button with no OnClick event handler problem...?
Thomas Hansen
thomas at frostinnovation.no
Mon Nov 26 09:18:49 EST 2007
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...
Is there a known bug in the _latest_ Mono release when rendering buttons
contained in container widgets (e.g. panel) that first set to visible, then
set to IN-visible and then set to visible again when that same button does
_NOT_ have an OnClick event handler...??
Long shot, might not be your fault either, but it worked in previous
versions of Mono and also works on MSFT.Net (tried exact same code AND exact
same assembly in fact too, assembly is built in .Net and binary deployed
onto Mono/Linux machine)
With the latest version of Mono it kicks in an exception in the core of the
Mono;
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]
Have a nice day :)
Thomas Hansen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071126/27764eb7/attachment.html
More information about the Mono-list
mailing list