试题详情
- 单项选择题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)) %>
- A
关注下方微信公众号,在线模考后查看
热门试题
- Your company
- 您使用反射获取有关名为MyMethod的
- You work
- You work
- 您传送远程协助邀请要求支持。您想开启个人
- You work a
- 您正在加载到应用程序中的一个新的程序集。
- 公司有一个Active Di
- An organizatio
- You need
- You load an XmlDocum
- Youhaveastandalonese
- Your network&e
- Your company,&
- You have
- Your physical&e
- You are creating a W
- 你创建了一个从WebControl继承的
- You have a server t
- Your company has a s