Apologies for the vagueness. I do not believe this is Umbraco related now...as I see the output in Firebug and Page source but the HTML isn't visible.
>>>And just one small generic programming question; why are you assigning
an empty string to _articleBody1 before assigning the property's
value to it?
Habit I suppose... advise if I should do different.
Well, there are two 'negative things': - Assigning an empty string for nothing is just unneccasary ;-) - If you do have to assign an empty string, use 'string someString = string.Empty', this won't allocate new memory unlike 'string someString = ""'
How do you obtain the value of the RTE using .NET C#
I want to inject the html of from the RTE into a usercontrol. This didn't work:
Any help would be appreciated...
What do you mean exactly with 'This didn't work'? What's the output?
And just one small generic programming question; why are you assigning an empty string to _articleBody1 before assigning the property's value to it?
>>>What's the output?
Apologies for the vagueness. I do not believe this is Umbraco related now...as I see the output in Firebug and Page source but the HTML isn't visible.
>>>And just one small generic programming question; why are you assigning an empty string to _articleBody1 before assigning the property's value to it?
Habit I suppose... advise if I should do different.
Well, there are two 'negative things':
- Assigning an empty string for nothing is just unneccasary ;-)
- If you do have to assign an empty string, use 'string someString = string.Empty', this won't allocate new memory unlike 'string someString = ""'
is working on a reply...