单项选择题You have a master page custom.master ... u create a nested.master page using it ... and then u have content page that uses the nested.master as its master page ...  to get a string prop from custom.master into a label in content page the code u wud use()

A.master.master
B.parent.master
C.this.master
D.unknown


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题You are developing a Asp.net web application tht includes a panel control that has ID contentsection.You need to add a textBox control to the panel control.()

A.this.RequireControlState(this.LoadControl(typeof(TextBox),null));
B.this.ContentSection.control.add(this.FindControl(ContentSection.ID + "asp:TextBox"));
C.this.ContentSection.control.add(this.LoadControl(typeof(TextBox),null));
D.this.LoadComplete("asp:TextBox").IntiantiateIn(Content Section)

4.单项选择题

The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. 
What should you do? ()

A.Read the HttpRequest.Files property and call the HttpPostedFile.SaveAs method for each file.
B.Read the HttpRequest.inputStream property and call the System.Io.File.WriteLines method for each file.
C.Read the HttpRequest.inputStream property and call the HttpResponse.WriteLine method for each file.
D.Read the HttpRequest.Files property and call the System.Io.File.WriteLines method for each file.

5.单项选择题You need to ensure that when the button is clicked, both update panels update the tim without generating a postback.  What should you do?()

A.Add the following marktip to UpdatePanel1.  <Triggers>  <asp:PostBackTrigger ControlID="btnSave" />  </Triggers>  
B.Set the UpdateMode property for the UpdatePanel2 to "Always"
C.Add the following markup to UpdatePanel2  <Triggers>  <asp:AsyncPostBackTrigger ControlID="btnSave"  EventName="Click" />  </Triggers>  
D.Set the UpdateMode property for UpdatePanel2 to "Conditional"

6.单项选择题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.

7.单项选择题You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()

A.<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
B.<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
C.<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
D.<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>

8.单项选择题You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from one.You need to ensure that users can successfully move Web Parts from one zone to another. What should you do?()

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.

最新试题

Which control allows you to bind to data items that are returned from a data source and display them?()

题型:单项选择题

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0. Now, you are deploying the ASP.NET Web application to a remote server. You are required to select a deployment method that will make sure that all Internet Information Services (IIS) settings, in addition to the Web content, are deployed to the remote server. Which of the following deployment methods will you select to accomplish this?()

题型:单项选择题

Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()

题型:单项选择题

Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?()

题型:单项选择题

You are developing an ASP.NET Web application.The application is configured to use the membership and role providers. You need to allow all users to perform an HTTP GET for application resources, but you must allow only the user named Moderator to perform a POST operation.Which configuration should you add to the web.config file?()

题型:单项选择题

You have to store user data of 200 KB in an object. Which state management technique to use:()

题型:单项选择题

Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()

题型:单项选择题

You have a login.ascx control and to display it in a view which method u would use()

题型:单项选择题

You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()

题型:单项选择题

Which method of the Page class searches the page naming container for a server control with a particular identifer?()

题型:单项选择题