How is Html.Encode() used? What is its 开发者_高级运维purpose, and how is it useful?It HTML encodes the passed it text - this escapes things to avoid certain types of attacks, such as XSS.
I have a number of fields where I want to display the data in red if it is expired. <%= Html.Encode(String.Format(\"{0:d}\", Model.Subcontract.insurance_GL))%>
山水之爱恋 (对唱版) 月下思故人 专辑:山水之爱恋(对唱版) 语种:国语 本歌词于吾爱知道