欢迎来到财会考试题库网 财会考试题库官网
logo
全部科目 > 微软认证考试 > MCTS > MCTS(70-515)

单项选择题

You create an ASP.NET MVC 2 Web application that contains the following controller class.
In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive.

You test the application with a browser.You receive the following error message when the Index method is invoked: "The view 'Index' or its master was not found." You need to resolve the error so that the new view is displayed when the Index method is invoked.What should you do?()

    A.Change the name of the Index.aspx file to Product.aspx.
    B.Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder.
    C.Replace the @ Page directive in Index.aspx with the following value.
    D.Modify the Index method by changing its signature to the following:public ActionResult Index(Product p)

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题