DotNetShoutout - Stories tagged with HtmlEncode
4
Shouts

ASP.NET 4.0- Html Encoded Expressions

published 864 days, 13 hours, 54 minutes ago posted by http://jalpesh.blogspot.com/http://jalpesh.blogspot.com/ 865 days, 15 hours, 57 minutes ago
Sunday, January 09, 2011 2:14:59 PM GMT Saturday, January 08, 2011 12:12:22 PM GMT
We all know <%=expression%> features in asp.net. We can print any string on page from there. Mostly we are using them in asp.net mvc. Now we have one new features with asp.net 4.0 that we have HTML Encoded Expressions and this prevent Cross scripting attack as we are html encoding them. ASP.NET 4.0 introduces a new expression syntax <%: expression %> which automatically convert string into html encoded. Let’s take an example for that. I have just created an hello word protected method which will re... (more)
category: Web Dev | clicked: 0 | comment | | source: jalpesh.blogspot.com
tags: HtmlEncode, ASP.NET 4.0