单项选择题

A.Replace line 05 with the following code segment. routes.MapRoute( "Default", "{controller}/{action}/{id}", New With {.controller = "Home", .action = "DetailsByUsername", .id = ""})
B.Replace line 05 with the following code segment. routes.MapRoute("Default", "{controller}/{action}/{username}", New With {.controller = "Home", .action = "DetailsByUsername", .username = ""}, New With {.username = "\w{3,20}"} )
C.At line 04, add the following code segment.routes.MapRoute( "Details byUsername""{username}", New With {.controller = "Home", .action = "DetailsByUsername"}, New With {.username = "\w{3,20}"})
D.At line 04, add the following code segment. routes.MapRoute( "Details by Username", "{id}",  New With {.controller = "Home", .action = "DetailsByUsername"}, New With {.id = "\w{3,20}"} )
相关考题

单项选择题 YouareimplementinganASP.NETMVC2application.IntheAreasfolder,youaddasubfoldernamedProducttocreateasingleprojectareA.YouaddfilesnamedProductController.vbandIndex.aspxtotheappropriatesubfolders.YouthenaddafilenamedRoute.vbtotheProductfolderthatcontainsthefollowingcode.01PublicClassRouteInheritsAreaRegistration0203PublicOverridesReadOnlyPropertyAreaNameAsString04Get05Return"product"06EndGet07EndProperty0809PublicOverridesSubRegisterArea(ByValcontextAsAreaRegistrationContext)1011context.MapRoute("product_default","product/{controller}/{action}/{id}",NewWith{.controller="Product",.action="Index",.id=""})1213EndSubEndClassWhenyouloadtheURLhttp:///product,youdiscoverthatthecorrectpageisnotreturned.Youneedtoensurethatthecorrectpageisreturned.Whatshouldyoudo?()

单项选择题 You are creating an ASP.NET Web site. You create a HTTP module named Custom Module, and you register the module in the web.config file.The Custom Module class contains the following code. Public Class Custom Module  Implements IHttpModule     Dim footerContent As String = Footer Content"Public Sub Dispose() Implements IHttpModule.DisposeEnd SubEnd Class  You need to add code to CustomModule to append the footer content to each processed ASP.NET page. Which code segment should you use?()

多项选择题 YouareimplementinganASP.NETWebapplication.UserswillauthenticatetotheapplicationwithanID.Theapplicationwillallownewuserstoregisterforanaccount.TheapplicationwillgenerateanIDfortheuserbasedontheusersfullname.Youneedtoimplementthisregistrationfunctionality.Whichtwoactionsshouldyouperform?()