Workaround for = EPiServer:Property renders an extra Div
by Rizo on feb.27, 2009, under Developing
It’s comfortable to just use properties directly in the page. i.e
[sourcecode language=’html’]
[/sourcecode]
Problem with this, is that it will render an extra div which feels really unnecessary. I’ve tried to look around for a setting of some sort to turn this off but not wanting to waste too much of my time, I just did a simple workaround. Well I didn’t do a workaround, I just render my text in another way.
Front:
[sourcecode language=’html’]
[/sourcecode]
Back:
[sourcecode language=’vb’]
txtMainBody.Text = CurrentPage.Property(”MainBody”);
[/sourcecode]
This will render out exactly whats in MainBody and nothing extra.
Remember to check for nulls 😉
1 Comment for this entry
3 Trackbacks / Pingbacks for this entry
-
รับซื้อ Notebook
september 29th, 2023 on 23:30… [Trackback]
[…] Info on that Topic: from-rizo.se/workaround-for-episerverproperty-renders-an-extra-div/ […]
-
แทงบอล Lsm99
november 4th, 2023 on 02:42… [Trackback]
[…] Read More here on that Topic: from-rizo.se/workaround-for-episerverproperty-renders-an-extra-div/ […]
-
รับทำบัญชี
november 12th, 2023 on 04:55… [Trackback]
[…] There you can find 36944 more Info to that Topic: from-rizo.se/workaround-for-episerverproperty-renders-an-extra-div/ […]
april 7th, 2009 on 12:24
Gracias loco…
Försöker att få detta att funka..
http://labs.episerver.com/en/Blogs/Steve-Celius/Dates/112266/2/Taking-Control-of-Property-Rendering/