搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an unrecognized country value will not be processed by the Details action of HomeController. What should you do?()

A、Add the ValidateAntiForgeryToken attribute to the Details action method.

B、Add the Bind attribute to the country parameter of the Details action method. Set the attribute’s Prefix property to Country.

C、Create a class that implements the IRouteConstraint interface. Configure the default route to use this class.

D、Create a class that implements the IRouteHandler interface. Configure the default route to use this class.

更多“You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an unrecognized country value will not be processed by the Details action of HomeController. What should you do?()”相关的问题
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服