1. Question: From within an ASP.NET page, you need to run a section of code only if the user haspreviously loaded the page and is submitting data as part of a form. Which Pageobject property should you use? [Textbook-70-515]

    A
    IsCallback

    B
    IsReusable

    C
    IsValid

    D
    IsPostBack

    Note: Not available
    1. Report
  2. Question: You are troubleshooting a problem users have when submitting information with a form.The form data does not appear in the web browsers address bar, but you know the webserver is receiving the form data. After capturing the web communications with a sniffer,which type of HTTP request should you examine to see the data the user submitted? [Textbook-70-515]

    A
    PUT

    B
    CONNECT

    C
    POST

    D
    GET

    Note: Not available
    1. Report
  3. Question: If you want to create a website on a remote computer running IIS 6.0 that does nothave Front Page Server Extensions installed, which website type will you create? [Textbook-70-515]

    A
    Remote HTTP

    B
    File system

    C
    FTP

    D
    Local HTTP

    Note: Not available
    1. Report
  4. Question: Joe created a new website by using Visual Studio 2010, setting the website typeto File, and setting the programming language to C#. Later, Joe received an elaboratewebpage from his vendor, which consisted of the Vendor.aspx file and theVendor.aspx.vb code-behind page. What must Joe do to use these files? [Textbook-70-515]

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

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

    C
    Both files must be rewritten in C#.

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

    Note: Not available
    1. Report
  5. Question: You want to make a configuration setting change that will affect only the current webapplication. Which file will you change? [Textbook-70-515]

    A
    The Web.config file that is in the same folder as the Machine.config file

    B
    The Web.config file in the root of the web application

    C
    The Machine.config file

    D
    The Global.asax file

    Note: Not available
    1. Report
  6. Question: You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the data that the action method returns. What should you do?

    A
    Add the following <outputCacheSettings> section to the web.config file. <system.web> <caching> <outputCacheSettings> <outputCacheProfiles> <add name="ProductView" duration="60" varyByParam="*"/> </outputCacheProfiles> </outputCacheSettings> </caching> </system.web>

    B
    Add the following line of code to the controller. Cache.insert("key", "ProductView", null, DateTime.Now.AddMinutes(60),TimeSpan.Zero);

    C
    Add the following attribute to the action method [OutputCache(Duration=60)];

    D
    Add the following directive to the top of the view <%@ OutPutCache Duration="60" VaryByParam="*" %>

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd