单项选择题
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET MVC 2 Web application using .NET Framework 4.0. You implement a single project area in the MVC 2 Web application. In the Areas folder, you add a subfolder named MyTest. You add the following files to the appropriate sub-folders: MyController. csMyHome.aspx You register a route of the area, setting the route name to MyTest_default and the area name to test. You create a view named MyViews.aspx that is outside the test area. You need to add a link to MyViews.aspx that points to MyHome.aspx. Which of the following code segments will you use?()
A.<%= Html.ActionLink("MyTest", "MyHome", new {area = "test"}, null)%>
B.<%= Html.RouteLink("MyHome", "MyTest", new {area = "test"}, null)%>
C.<%= Html.RouteLink("MyTest", "MyHome", "MyTest", new {area = "test"}, null)%>
D.<%= Html.ActionLink("MyTest", "MyHome", "MyTest", new {area = "test"}, null)%>
相关考题
-
单项选择题
Whichofthefollowingisthecorrectsyntaxtospecifythepathtoafilethatgeneratesthestrongtype?()
A.<%@ PreviousPageType VirtualPath ="~/MyPage.aspx"% >
B.<%@ PreviousPageType VirtualPath ="/MyPage.aspx/ ~"% >
C.<%@ PreviousPageType VirtualPath ="~/MyPage.master"% >
D.<%@ PreviousPageType VirtualPath ="~/MyPage"% > -
单项选择题
Whichdirectivedefinesmasterpage-preciseattributesthatareusedbytheASP.NETpageparserandcompiler?()
A.@ MasterType
B.@ Master
C.@ PageType
D.@ MasterPage -
单项选择题
YouaredevelopinganASP.NETWebapplication.ApplicationdataisstoredinaMicrosoftSQLServer2008database.YouconfigureaconnectionstringnamedcnnContoso.Theapplicationmustcachethedatathatisreturnedfromthedatabasebyusingthisconnectionstring.Youneedtoensurethattheapplicationchecksthedatabaseevery10seconds.Whatshouldyoudo?()
A.Add the following configuration to the
section of the web.config file.
B.Add the following configuration to thesection of the web.config file.
C.Add the following @ Page directive to pages that query the database.
D.Add the following @ Page directive to pages that query the database.
