单项选择题
You are debugging an ASP.NET Web application by using the Visual Studio debugger. The application is incorrectly handling a SQL Exception on the login page. You need to break execution where the exception is thrown . What should you do?()
A.Enable the User-unhandled option for SqlException in Visual Studio Exception configuration.
B.Set the value of the customErrors element‟s mode attribute to “on” in the web.config file.
C.Manually attach the Visual Studio debugger to Internet Explorer.
D.Enable the thrown option for SqlException in Visual Studio exception configuration.
相关考题
-
单项选择题
YouareimplementinganASP.NETWebpage.Thepageincludesseveralcontrols,butonlyaGridViewrequiresviewstate.YousettheGridView…Youneedtoensurethatthepagewillomitunneededviewstate.Wich@Pagedirectiveshouldyouuse?()
A.<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
B.<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
C.<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
D.<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %> -
单项选择题
YoudevelopanASP.NETWebpagethatincludesmultipleWebPartZonecontrols,anEditorZone.UsersreportthattheycannotcustomizethelayoutofthepagebymovingWebPartsfromone.YouneedtoensurethatuserscansuccessfullymoveWebPartsfromonezonetoanother.Whatshouldyoudo?()
A.Configure the Web site to enable session state.
B.Configure the Web site to require authentication and to use personalization.
C.Add a ProxyWebPartManager control to the page.
D.Add a AppearanceEditorPart control to the page. -
单项选择题
ouaredevelopinganASP.NETMVC2application.Youcreateaviewthatwillbereturnedbyactionmethodsinmultiplecontrollers.Youneedtoplacetheviewintheappropriatefolder.TowhichsubfolderwithintheViewsfoldershouldyouaddtheview?()
A.Master
B.Default
C.Shared
D.Common
