可学答题网 > 问答 > MCTS(70-515)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are developing a


You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids cross-site scripting. Which code segment should you use?()

  • A<%: Model.FirstName %>
  • B<%= Model.FirstName %> 
  • C<% Response.Write(Model.FirstName) %>  
  • D<% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>&e
参考答案
参考解析:
分类:MCTS(70-515)题库