Hi,
My application has around 100 lables and i want to html encode the text that lables are displaying in my app. I am just trying to do that with minimal code chnages. Currently i thinking of extending Label class and overriding text property to so that in
the setter I'll do this base.Text = HttpUtility.HtmlEncode(value); and through structure map I'll configure like this ObjectFactory.Initialize(x =>
{
x.For<Label>().Use<MyCustomLabel>();
});
but for some reason it is not working,
Is there any work around or other approaches to solve this problem, instaed of writing a utility method to encode and call it every time i assign a ...
Go to the complete details ...