单项选择题
You are implementing an ASP.NET application. The application includes a Person class with property Age. You add a page in which you get a list of Person objects and display the objects in a GridView control. You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18. Which GridView event should you handle?()
A.RowDataBound
B.RowCommand
C.RowUpdated
D.RowEditing
相关考题
-
单项选择题
YouaredeployinganASP.NETWebapplicationtoaremoteserver.YouneedtochooseadeploymentmethodthatwillensurethatallIISsettings,inadditiontotheWebcontent,willdeploytotheremoteserver.Whichdeploymentmethodshouldyouchoose?()
A.the XCOPY command-line tool
B.the Copy Web Site tool
C.the Web Deployment tool
D.the Publish Web Site utility -
多项选择题
YouaredevelopinganASP.NETapplicationbyusingVisualStudio2010.Youneedtointeractivelydebugtheentireapplication.Whichtwoactionsshouldyouperform?()
A.Set the Debug attribute of the compilation node of the web.config file to true.
B.Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
C.Select the ASP.NET debugger option in the project properties.
D.Define the DEBUG constant in the project settings. -
单项选择题
YouarecreatinganASP.NETWebsite.Thesitecontainspagesthatareavailabletoanonymoususers.ThesitealsocontainsapagenamedPremium.aspxthatprovidespremiumcontenttoonlymembersofagroupnamedSubscribers.Youneedtomodifytheweb.configfiletoensurethatPremium.aspxcanbeaccessedbyonlymembersoftheSubscribersgroup.Whichconfigurationshouldyouuse?()
A.<location path="Premium.aspx"> <system.web> <authorization> <allow users="Subscribers"/> <deny users="*"/> </authorization> </system.web> </location>
B.<location path="Premium.aspx"> <system.web> <authorization> <allow roles="Subscribers"/> <deny users="*"/> </authorization> </system.web> </location>
C.<location path="Premium.aspx"> <system.web> <authorization> <allow roles="Subscribers"/> <deny users="?"/> </authorization> </system.web> </location>
D.<location path="Premium.aspx"> <system.web> <authorization> <deny users="*"/> <allow roles="Subscribers"/> </authorization> </system.web> </location>
