Author: martinesani | Posted on: 5/1/2009 9:08:08 AM | Views : 493

Hi Folks,

 I have to include some anti xss encoding into one of my forms. I've included the following into my page but when the form is binding the result set from the DB it throws a null pointer exception error. I assume it's because I'm not casting the value back properly from the object.

 The object that contains the data is populated from an xml string from the DB:

Microsoft.Security.Application.AntiXss.HtmlEncode( DataBinder.Eval( Container.DataItem,"AgreementID" ).ToString() )

 

Then I changed it to this:

<MSL:MslLabel Go to the complete details ...