ASP.NET 4.0- Html Encoded Expressions

added by jalpesh
1/8/2011 6:11:52 AM

0 Kicks, 67 Views

We all know <%=expression%> features in We can print any string on page from there. Mostly we are using them in mvc. Now we have one new features with 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 return...