• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/67

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

67 Cards in this Set

  • Front
  • Back

If you want to create a website on a remote computer running IIS 6.0 that does not have Front Page Server Extensions installed, which website type will you create?




File system


Remote HTTP


FTP


Local HTTP

FTP




Explanation:


FTP allows you to publish a website to a remote server that does not support Front Page Server Extensions. However, your ability to debug the site is limited.



You need to validate a vendor ID entered by a user. The valid vendor IDs exist in a database table. How can you validate this input?




Provide a CustomValidator control with server-side code to search the database for the code.




Provide a CompareValidator control and set the compare expression to the name of a server-side function that performs a database lookup of the code.




Provide a RegularExpressionValidator control


and set the ValidationExpression property to /DbLookup{code}.




Provide a RangeValidator control, and set the MinValue property to DbLookup(code) and the MaxVaue property to DbLookup(code).

Provide a CustomValidator control with server-side code to search the database for the code.




Explanation:


The CustomValidator control can be used to call server-side code to validate the vendor ID.

You write a JavaScript class that uses the Microsoft AJAX Library. You intend to use the class on a webpage. Which of the following actions should you take?



Use the ScriptReference class in your code-behind file and set its path to the path of your .js file.




Add a ScriptManager control to your page. Add a reference nested inside the ScriptManager control that points your JavaScript file.




Add the following markup to the section of the ASPX page:




Add a ScriptManager control to your page. It automatically finds your .js files in your solution. You can then work with them by using IntelliSense.



Add a ScriptManager control to your page. Add a reference nested inside the ScriptManager control that points your JavaScript file.



Explanation:


To use a .js file that targets the Microsoft AJAX Library, you set a reference to it inside a ScriptManager control. You do so through the element.

Which of the following controls provides a link for unauthenticated users to log on?



LoginStatus


LoginName


Login


LoginView

LoginStatus



Explanation:


The LoginStatus control displays "Login" with a link to a logon page if the user is unauthenticated, or "Logout" to authenticated users.

You are creating a data-bound CheckBoxList control that allows a user to select options for configuring a vehicle. When the data is displayed to the user, you want the OptionName column to display. When the data is posted back to the server, you need the OptionId column value for all selected items. Which of the following attribute definitions would you set? (Choose two.)



DataTextField=OptionId


DataTextField=OptionName


DataValueField =OptionName


DataValueField=OptionId

DataTextField=OptionName

DataValueField=OptionId




The DataTextField is used to display text to the user.The DataValueField is used to return values for selected items.

You want to add a default route for when requests are made to your site without the controller and action parameters in the URL. This default route should point to Default.aspx inside the view folder named Main. You create a controller named DefaultController. Which code would you write?



//C#routes.MapRoute("HomePage", "{controller}/{action}", new { controller = "Default", action = "Default"} );




//C#routes.MapRoute("Default ", "{ DefaultController }/{ Default }", new { controller = "Default", action = "Default"} );




//C#routes.MapRoute("Default ", "{ DefaultController }/{ Default }");




//C#routes.MapRoute("HomePage", "{controller}/{action}", new { controller = "DefaultController", action = "Default"} );

//C#routes.MapRoute("HomePage", "{controller}/{action}", new { controller = "Default", action = "Default"} );
Joe created a new website by using Visual Studio 2010, setting the website type to File, and setting the programming language to C#. Later, Joe received an elaborate webpage from his vendor, which consisted of the Vendor.aspx file and the Vendor.aspx.vb code-behind page. What must Joe do to use these files?



The Vendor.aspx file will work, but Joe must rewrite the code-behind page by using C#.




Joe can simply add the files into the website, because ASP.NET 4 supports websites that have webpages that were programmed with different languages.




Joe must create a new website that contains these files and set a web reference to the new site.




Both files must be rewritten in C#.

Joe can simply add the files into the website, because ASP.NET 4 supports websites that have webpages that were programmed with different languages.

You have created a webpage that contains many controls that are validated by using validation controls. This page also contains Button controls that perform postbacks. You disabled all of the client-side validation and noticed that when you clicked any of the Button controls, the code in the Click event handler was executing even when some of the controls did not have valid data.How can you best solve this problem to ensure that code is not executed when invalid data exists?




In the Load event handler method of the webpage, test the webpage's IsValid property and exit the method if this property is false.




Add the runat="server" attribute to all of the validation controls.




Re-enable the client-side script to disable postback until valid data exists.




In the Click event handler method for each of your Button controls, test the webpage's IsValid property and exit the method if this property is false.

In the Click event handler method for each of your Button controls, test the webpage's IsValid property and exit the method if this property is false.

You want to create a custom control that works as an AJAX client behavior.Which action(s) should you take? (Choose two.)




Create a custom server-side class that inherits from a valid System.Web.UI.Control.




Create a custom server-side class that implements the interface IScriptControl.




Create a custom server-side class that is decorated with the attribute TargetControlType.




Create a custom server-side class that inherits from ExtenderControl.

Create a custom server-side class that is decorated with the attribute TargetControlType.



Create a custom server-side class that inherits from ExtenderControl.

You are creating a web form that enables users to log on to your website.Which of the following ASP.NET controls should you add to the page? (Choose two.)




LoginName


Login


CreateUserWizard


PasswordRecovery

Login

PasswordRecovery




The Login control is required on a logon page, because it prompts the user for a user name and password.The PasswordRecovery control is a good choice for a logon page because it can be used to recover a password if the user forgets his or her password.

You want to display a list of suppliers on a webpage. The supplier list must display 10 suppliers at a time, and you require the ability to edit individual suppliers.Which web control is the best choice for this scenario? (Choose two.)




The Repeater control


The ListView control


The DetailsView control


The GridView control



The ListView control


The GridView control




The GridView control allows for the display of multiple rows of data and allows users to update that data.The ListView implicitly supports displaying data in a list and updating that data.

You are writing an action method called ShipOrder inside the Order controller. The logic in your code indicates that you need to call the Shipment controller's Status method as a result of your controller's action method. Which line of code would accomplish this?




return redirect("Shipment/Status")


return Content("Shipment.Status")


return View("Shipment.Status")


Response.Redirect("Shipment.aspx?action=Status")

return redirect("Shipment/Status")

Which of the following statements about referencing master page methods and properties is true? (Choose three.)




Content pages can reference public methods in the master page.


Content pages can reference public properties in the master page.


Content pages can reference private properties in the master page.


Content pages can reference controls in the master page.



Content pages can reference public methods in the master page.




Content pages can reference public properties in the master page.




Content pages can reference controls in the master page.

You have created an elaborate webpage that contains many validated controls. You want to provide a detailed message for each validation error, but you don't have space to provide the detailed message next to each control.What can you do to indicate an error at the control and list the detailed error messages at the top of the webpage?




Set the ToolTip property of the validator control to the detailed message and set the ErrorMessage property to an asterisk. Place a ValidationSummary control at the top of the webpage.




Set the ErrorMessage property of the validator control to the detailed message and set the Text property to an asterisk. Place a ValidationSummary control at the top of the webpage.




Set the ToolTip property of the validator control to the detailed message and set the Text property to an asterisk. Place a ValidationSummary control at the top of the webpage.




Set the Text property of the validator control to the detailed message and set the ErrorMessage property to an asterisk. Place a ValidationSummary control at the top of the webpage.

Set the ErrorMessage property of the validator control to the detailed message and set the Text property to an asterisk. Place a ValidationSummary control at the top of the webpage.

You need to write jQuery code to select the first heading (h2) tag on the page and then slowly fade the item into view. Which line of code would accomplish this task?




$("#h21").fadeIn(500);


$("h2:first").fadeIn(500);


$("h2:first").fadeIn("slow");


$(".h2:first").fadeIn(500);

$("h2:first").fadeIn("slow");

You have created an ASP.NET web form that enables users to create accounts with a CreateUserWizard control. After a new user creates an account, you want to redirect the user to a page listing the rules for your website.To which of the following events should you respond?




CreateUserWizard.Unload


CreateUserWizard.ContinueButtonClick


CreateUserWizard.CreatedUser


CreateUserWizard.Init

CreateUserWizard.ContinueButtonClick

You want to display a list of parts in a master-detail scenario so that users can select a part number from a list that takes a minimum amount of space on the webpage. When the part is selected, a DetailsView control displays all the information about the part and allows users to edit the part.Which web control is the best choice to display the part number list for this scenario?




The RadioButtonList control


The DropDownList control


The FormView control


The TextBox control

The DropDownList control

You need to define a page that allows a user to add a new product to the product catalog. You are using ASP.NET MVC and the default structure and routing.Which actions do you take? (Choose two.)




Add a class to the Controllers folder and name it Catalog. Add a method called AddProduct to this class.




Add a class to the Controllers folder and name it ProductController. Add a method called Add to this class.




Add new folder to the Views folder and name it Product. Create a view inside this new folder and name it Add.aspx.




Add new folder to the Views folder and name it AddProduct. Create a view inside this new folder and name it Catalog.aspx.

Add a class to the Controllers folder and name it ProductController. Add a method called Add to this class.




Add new folder to the Views folder and name it Product. Create a view inside this new folder and name it Add.aspx.

You are converting an existing web application to use master pages. To maintain compatibility, you need to read properties from the master page. Which of the following changes are you required to make to ASPX pages to enable them to work with a master page? (Choose two.)




Add a ContentPlaceHolder control.


Add a MasterPageFile attribute to the @ Page declaration.


Add an @ MasterType declaration.


Add an @ Master declaration.

Add a MasterPageFile attribute to the @ Page declaration.




Add an @ MasterType declaration.

Which of the following server-side methods of the HttpServerUtility class can be used to navigate to a different webpage without requiring a round trip to the client?




UrlDecode


Redirect


Transfer


MapPath

Transfer




The Page.Server.Transfer method transfers the page processing to another page without calling back to the client.

Which of the following lines of JavaScript registers a new class to be used as an extension to a DOM element?




MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', null, Sys.IDisposable);




MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', Sys.UI.Behavior);




MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', null);




MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', Sys.UI.Control);

MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', Sys.UI.Control);

Which of the following Web.config segments correctly requires that all users be authenticated by using a Windows user account?

Which of the following Web.config segments correctly requires that all users be authenticated by using a Windows user account?





You have a data context map for your SQL Server database defined inside a class file. You need to connect to this data by using a data source control.Which data source control should you use?




SqlDataSource


LinqDataSource


SiteMapDataSource


ObjectDataSource

LinqDataSource




The LinqDataSource can be used to connect to a context map that is defined for your database.

You have a very large website and you want to structure the files in this site logically so that they are easier to manage.Which actions should you take? (Choose three.)




Ensure that the RegisterAllAreas() method is defined in your Application_Start method.




Create an Areas folder and add individual area folders based on the logical grouping in your site.




Create separate Controllers, Models, and Views folders within your area folders.




Create separate area folders inside the Models, Views, and Controllers folders. Name these folders based on the logical grouping in your site folder.

Ensure that the RegisterAllAreas() method is defined in your Application_Start method.




Create an Areas folder and add individual area folders based on the logical grouping in your site.




Create separate Controllers, Models, and Views folders within your area folders.



You need to change the master page of a content page at run time.In which page event should you implement the dynamic changing?




Page_Load


Page_PreRender


Page_PreInit


Page_Render

Page_PreInit

Which control automatically uses the Web.sitemap file to display site map information to a user on a webpage?




TreeView


Menu


SiteMapPath


SiteMapDataSource

SiteMapPath




The SiteMapPath control will automatically pick up a site map file and display its contents to a user.

You are creating an AJAX component that does an asynchronous postback to the server for partial-page updates. You need your code to be notified when the partial-page response first comes back from the server. Which event should you intercept?




pageLoading


beginRequest


endRequest


pageLoaded

pageLoading




The pageLoading event fires when the postback first comes back from the server.




Exam Objective:Implementing Client-Side Scripting and AJAXExam SubObjective(s):Handle JavaScript events

Given the following Web.config file, what permissions do users have to the Marketing folder?

 
   
      
     
        
     
   
 
   
     
       
         
          
       
     
   


All users, authenticated and unauth...

Given the following Web.config file, what permissions do users have to the Marketing folder?




All users, authenticated and unauthenticated, have access.




Authenticated users and members of the FABRIKAM\Marketing group have access. All other users are denied access.




Members of the FABRIKAM\Marketing group have access. All other users are denied access.




All users are denied access.



Members of the FABRIKAM\Marketing group have access. All other users are denied access.

You are using an ObjectDataSource control to connect to a business object. Which attributes of the control must you set to return data for the data source? (Choose two.)




SelectParameters


DataSourceId


SelectMethod


TypeName

SelectMethod


TypeName




TypeName is used to indicate the name of the class you intend to use for your object-based data source control.




SelectMethod is used to indicate a method on your object to be used for selecting data.

You are writing an action method inside your controller. You want to pass string data to the view and display that data inside the view. You are using the default MVC templates.Which actions should you take? (Choose two.)




Reference the string value in the code-behind file for your view, and write it to the page.




In the view, reference the string value by using this inline code: <%: object %>.




Create a constructor for your view that takes a string value.




In your action method, add your string value to the ViewData collection.

In the view, reference the string value by using this inline code: <%: object %>.




In your action method, add your string value to the ViewData collection.

Which of the following theme applications will override an attribute that you specified directly on a control? (Choose two.)

Which of the following theme applications will override an attribute that you specified directly on a control? (Choose two.)







You want to provide an Up button for your webpages that users can click to navigate one level higher on your website. You want to define the hyperlink programmatically by using the site map.Which class can you use to access the site map content to accomplish this?




SiteMap


HttpServerUtility


SiteMapPath


SiteMapDataSource

SiteMap




The SiteMap class will allow you to load the site map file and work with the data contained inside.

You want to execute a function after the DOM has loaded. This function should bind an event code to be run when the user presses a key on the keyboard inside a text box control with the textBox1 ID.Which steps should you take? (Choose two.)




Add your event binding code to the $(document).load() event at the top of your script.




Add your event binding code to the $(document).ready() event at the top of your script.




Bind to the keyPress event by using this code:$("#textBox1").add("keyPress", ()).




Bind to the keyPress event by using this code:$("#textBox1").bind("keyPress", ())

Add your event binding code to the $(document).ready() event at the top of your script.




Bind to the keyPress event by using this code:$("#textBox1").bind("keyPress", ())

You are configuring NTFS file permissions for a website with the following Web.config file:



For the Marketing folder, you remove all file permissions, and then grant read access to the FABRIKAM\John and FABRIKAM\Sam user accounts. John is a m...

You are configuring NTFS file permissions for a website with the following Web.config file:






For the Marketing folder, you remove all file permissions, and then grant read access to the FABRIKAM\John and FABRIKAM\Sam user accounts. John is a member of the FABRIKAM\Domain Users and FABRIKAM\Marketing groups. Sam is only a member of the FABRIKAM\Domain Users group.Which of the following users can access web forms located in the Marketing folder?




FABRIKAM\John




FABRIKAM\Sam




Members of the FABRIKAM\Domain Users group




Authenticated users




Unauthenticated users

FABRIKAM\John




John has access because he is granted permissions through ASP.NET because of his membership in the FABRIKAM\Marketing group. Additionally, he is granted NTFS permission to access the folder.

You want to apply caching to your data source control to increase your scalability for frequently used data. You want to set the cache to expire every 60 seconds.Which attributes of your data source control should you set to do so? (Choose two.)




CacheTimeout


EnableCaching


DisableCaching


CacheDuration

EnableCaching


CacheDuration




The CacheDuration attribute defines the length of time that the data of the control should be cached.




The EnableCaching attribute is used to turn on caching for a data source control.

You want to create a strongly typed view. Which actions should you take? (Choose two.)




Mark your @ Page directive to include the ViewDataClass attribute and point to an entity inside your model.




Add a strong type as a parameter to the View method inside your action method.




Mark your @ Page directive to inherit from ViewPage.




Add a strong type to the ViewData collection inside your action method.



Add a strong type as a parameter to the View method inside your action method.




Mark your @ Page directive to inherit from ViewPage.

Which of the following is a valid skin definition inside a skin file?

Which of the following is a valid skin definition inside a skin file?



Which of the following can be a Web Part? (Choose three.)




A standard Label control


A type derived from WebPart


A control based on the Web User Control template


A master page

A standard Label control


A type derived from WebPart


A control based on the Web User Control template




A user control can be used as a Web Part by placing it into a Web Part zone.




ASP.NET will automatically define a Web Part when you place a standard control, such as a Label, into a Web Part zone.




You can create Web Parts by defining custom controls based on the WebPart class.

You are working on a long data-entry webpage. In the middle of the page, you need to reach out to the server to get information based on a user's entry for a related field. However, you do not want the user to lose his or her focus or context within the page. Therefore, you decide to implement this feature by using the ASP.NET AJAX controls. Which of these controls must you add to the page to enable this scenario? (Choose two.)




ScriptManager


AsyncPostBackTrigger


UpdatePanel


ScriptManagerProxy

ScriptManager


UpdatePanel




The UpdatePanel control will enable the portion contained inside the panel to update independently of the rest of the page.




Every AJAX page must have a ScriptManager control to manage the JavaScript files sent to the client and the communication between client and server.



Which of the following Web.config files correctly enables the website to track the age of anonymous users in a variable of type Int32?

Which of the following Web.config files correctly enables the website to track the age of anonymous users in a variable of type Int32?





You are using an EntityDataSource control on your page. You need to write a custom query that uses a parameter in the Where clause. Which action should you take?




Add a WhereParameters section to the EntityDataSource control markup.




Name the parameter by using the @ ParamName construct inside the Where parameter definition.




Set the command by using the EntitySetName property.




Set the command by using the CommandText property.

Set the command by using the CommandText property.

You need to allow users to choose their own themes. In which page event should you specify the user-selected theme?




Page_Load


Page_PreInit


Page_Render


Page_PreRender

Page_PreInit




Page_PreInit is the proper method in which to specify the theme because the page theme property has not already been set by ASP.NET. After Page_PreInit executes for the page, you can no longer change the theme property without causing a runtime exception.

Which of the following are required to enable users to change the title of a Web Part? (Choose two.)




AppearanceEditorPart


CatalogZone


LayoutEditorPart


EditorZone

AppearanceEditorPart




EditorZone




You must add an EditorZone container to the webpage. Then add an AppearanceEditorPart control to the EditorZone.The AppearanceEditorPart control enables users to set the titles of Web Parts.

You need to write a control that will be used across multiple pages. This control should contain updated sales figures. The control should update itself at various intervals if a containing page is left open.Which controls should you use to enable this scenario? (Choose three.)




UpdatePanel


Timer


ScriptManagerProxy


ScriptManager

UpdatePanel


Timer


ScriptManagerProxy




An UpdatePanel control can be used to update only the portion of the page.




A Timer control can be used to retrieve updates from the server on a periodic basis.




The ScriptManagerProxy control is used to avoid conflict with a ScriptManager control that is already on a containing page.

You want to create a user profile that uses a custom type as one of the profile properties.Which actions must you take? (Choose two.)




Set the type attribute of the profile property to the fully qualified name of your custom type.




Mark your class as serializable.




Add your custom type in the Machine.config file in the element.




Add the group element to your profile property. Add one element to the group element for each property in your custom type. Set each element's name to match that of a property in your custom type

Set the type attribute of the profile property to the fully qualified name of your custom type.




Mark your class as serializable.




Custom types that you want to use as profile properties must be marked as serializable.When you use a custom type, you must qualify it by namespace and class in the type attribute of the profile property.

Against which of the following classes can you write a LINQ query? (Choose all that apply.)




DataSet


List


Dictionary


Array

DataSetListDictionary


List


Dictionary


Array




You can write LINQ queries against any object that implements IEnumerable or a derivative. This includes the DataSet class.




You can write LINQ queries against any object that implements IEnumerable or a derivative. This includes the List class.




You can write LINQ queries against any object that implements IEnumerable or a derivative. This includes the Array class.




You can write LINQ queries against any object that implements IEnumerable or a derivative. This includes the Dictionary

You need to create a webpage that is available in both the default language of English and for users whose browsers identify them as German.Which of the following resource files should you create? (Choose two.)




App_LocalResources/Page.aspx.resx.de


App_LocalResources/Page.aspx.resx


App_LocalResources/Page.aspx.de.resx


App_LocalResources/Page.aspx.en.resx



App_LocalResources/Page.aspx.resx


App_LocalResources/Page.aspx.de.resx




The default language extension should not have a language extension. This way, both English users and all others will be given the settings in this file.To create a German language resource file, you add the language extension (de) between the file name and the .resx extension.

You have developed a webpage with many different Web Part components. Some Web Parts are enabled by default, and you want to give the user the ability to display others.Which classes should you use? (Choose two.)




CatalogZone


LayoutEditorPart


DeclarativeCatalogPart


AppearanceEditorPart

CatalogZone


DeclarativeCatalogPart




The DeclarativeCatalogPart control enables a user to add Web Parts when the page is in catalog mode.The CatalogZone container is required to hold the DeclarativeCatalogPart control, which enables a user to add Web Parts.

You have an UpdatePanel control defined on a page. You need to indicate that a specified Button control outside of the UpdatePanel should cause the UpdatePanel to execute an update.Which steps should you take?




Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the ID of the Button control.




Set the AsyncPostBackTrigger attribute of the Button control to the ID of the UpdatePanel.




Add a Trigger control to the AsyncPostBackTriggers section of the UpdatePanel. Set the ControlID attribute of the Trigger control to the ID of the Button control.




Set the AsyncPostBackTrigger attribute of the UpdatePanel to the ID of the Button control.

Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the ID of the Button control.

You need to have ASP.NET dynamically generate Microsoft Word documents when a web browser requests a file ending in a .docx extension.How can you do this?




Implement the IPartitionResolver interface.


Implement the IHttpHandler interface.


Implement the IHttpHandlerFactory interface.


Implement the IHttpModule interface.

Implement the IHttpHandler interface.

You need to write a LINQ query to retrieve a list of state hospitals. The results should be sorted and grouped first by county. For each county, the hospitals should be sorted by city.Which of the following LINQ queries would you write? (Choose two.)




var hsQ = from hspt in hospitals orderby hspt.County, hspt.City group hspt by hspt.County;




var hsQ = from hspt in hospitals orderby hspt.County group hspt by hspt.County into hsptGroup orderby hsptGroup.Key select hsptGroup;




var hsQ = from hspt in hospitals orderby hspt.County group hspt by hspt.County into hsptGroup orderby hsptGroup.Key select hsptGroup;




var hsQ = from hspt in hospitals orderby hspt.County group hspt by hspt.County into hsptGroup orderby hsptGroup.Last().City select hsptGroup;



C# Code:var hsQ = from hspt in hospitals orderby hspt.County, hspt.City




C# Code: var hsQ = from hspt in hospitals orderby hspt.City group hspt by hspt.County into hsptGroup orderby hsptGroup.First().County select hsptGroup;

What must you do to enable users to select their own language preferences (outside of browser and machine settings)? (Choose two.)




Set the Page.UICulture property.


Override the Page.InitializeCulture method.


Override the Page.ReadStringResource method.


Set the Page.Culture property.

Set the Page.UICulture property.




Override the Page.InitializeCulture method.






The Page.UICulture property is used to define the language for the page. ASP.NET will load the appropriate resource file based on this setting.You should override the page's InitializeCulture method to set the Page.UICulture property.

You have created a Web Part control that prompts the user for personalization information, including his or her name, region, and preferences. You want other controls to be able to read information from this control to customize the information they display.How should you modify your Web Part to enable other Web Parts to connect to it?




Create a method that shares the user's information, and add the ConnectionConsumer attribute to that method.




Create a public property that shares the user's information, and add the ConnectionConsumer attribute to that method.




Create a method that shares the user's information, and add the ConnectionProvider attribute to that method.




Create a public property that shares the user's information, and add the ConnectionProvider attribute to that method.

Create a method that shares the user's information, and add the ConnectionProvider attribute to that method.




You should apply the ConnectionProvider attribute to a public method to allow consumers to access the method.

You are writing a custom HTTP handler to be hosted in IIS 7.0 integrated mode. You intend to register the handler by using the Web.config file.What should you do? (Choose two.)




Define an element inside the element




Define an element inside the element




Add a element to the element.




Add a element to the element.

Define an element inside the element


Add a element to the element.



You want to merge the results from two separate LINQ queries into a single result set. How would you accomplish this?




Use the DataContractJsonSerializer class.


Use the Concat method.


Use the ToList method.


Use the XElement class.

Use the Concat method.

BLANK

BLANK

You want to create a user control that will encapsulate basic data entry functionality and that will be reused across a site.What steps should you take? (Choose two.)




Create an ASPX file and use the @Register directive at the top of the page to indicate that the markup in the file is a user control.




Create a code-behind file for your user control that contains a class that inherits from System.Web.UI.UserControl.




Create a code-behind file for your user control that contains a class that inherits from System.Web.UI.Page.




Create an ASCX file and use the @Control directive at the top of the page to indicate that the markup in the file is a user control.

Create a code-behind file for your user control that contains a class that inherits from System.Web.UI.UserControl.




Create an ASCX file and use the @Control directive at the top of the page to indicate that the markup in the file is a user control.

You want to create custom code that will be run for each request made to a website. Which steps should you take? (Choose two.)




Override the Init method to connect your code to specific application events.




Override the ProcessRequest method to wire up your code to specific application events.




Create a class file that implements the IHttpHandler interface.




Create a class file that implements the IHttpModule interface.

Override the Init method to connect your code to specific application events.




Create a class file that implements the IHttpModule interface.

You are creating an AJAX component that does an asynchronous postback to the server for partial-page updates. You need your code to be notified when the partial-page response first comes back from the server. Which event should you intercept?




beginRequest


pageLoading


pageLoaded


endRequest

pageLoading




The pageLoading event fires when the postback first comes back from the server.

You want to execute a function after the DOM has loaded. This function should bind an event code to be run when the user presses a key on the keyboard inside a text box control with the textBox1 ID.Which steps should you take? (Choose two.)




Bind to the keyPress event by using this code:$("#textBox1").bind("keyPress", ())




Bind to the keyPress event by using this code:$("#textBox1").add("keyPress", ()).




Add your event binding code to the $(document).ready() event at the top of your script.




Add your event binding code to the $(document).load() event at the top of your script.

Bind to the keyPress event by using this code:$("#textBox1").bind("keyPress", ())




Add your event binding code to the $(document).ready() event at the top of your script.

You are working on a long data-entry webpage. In the middle of the page, you need to reach out to the server to get information based on a user's entry for a related field. However, you do not want the user to lose his or her focus or context within the page. Therefore, you decide to implement this feature by using the ASP.NET AJAX controls. Which of these controls must you add to the page to enable this scenario? (Choose two.)




AsyncPostBackTrigger


ScriptManager


ScriptManagerProxy


UpdatePanel

ScriptManager


UpdatePanel




UpdatePanel control will enable the portion contained inside the panel to update independently of the rest of the page.Every AJAX page must have a ScriptManager control to manage the JavaScript files sent to the client and the communication between client and server.

You need to write a control that will be used across multiple pages. This control should contain updated sales figures. The control should update itself at various intervals if a containing page is left open.Which controls should you use to enable this scenario? (Choose three.)




ScriptManagerProxy


ScriptManager


UpdatePanel


TImer

ScriptManagerProxy


UpdatePanel


Timer




An UpdatePanel control can be used to update only the portion of the page.A Timer control can be used to retrieve updates from the server on a periodic basis.The ScriptManagerProxy control is used to avoid conflict with a ScriptManager control that is already on a containing page.

You have an UpdatePanel control defined on a page. You need to indicate that a specified Button control outside of the UpdatePanel should cause the UpdatePanel to execute an update.Which steps should you take?




Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the ID of the Button control.




Set the AsyncPostBackTrigger attribute of the UpdatePanel to the ID of the Button control.




Add a Trigger control to the AsyncPostBackTriggers section of the UpdatePanel. Set the ControlID attribute of the Trigger control to the ID of the Button control.




Set the AsyncPostBackTrigger attribute of the Button control to the ID of the UpdatePanel.

Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the ID of the Button control.

You are creating a page that contains an UpdatePanel control for partial-page updates. You want to notify the user that the update is processing only if the update takes longer than five seconds.Which actions should you take?




Create a hidden <div> tag on your page that contains the text "Processing, please wait." Set the tag's ID to match that of the UpdatePanel. Set the UpdatePanel control's Interval property to 5,000.




Add a second UpdatePanel to the page. Set it to trigger based on the first UpdatePanel. Set the contents of this UpdatePanel to read "Processing, please wait."




Add an UpdateProgress control to the UpdatePanel. Set its DisplayAfter attribute to 5,000. Set its ProgressTemplate contents to read "Processing, please wait."




Add a ProgressBar control to the page. Write code on the server to call back to the client asynchronously to update the ProgressBar control after five seconds.

Add an UpdateProgress control to the UpdatePanel. Set its DisplayAfter attribute to 5,000. Set its ProgressTemplate contents to read "Processing, please wait."

BLANK

You want to use an HTTP GET to retrieve a basic text file from the server by using AJAX and jQuery.Which of the following jQuery methods would you use?




$.get()


$.post()


$getJSON()


$.getScript()



$.get()




The $.get() method sends an HTTP GET request to the server to retrieve HTML, text, XML, script, and JSON files.