When i use a Property control to display a string (this type: String <= 255), the control renders the text inside a span -block :>My text
What I do now is to use properties, like
protected string Header {get {return .... get the data .... }}
Is this the only way to avoid that the control renders span tags around my text, when I use small-string ?=>
Try this:
<%=CurrentPage["nameofproperty"]%>
ps. The property control enables editors to edit the page in view mode and that will not work if you use this code. ds.
I am using a DIV element instead of a SPAN, as I was getting errors when I ran the page through the W3C Markup Validation Service. It was complaining I was using a block element (e.g.
) inside an inline element (e.g. ), making the page not xhtml compliant.
Is there a way to use this approach to still allow editing on a page, without going into edit mode?
Thanks
Tak
My text
What I do now is to use properties, likeprotected string Header {get {return .... get the data .... }}
Is this the only way to avoid that the control renders span tags around my text, when I use small-string ?=>