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!
AI OnAI Off
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!
protected override void AddedControl(System.Web.UI.Control control, int index)
{
base.AddedControl(control, index);
switch(this.InnerProperty.Type)
{
case PropertyDataType.String :
Label lbl = control as Label;
if(lbl != null)
{
lbl.Text = System.Web.HttpContext.Current.Server.HtmlEncode(lbl.Text);
}
break;
}
}
Code not verified!
/HAXEN
&ealig;
. It would be nice to do this job in the database on the property values, and also make the HTML editor in Edit mode convert these characters automatically when saving pages. Give me a note if you've done this kind of work. Frank :)