I have created 2 custom properties on one of my entity classes to return 2 text fields, but replace all line returns with a <br /> so that the line returns will display when viewed in HTML.
These new properties show up on the entity class, but for some reason do not show up when I bind a datasource to a gridview, formview, etc.
Any help would be appreciated.
thx,
dj
Custom Code:
region Custom Entity code
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
public virtual System.String SummaryHtml
{
get
{
object valueToReturn = base.GetCurrentFieldValue((int)PageFieldIndex.Summary);
if (valueToReturn == null)
{
valueToReturn = TypeDefaultValue.GetDefaultValue(typeof(System.String));
}
return ((System.String)valueToReturn).Replace("\n","<br />");
}
}
public virtual System.String DetailsHtml
{
get
{
object valueToReturn = base.GetCurrentFieldValue((int)PageFieldIndex.Details);
if (valueToReturn == null)
{
valueToReturn = TypeDefaultValue.GetDefaultValue(typeof(System.String));
}
return ((System.String)valueToReturn).Replace("\n", "<br />"); ;
}
}
// __LLBLGENPRO_USER_CODE_REGION_END
#endregion