单项选择题
You work as a junior Web Developer at Certkiller.com. You use Microsoft ASP.NET 3.5 to create aWeb application.
The Certkiller.com network contains a test server named CERTKILLER-SR01. You deploy theapplication to CERTKILLER-SR01 and enable debugging. The application is hosted in MicrosoftInternet Information Services (IIS) 6.0. You enable debugging and Integrated Windows
authentication, and disable anonymous access. You have no administrative rights on the testserver. The following configuration exists in the Web.config file:
<authentication mode="Windows"/>
<identity impersonate="false"/>
<customErrors mode="On" defaultRedirect="GenericError.aspx"/>
<authorization>
<deny users="?"/>
</authorization>
You need to configure the Web.config file in order for you to debug the application from yourdevelopment computer.
What should you do?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
Certkiller.comhashiredyouasaWebApplicationDeveloperfortheirnetwork.ThepreviousadministratorcreatedaMicrosoftASP.NETapplicationusingMicrosoft.NETFrameworkv3.5. YoucheckanddiscoverthattheapplicationcontainsaDataSourceControlnamedCatDS1.ThisDataSourceControlisboundtoaMicrosoftSQLServer2005table.TheprimarykeyofthetableistheCatNamecolumn.ThecodebelowiswrittenintheFormViewcontrol.(Thelinenumbersisincludedforreferencepurposes) 01 02Category: 03 04 05DataSourceID="CatDS1" 06DataTextField="CatName" 07DataValueField="CatID" 08Runat="server"/> 09 10 YouhavetomakesurethatanymodificationsmadetotheCatIDfieldiswrittentothedatabase.Youshouldthereforeidentifythecodesegmentthathastobeaddedinline04. Whatshouldyouidentify?()
A.Your best option would be to add the SelectedValue='<%# Bind("CatName") %>' codesegment.
B.Your best option would be to add the SelectedValue='<%# Bind("CatID") %>' code segment.
C.Your best option would be to add the SelectedValue='<%# Eval("CatID") %>' code segment.
D.Your best option would be to add the SelectedValue='<%# Eval("CatName") %>' codesegment. -
单项选择题
You are the newly appointed Web Application Developer at Certkiller.com. You make use ofMicrosoft .NET Framework v3.5 to create a Microsoft ASP.NET application. You create a page on the application that contains the code segment below:<asp:ListBox ID="lstBox1"AutoPostBack="true" runat="server" /> The page contains a code-behind file. The code below is written in the file:Private Sub BindData(ByVal sender As Object, ByVal e As EventArgs) lstLanguages.DataSource = CultureInfo.GetCultures(CultureTypes.AllCultures)lstLanguages.DataTextField = "EnglishName"lstLanguages.DataBind()End Sub You receive an instruction from management to make sure that lstBox1 ListBox control retains theselection of the Certkiller client during postback. You thus need to determine the appropriate codethat should be added in the constructor of the page. What should you do?()
A.You should consider adding AddHandler lstLanguages.SelectedIndexChanged, AddressOfBindData to the constructor of the page.
B.You should consider adding AddHandler Me.Init, AddressOf BindData to the constructor of thepage.
C.You should consider adding AddHandler Me.PreRender, AddressOf BindData to theconstructor of the page.
D.You should consider adding AddHandler lstLanguages.PreRender, AddressOf BindData to theconstructor of the page. -
单项选择题
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. The application contains a page named Exams.aspx. Exams.aspx calls the following SQL query inorder to display names of exams in a GridView control: SELECT ExamID, Name, Code FROM Exams Another page named ExamInfo.aspx makes use of the Exam query string parameter in order todisplay information about an exam. The exam is identified by the ExamID field that is returnedfrom the SQL query, the name of the book is represented by the Name field returned from thequery, and the exam code is represented by the Code field. You add a HyperLink control to atemplate field of the GridView control. You decide to declare the HyperLink control in order for it to display exams names. It should alsolink the user to ExamInfo.aspx in order to view the selected book. How should you implement thisHyperlink?()
A.A
B.B
C.C
D.D
