试题详情
- 单项选择题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.
- C
关注下方微信公众号,在线模考后查看
热门试题
- Your company&e
- You have a server t
- You use Microsoft .
- Youhaveacomputerthat
- Your company has a m
- You use
- You upgraded
- You are t
- Your company&e
- Your network&e
- Network Access Prot
- You are th
- You are d
- 你在创建一个Web应用。这个Web应用能
- You are developing
- 你有一台运行Windows
- 你最近安装了Windows
- Youhaveanapplication
- You need
- Your company has an