London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

SPAN problem

Vote:
0
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 ?
#12291
Jun 07, 2005 14:16
Vote:
0
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.
#13993
Jun 09, 2005 17:43
Vote:
0
Or you could just subclass Property. We have done this and can now choose if we want to handle DOPE or get rid of the element.
#13994
Jun 10, 2005 11:17
Vote:
0
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
#13995
Dec 14, 2005 17:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.