Programming Web Applications (17 percent)

  • Customize the layout and appearance of a Web page
    • ASP.NET Themes and skins overview
    • Control.SkinID
    • App_Themes folder
    • How to: Apply ASP.NET themes
    • How to: Apply ASP.NET themes programatically
    • How to: Define ASP.NET page themes
    • How to: Customising a web site using themes
    • <pages> element
    • @Page directive
    • Page.StyleSheetTheme
    • Page.Theme
    • ASP.NET MasterPages overview
    • Page.MasterPageFile
    • @MasterType directive
    • Nested ASP.NET MasterPages
    • How to: Reference ASP.NET MasterPage content
    • Working ASP.NET MasterPages programatically
    • Events in ASP.NET Master and Content pages
    • Page.Master property
    • ASP.NET Web Parts overview
    • WebPartZone class
      • Control overview
    • WebPartManager class
      • Control overview
    • WebPart class
    • Web Part Server controls overview
    • ASP.NET Web Parts life cycle
    • Walkthrough: Creating a web parts page
    • Web Parts page display modes
    • Web Parts personalization overview
    • Web Parts connections overview
    • Securing Web Parts pages
    • Using ASP.NET Server Controls in Web Parts Applications
    • Web Parts Control Description Files
  • Work with ASP.NET intrinsic objects
    • Application object
    • HttpContext object
    • Response object
    • Request object
    • Server object
    • Session object
    • IIS Server variables
  • Implement globalization and accessibility
    • Globalization overview
    • ASP.NET web page resources overview
    • Creating resources
    • Retrieve resource values programmatically
    • Using resources for localization
    • Page.Culture Property
    • Page.UICulture property
    • globalization element
    • Set the culture and UICulture
    • RegionInfo
    • App_GlobalResources folder
    • App_LocalResources folder
    • TabIndex
    • AccessKey
    • Image.AlternateText
    • Image.GenerateEmptyAlternateText property
    • Label.AssociatedControlID
    • Creating an accessible web site
    • Select an encoding for ASP.NET web page globalization
    • Accessibility support in ASP.NET
  • Implement business objects and utility classes
    • App_Code folder
    • Shared code folders
    • codeSubDirectories element
  • Implement state
    • ASP.NET caching overview
    • Cache class
      • Add items to the cache
    • Caching ASP.NET pages
    • Caching Application data
    • @OutputCache
    • Cache configuration in ASP.NET
    • Session state overview
    • Session State modes
    • Saving values in session state
    • Reading values from session state
    • Application state overview
    • ASP.NET Cookie overview
    • ASP.NET ViewState overview
    • Control state (in ASP.NET State overview)
    • Control State
    • Control State vs View State
  • Handle events and control page flow
    • Page Events
    • Page.IsPostBack
    • Application Events
    • ASP.NET Web Server Control Event Model
    • Server Event handling overview
    • Session State events
    • Cross Page Posting
    • Response.Redirect
    • Server.Transfer
    • Redirecting users
    • AutoEventWireup
    • HTTP Handlers and Modules overview
    • @WebHandler
    • Register HTTP Handler
    • httpHandlers section
  • Implement the Generic Handler
    • HTTP Handlers and HTTP Modules Overview
    • IHttpHandler
    • IHttpHandlerFactory
    • How to: Register HTTP Handlers
    • How to: Configure an HTTP Handler Extension in IIS.
    • Walkthrough: Creating and Registering HTTP Handler Factories.
    • ASP.NET Application Life Cycle Overview for IIS 7.0.
    • Walkthrough: Creating an Asynchronous HTTP Handler
    • How to: Configure an HTTP Handler Extension in IIS
    • How to: Register HTTP Handlers
Share
Tagged with:
 
  • The Theme attribute of the Page directive is used to get or set the name of the page theme.
  • Session object pertains to an individual user’s session with an application. It is used to store and retrieve information during a specific session for a user.
  • In the Web.config file, set the Theme attribute of the pages element to the theme name, to apply the theme to override any settings of individual controls.
  • The WebPartManager control manages controls, functionality, and events of the Web Parts. It manages the controls on a Web page that provides features of Web Parts. It switches between page views by enabling a user to change page layout or edit controls on a Web page.
  • In the Web.config file, set the Theme attribute of the pages element to the theme name, to apply the theme to override any settings of individual controls.
  • Cascading Style Sheet (CSS) provides greater control over the appearance and presentation of the Web pages and also enables to precisely specify the display attributes and the appearance of elements on the Web pages.
  • External Style Sheets are used whenever consistency in style is required throughout a Web site.
  • The ApplyStyle method of the WebControl class applies any non-blank elements of the specified style to a Web control. It also overwrites the existing style elements of the control.
  • All the Web pages of the application can be declaratively attached to a specified master page.
  • A Web part is an integrated set of control that creates Web sites so that a user can easily modify the contents, appearance, and behavior of all Web pages directly from a Web browser.
  • The @ Page directive is used to specify control-specific attributes that are used by the ASP.NET page compiler. The trace attribute of the @ Page directive indicates whether or not tracing is enabled for a page.
  • User profiles for unauthenticated or anonymous users are not enabled by default in the Web.config file. Therefore, they must explicitly be made available individually for anonymous users. A unique user identification created by ASP.NET is stored in a cookie on the user’s computer so that the user can be identified with each page request.
  • Use the BufferResponse property of the WebMethod attribute to serialize the Web method to response into a memory buffer until the response is completely serialized, which is returned back to the Web service clients over the network.
  • Use the CacheDuration property of the WebMethod attribute to specify the number of seconds for which the response should be held in the cache. The default value for this property is zero.
  • Use the Cache object to store the product information in the memory of the computer, to enhance the performance of MyWebService.
  • The RegionInfo class is used to contain information about a country/region. It does not represent fondness of a user and does not depend on the user’s language or culture. Its name is one of a two-letter code defined in ISO for country/region.
  • The GetGlobalResource method is used to get resource value for resource name from specified file.
  • The RegionInfo class is used to contain information about a country/region. It does not represent fondness of a user and does not depend on the user’s language or culture.
  • The ToolTip property of the WebControl class is used to display a text when the mouse pointer hovers over a Web server control.
  • The AlternateText property of the Image class specifies the alternate text to be displayed in the Image control if the browser does not support the ToolTip feature or the image is unavailable.
  • The culture attribute of the element is used to specify the default culture for processing incoming requests from the Web site.
  • The CultureInfo class is used to represent information about a specific culture including the language, the writing system, the calendar used, etc.
  • A HyperLink control is a Web server control that displays a link to another Web page. Clicking on the hyperlink opens the linked Web page.
  • The NavigateUrl property of a HyperLink control is used to specify the URL to navigate to when it is clicked.
  • The AccessKey property of a Web server control is used to specify the access key for the control. This property can be set to only a single character string.
  • The globalization section of the Web.config file configures the globalization settings of an application. The culture attribute of the globalization section specifies the default culture for processing incoming requests from the Web.
  • The AlternateText property of an Image control is used to specify an alternate text to be displayed in the Image control. This text is displayed in the Image control when the image specified by the ImageUrl property is not available.
  • The ImageUrlField property of the AdRotator class sets a custom data field to be used and replaces the ImageUrl attribute for an advertisement.
  • The culture and UI culture values can be set for a Web page declaratively.
  • The culture and user interface culture attributes can be set for a Web page programmatically.
  • Gather regional information about customers in a particular country by implementing the RegionInfo class.
  • The culture attribute of the globalization section is used to specify the default culture for processing incoming requests from an application.
  • The App_Code folder can store as many files and subfolders as required by a user. The App_Code folder can store source code in it, and the source code will be automatically compiled at run time.
  • The Al.exe (Assembly Linker) tool is used to compile a satellite assembly.
  • The Page.RegisterRequiresControlState method is used to register a control as one whose control state must be persisted. Custom controls that exploit control state have to call the Page.RegisterRequiresControlState method on each request.
  • Use the cache classes to implement the cache for a Web application and add to the Cache object, and when the cache object is modified it should be added to Session object.
  • The EnableSessionState attribute of the @ Page directive is used to define session-state requirements for a Web page.
  • A session cookie can be used as a user preference so that important information of a Web site is provided to users.
  • The EnableSession property of the WebMethodAttribute class is used to enable session state for an XML Web service method.
  • The @ OutputCache directive controls the output caching policies of an ASP.NET page or a user control contained in an ASP.NET page.
  • The Duration and VaryByParam attributes are used in the @ OutputCache directive so that a parser error does not occur when a Web page is first requested.
  • The EnableSessionState attribute in the @ Page directive defines session-state requirements for a Web page.
  • At the page level, setting the EnableViewState attribute of the @ Page directive to false can disable the view state. For example: <%@ Page EnableViewstate="False" %>
  • The ControlState property of a Web page retains control property information during multiple round trips to the server.
  • The application state server-based technique for storing state management information is used when infrequently changed global information that is used by many users needs to be stored.
  • The RewritePath is an overloaded method that is used to redirect a request for a resource to a different path than the one that is specified by the requested URL.
  • The HttpContext.RewritePath method is used to assign an internal rewrite path.
  • The Server.Transfer() method is used to navigate from one page to another. When the method is called, execution of the first page is terminated and execution of the second page begins. It passes the page information, such as input field values, to the second page.
  • The AutoPostBack property of the TextBox control specifies whether or not an automatic postback to the server will occur whenever the content of a text box is changed. This property works properly only if a browser is set to allow scripting.
  • The IsPostBack property of the Page class can be used to get a value that tells whether a page is loaded in response to a client postback or it is loaded for the first time. It returns false if the page is loaded and accessed for the first time.
  • The Transfer method of the HttpServerUtility class terminates execution of the current page and begins execution of a new page.
  • The built-in HTTP handlers in ASP.NET are ASP.NET page handler (*.aspx), Web service handler (*.asmx), Generic Web handler (*.ashx), Trace handler (trace.axd).
  • The uses of custom HTTP handlers are RSS feeds and Image server.
  • The uses of HTTP modules are Security, Statistics and logging, and Custom headers or footers.
Share
Tagged with: