[Mono-aspnet-list] CSS Control Adapters on Mono

adrin adrin84 at gmail.com
Fri Aug 7 10:21:21 EDT 2009

Did anyone succeed in running ASP.NET CSS Controls Adapters (1.0+) on Mono.
I have tried running latest trunk version as well as production 1.0 version,
with well.. very limited success.

Some controls are running but when i try for example to make a postback
using menu control (SimpleMenu.aspx sample) i get an exception saying:

Invalid postback or callback argument. Event validation is enabled using
<pages enableEventValidation="true"/> in configuration or <%@ Page
EnableEventValidation="true" %> in a page. For security purposes, this
feature verifies that arguments to postback or callback events originate
from the server control that originally rendered them. If the data is valid
and expected, use the ClientScriptManager.RegisterForEventValidation method
in order to register the postback or callback data for validation

Moreover when using newest trunk version and Login control.. following code
(adapters source) failes to find the control (because login is empty) and
throws null exception.

private void WriteUserPanel(HtmlTextWriter writer, Login login)


			Control control = login.FindControl("UserName");			

			Page.ClientScript.RegisterForEventValidation(control.UniqueID); //
control is null - exception here!

			WebControlAdapterExtender.WriteBeginDiv(writer, "AspNet-Login-UserPanel",

			Extender.WriteTextBox(writer, false, login.LabelStyle.CssClass,
login.UserNameLabelText, login.TextBoxStyle.CssClass, "UserName",
control.UniqueID, login.UserName);

login.FindControl("UserNameRequired") as RequiredFieldValidator,
login.ValidatorTextStyle.CssClass, "UserName",



Same source code works well on Windows :/

Maybe it is an issue with some settings? Before I dive into debugging i'd
like to know if anyone ever used CSS adapters with success (especially login
View this message in context: http://www.nabble.com/CSS-Control-Adapters-on-Mono-tp24865788p24865788.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list