-
You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform?()
A . Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
B . Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
C . Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
D . In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.
-
You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()
A . SetPage.MasterPageFile in the Page’sPage_Initevent.
B . SetPage.MasterPageFile in the Page’sOnInit event.
C . SetPage.MasterPageFile in the Page’sPage_Loadevent.
D . SetPage.MasterPageFile in the Page’sPage_PreInitevent.
-
In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()
A . var n = $(“input:checked”).length;
B . var n = $(“:input, :checked”).length;
C . var n = $(“input:selected”).length;
D . var n = $(“:input, :selected”).length;
-
When you access the Cisco CRS Administration page for the first time in a cluster, the system automatically initiates the cluster setup procedure. You perform this procedure one time for a cluster. Whatdo you accomplish in this procedure?()
A . identify your Cisco CRS license files and location, enter information about your LDAP, and designate a Cisco CRS administrator
B . identify CSQs and JTAPI user and designate a Cisco CRS administrator
C . identify resources and RM user and enter information about your LDAP
D . identify your Cisco CRS license files and location, enter information about your LDAP, and designate IPCC Express resources&e
-
You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?()
A . Call document.write.
B . Call Response.Write.
C . Call HttpUtility.UrlEncode.
D . Call HttpUtility.HtmlEncode.
-
You create a Web page that contains the span shown in the following line of code. TextYou need replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL. Which code segment should you use?()
A . $.ajax({ type: "GET", url: localURL, dataType: "jsonp", success: function(htmlText { $("#span1").text(htmlText); } });
B . $.ajax( localURL, {}, function(htmlText) { $("#span1").html(htmlText); },"html" );
C . $.ajax({ type: "GET", url: localURL, dataType: "html",success: function(htmlText) { $("#span1").innerHTML = htmlText; }});
D . $.ajax({ type: "GET", url: localURL, success: function(htmlText) { $("#span1").html(htmlText); } })
-
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 . unknow
-
You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()
A . Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.
B . Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.
C . Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.
D . In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.
-
You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()
A . Set Page.MasterPageFile in the Page's Page_Init event.
B . Set Page.MasterPageFile in the Page's OnInit event.
C . Set Page.MasterPageFile in the Page's Page_Load event.
D . Set Page.MasterPageFile in the Page's Page_PreInit event.
-
You create an ASP.NET page that contains the following tag. Page Name
A . this.hdr1.InnerHtml = "Text";
B . (hdr1.Parent as HtmlGenericControl).InnerText = "Text";
C . HtmlGenericControl h1 = this.FindControl("hdr1") as HtmlGenericControl;h1.InnerText = "Text";
D . HtmlGenericControl h1 = Parent.FindControl("hdr1") as HtmlGenericControl;h1.InnerText = "Text";
-
In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored asa List object in the catalog attribute of the webapp’s ServletContext object. Which scriptlet code snippetgives you access to the catalog object?()
A . <% List catalog = config.getAttribute("catalog"); %>
B . <% List catalog = context.getAttribute("catalog"); %>
C . <% List catalog = application.getAttribute("catalog"); %>
D . <% List catalog = servletContext.getAttribute("catalog"); %>
-
You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()
A . Ensure that the Web control inherits from the WebControl class.
B . Ensure that the Web control inherits from the Control class.
C . Ensure that the Web control inherits from the CompositeControl class.
D . Ensure that the Web control inherits from the UserControl class.
-
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” _ %>
-
You must be responsible for all the losses arising from your delay in opening the()L/C.
A . covering
B . covered
C . paying
D . paid
-
Yellow Bracelet Program was launched to help the Alzheimers in China.
-
In the Elizabethan Age, a yellow flag would be raised for a tragedy in the theatre before the performance started.
-
This disease ______ itself in yellowness of the Skin and eyes.
A.manifests
B.modifies
C.magnifies
D.exposes
-
The Yellow River is the second ______ river in China.
A.long
B.longer
C.longest
D.more long
-
____do you like best, the blue one, the yellow one or the red one?
A、what
B、which
C、how
D、whose
-
You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name "CONTOSO\Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
A. In the Web.config file, enable impersonation.
B. In IIS, enable anonymous access.
C. In IIS, disable anonymous access.
D. In the Web.config file, set the authentication mode to Windows.
-
You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file.What should you do?()
A. Ensure that the Web control inherits from the WebControl class.
B. Ensure that the Web control inherits from the Control class.
C. Ensure that the Web control inherits from the CompositeControl class.
D. Ensure that the Web control inherits from the UserControl class.
-
The –48V ground cable is in yellow/green. The PGND cable is black. These two cables ca
是
否
-
_____ you have the chance to go to the university in the future, you must take it. A.Will B.Would C.Could D.Should
-
In autumn, leaves turn yellow and _____ the tree.
A.fell from
B.fall down
C.fall off
D.fall to