Creating OO, easy-to-use, valid-xhtml WebControls.
-
Hi. I've been looking for the "perfect" web-platform allover (mod_perl, mod_php, CGI) and found ASP.NET (/mod_mono) so I tried some things but, in the end, I was disappointed... why? .NET languages (C# in particular) are ObjectOrientated. BUT ASP.NET is NOT. It's even more plain then my room's floor... Yes, OK. I have to admit there are classes and controls but they are not even very dynamic (I can't pass dynamic attributes without putting a LOT of effort into it). plus, I can neither create valid HTML nor XHTML because the ASP.NET-"renderer" just doesn't 'know' the standard. So, I thought I'd build my own library using a XML-writer (I really long for .NET 2.0). I did that by overriding both, the Page- and Control-class using my 'XhtmlWriter' paired with some TextWriter to write (valid) CSS. My problem is (or at least one of many): - How do I get anything else but the System.Web.UI.Page as a Page (so the Server can use it and accepts it as a Page)? I don't want to derive from that whole Page-class because most of it is overridden anyways. another problem would be: - What's the best way to create a XmlWriter and a TextWriter from a HtmlWriter (that is only if I don't get to kick that whole System.Web.UI.Control-stuff). thanks for anything useful, so long.