niusouti.com

YouaredevelopinganASP.NETMVC2Webapplication.TheapplicationcontainsacontrollernamedHomeController,whichhasanactionnamedIndex.TheapplicationalsocontainsaseparateareanamedBlog.AviewwithintheBlogareamustcontainanActionLinkthatwilllinktotheIndexactionoftheHome

题目

YouaredevelopinganASP.NETMVC2Webapplication.TheapplicationcontainsacontrollernamedHomeController,whichhasanactionnamedIndex.TheapplicationalsocontainsaseparateareanamedBlog.AviewwithintheBlogareamustcontainanActionLinkthatwilllinktotheIndexactionoftheHomeController.YouneedtoensurethattheActionLinkintheBlogarealinkstotheIndexactionoftheHomeController.WhichActionLinkshouldyouuse?()

A.Html.ActionLink("Home","Index","Home")

B.Html.ActionLink("Home","Index","Home",new{area=""},null)

C.Html.ActionLink("Home","Index","Home",new{area="Blog"},null)

D.Html.ActionLink("Home","Index","Home",new{area="Home"},null)


相似考题
参考答案和解析
参考答案:B