[Mono-list] Bug within ASP.NET WebControls?

Robert Jordan robertj at gmx.net
Mon Feb 23 06:46:04 EST 2009

Pedro Santos wrote:
>> Please don't use pastebin for mailing list posts, as those
>> pastes usually expire too soon to be useful for other
>> people looking for the same problem in the future.
> Yes, you're right, didn't think of that.
> BTW, I commented the following line:
> text.CssClass = CssClass;
> On my Render method, and the exception isn't thrown.

This is already fixed in SVN and Mono 2.4 which will be
released soon. If you don't assign null to the Control.CssClass
property, your code will work with all mono versions:

if (CssClass != null) text.CssClass = CssClass;

> Here's the code:

Thanks :)


More information about the Mono-list mailing list