black

MCTS(70-515)

登录

单项选择题

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)) %> 

相关考题

单项选择题 YouaredevelopinganASP.NETMVC2Webapplication.TheapplicationcontainsacontrollernamedHomeController,whichhasanactionnamedIndex.TheapplicationalsocontainsaseparateareanamedBlog.AviewwithintheBlogareamustcontainanActionLinkthatwilllinktotheIndexactionoftheHomeController.YouneedtoensurethattheActionLinkintheBlogarealinkstotheIndexactionoftheHomeController.WhichActionLinkshouldyouuse?()

多项选择题 You are developing an ASP.NET Web page. You add the following markup to the page. You add the following code segment to the code-behind. You need to save the uploaded file and display a message to the user that indicates that the upload either succeeded or failed. Which two actions should you perform?()

单项选择题 YouaredevelopinganASP.NETWebapplication.Youcreateamasterpage.Themasterpagerequiresaregionwhereyoucanaddpage-specificcontentbyusingtheASP.NETpagedesigner.Youneedtoaddacontroltothemasterpagetodefinetheregion.Whichcontrolshouldyouadd?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064