Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > XHTMLAdpaters not rendering custom attributes...

Reply
Thread Tools

XHTMLAdpaters not rendering custom attributes...

 
 
andrew.berman@gmail.com
Guest
Posts: n/a
 
      02-15-2007
Hi Everyone,

I'm trying to add the 'margin-top' attribute to the css class for the
body tag - an attribute supported by XHTML-MP, but can't.

I've made a custom Style class which inherits from Style, registered
the custom style attributes and passed it into the
writer.SetBodyStyle(style) method. This happens in the render method
of my CustomXhtmlPageadapter, which inherits from XhtmlPageAdapter.

All the attributes from the inherited Style class end up in the css
class but not the custom attributes. Using a decompiler (new best
friend), i've found that the internal class, XhtmlStyleClass ONLY
builds the base class attributes, never any custom ones. What can i
do? This is driving me nuts.

Thanks in advance

Andrew

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Public API for Custom XML Parts & Custom Parts, Graphics Rendering sherazam Java 0 09-12-2011 11:09 AM
IE6 SP1 rendering vs IE6 SP2 rendering Peter Mount HTML 4 01-31-2006 08:01 AM
Custom Templated Control not rendering asp.net controls correctly news.microsoft.com ASP .Net Building Controls 1 04-09-2005 11:41 AM
Custom Templated Control not rendering asp.net controls correctly news.microsoft.com ASP .Net 1 04-09-2005 11:41 AM
Custom Templated Control not rendering asp.net controls correctly news.microsoft.com ASP .Net Web Controls 1 04-09-2005 11:41 AM



Advertisments