Thursday, March 22, 2012

Server.HtmlEncode(createText.Text) vs. HttpUtility.HtmlEncode(createText.Text)

Server.HtmlEncode(createText.Text) vs. HttpUtility.HtmlEncode(createText.Text);

From thedocumentation:

Server.HtmlEncode is a convenient way to access theSystem.Web.HttpUtility.HtmlEncode method at run time from an ASP.NET Web application. Internally,HtmlEncode usesSystem.Web.HttpUtility.HtmlEncode to encode strings.

0 comments:

Post a Comment