save up to 40%

MCSD to MCPD Enterprise Developer 70-553-CSHARP Short Notes: Exam Passing Tips

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

MCSD to MCPD Enterprise Developer 70-553-CSHARP Short Notes: Exam Passing Tips

Rating:

Developing applications that use system types and collections

  • An array of data is declared by using a value datatype with square braces and a variable name in which the array of data is to be stored.

  • A class is a reference type and its object is created on the heap. On the other hand, a structure is a value type and its object is created on the stack.

  • The CompareTo method of the IComparable generic interface returns a 32-bit signed integer value that indicates the relative order of the objects that is to be compared.

  • An interface describes a group of related behaviors that can belong to a class or a struct.
Embedding configuration, diagnostic, management, and installation features into a .NET Framework application

  • The Assert method of the Trace class is used to check condition and displays a message if the condition is false.

  • The Fail method of the Trace class emits an error message unconditionally.

  • The TraceError property of the TraceSwitch class returns true if Level is set to Error, Warning, Info, or Verbose; otherwise it returns false.

  • The TraceWarning property of the TraceSwitch class returns true if Level is set to Warning, Info, or Verbose; otherwise it returns false.

  • The WriteLineIf method of the Debug class is used to write a message with a new line character to the trace listeners in the Listeners collection if a condition is true.

  • The Call Stack debugging window is used for viewing the list of currently active procedure calls.

  • The Log method of the Debugger class writes tracing and debugging messages that are displayed in the output window of the IDE.

  • In order to resolve the issue of the logical error that had occurred in the Web form, an application program is executed step-by-step to get the exact location of the error.

  • Breakpoints are used in an application code to analyze why the code is generating errors.
Implementing serialization and input/output functionality in a .NET Framework application

  • The BinaryFormatter and FileStream classes are used in serialization to serialize and deserialize an object.

  • By default, a property or a field that returns an object or array of objects is automatically serialized.

  • The FileStream class is used to specify write, read, and other file-related operations either in synchronous or asynchronous manner.

  • The File class is an utility class and the FileInfo class is an informational class.

  • Whenever a changed, renamed, deleted, or created event is raised, the Watch_Changed method is called, which gives the output related to the Change Type and Full Path.

  • The FileInfo class contains methods to create, delete, copy, and move files and properties related to a file.

  • The IsolationLevel enumeration specifies the transaction locking behavior for a connection.

  • When IsolationLevel is specified as a parameter for the BeginTransaction method of the SqlConnection class, the method begins the transaction with the specified isolation level.

  • If the Serializable value is specified for the IsolationLevel enumeration, it prevents more than one user from updating the dataset until the transaction is complete.
Improving the security of .NET Framework applications by using the .NET Framework 2.0 security features

  • In the Packet Privacy authentication level, authentication and encryption of data are performed. This level includes data integrity and the identity and signature of a user.

  • The Custom Authentication with SOAP headers is suitable for both secure and non-secure Internet scenarios.

  • For user authentication, the user credentials in encrypted format are passed within the SOAP header of a SOAP message.

  • The TripleDESCryptoServiceProvider class is used to encrypt data in a file as well as in the memory.

  • In cryptography, Optimal Asymmetric Encryption Padding (OAEP) is a padding scheme, which is often used with RSA encryption.

  • Secure Sockets Layer (SSL) is a protocol developed by Netscape for transmitting private documents via the Internet.

  • Secure Sockets Layer (SSL) uses a combination of public key and symmetric encryption to provide communication privacy, authentication, and message integrity.

  • The IsSubSetOf method of the PrincipalPermission class is used to determine whether or not the current permission object is a subset of the specified permission object.

  • The PrincipalPermissionAttribute attribute applies to a class or method in order to declaratively demand for those users who belong to a specified role or have been authenticated.

  • The Union method of the PrincipalPermission class is used to create a permission object that is the union of the current permission object and a target parameter permission object.

  • The Demand() method is used to decide at runtime whether all callers in the call stack have been granted the permission specified by a current permission object by implementing class library.

  • The PermitOnly method of the FileIOPermission class is used to prevent callers higher in the call stack from using the code that calls a method to access resources that are not specified by the current instance.

  • The security policy levels in hierarchical order are Enterprise policy, Machine policy, User policy, and Application domain policy.

  • The GetCurrent method of the WindowsIdentity class returns a WindowsIdentity object representing the current Windows user.

  • WindowsPrincipal is a class of the .NET Framework class library, which is used to check the Windows group membership of a Windows user.

  • The IsInRole method of the WindowsPrincipal class is used to determine whether or not the current principal belongs to a specified Windows user group.

  • The value for the Windows user group, which is passed as a parameter for the IsInRole method, should be in the following form:
    DOMAINNAMEGROUPNAME or MACHINENAMEGROUPNAME

  • The generic role-based security is used to secure data from unauthorized users.

  • Role-based authorization uses the GenericPrincipal class to represent the roles of the current user.
Implementing interoperability, reflection, and mailing functionality in a .NET Framework application

  • The WebResponse class derived from the System.Net namespace is used to provide a response from a Uniform Resource Identifier (URI).

  • The WebRequest class derived from the System.Net namespace is used to make a request to a Uniform Resource Identifier (URI).

  • The MailAddress class specifies the source and destination e-mail address in two different objects.
Implementing globalization, drawing, and text manipulation functionality in a .NET Framework application

  • The PrintPage event of the PrintDocument component is raised when the current page content of a document is send to the printer.

  • The this.BackColor = Color.Transparent; statement will set the control's backcolor to transparent.

  • The this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); statement will enable the control to support a transparent backcolor.

  • The Bitmap class is used to change the color of an image.

  • The Brushes class contains static properties that allow a user to get a Brush object of different colors.

  • The Icon class contains nine constructors.

  • The FillRectangles method of the SolidBrush class is used to fill the interior of a rectangle.

  • The MinimumSize property of the Form class is used to get or set the minimum size up to which a form can be resized.

  • The Size property of the Form class is used to get or set the size of a form.
Creating and Programming a Web Application

  • The EnableViewState attribute of the @ Page directive indicates whether or not the view state is maintained across page requests.

  • The AutoPostBack property of the TextBox control specifies whether or not an automatic post back to the server will occur whenever the content of a text box is changed.

  • The Click event is used to programmatically control the actions performed on a Web page when the Submit button is clicked.

  • Web server controls are used for advanced functionality and a more consistent programming model than HTML server controls.

  • An advertisement file ensures security in order to prevent from being tampered by any unauthorized user.

  • The CellPadding property of the Calendar Web server control is used to set the spacing between the contents of a cell and its border. By default, the property value is set to 2.

  • In the @ Page directive, the EnableViewState attribute is set to false in order to disable the view state of a Web application in the Web.config file.

  • The CheckedChanged event of the CheckBox control is raised when the value of the Checked property is changed between posts to the Web server. The event will post back to the server only when the AutoPostBack property is set to true.

  • The FileUpload control allows a user to upload pictures, text files, or other files from a computer to a Web server.

  • The AutoPostBack property of a server control is set to false for postback manually in response to a specific event.

  • 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 Image Web server control can specify a graphics file both at design time and at runtime programmatically. It can also specify different types of text for displaying images on a Web page.

  • ImageMap Web server control defines several regions known as hot spots within the control. On the other hand, the ImageButton control does not define any region within the control.

  • The Label Web server control displays text in a specific area on a Web page. Although the control cannot receive the user input focus, it can be used as an active caption in front of other Web server controls such as the TextBox and Button controls.

  • The Panel Web server control acts as a container or a parent for static texts and other Web server controls in a Web page. It creates specific areas on a Web page to provide custom appearance to other server controls.

  • To set the login and password authorization for users, the following is performed:
    The forms-based authentication is enabled in the Web.config file.
    Anonymous users will be denied from accessing the site by making necessary changes in the Web.config file.
    Finally, a login page will be created that will allow users to enter credential information that can then be authenticated.

  • The users attribute of the <deny> element specifies the user names that are denied access to a resource. Setting this attribute to "?" denies anonymous or unauthorized users from accessing the application.

  • The allowOverride attribute of the <location> element specifies whether or not the configuration settings in child directories are overridden by configuration settings in the Web.config file.

  • The <customErrors> element provides information about custom error messages for ASP.NET applications. The mode attribute of the <customErrors> element specifies whether custom errors are enabled, disabled, or shown only to remote clients.

  • The <appSettings> element is a predefined configuration section of the .NET Framework, which contains custom application settings. Each element added to the <appSettings> element has a key attribute and a value attribute.

  • The authentication element in the Web.config file is added to identify users to view an ASP.NET application.

  • Tracing can be enabled for an application by using the <trace> element. The settings of the Web.config file override the settings of the Machine.config file.

  • The roles attribute of the <allow> or <deny> element is used to specify a comma-separated list of roles that are granted or denied access to a resource.

  • A new Web.config file can be created for a Web application by using the Web Site Administration Tool.

  • The Execute method of the HttpServerUtility class is used to execute a request to another page using a specified URL path to the page. It continues to execute the original page after completing the execution of the new page.

  • A Page_Error event handler is created at the page level when an unhandled exception occurs in code that does not contain try/catch block in a Web application during execution.

  • The Transfer method of the HttpServerUtility class terminates execution of the current page and begins execution of a new page.

  • An HTML server control can be converted to an HTML element by right-clicking the control and uncheck the mark next to the Run As Server Control drop-down menu option. It can be converted also by deleting the runat="server" attribute from the tag of the control in the source code.

  • When a user requests data from the current Web page, he is redirected to the target Web page programmatically on a Web server by calling the Transfer method. The method terminates the execution of the current Web page and starts the execution of a new Web page.
Integrating Data in a Web Application by using ADO.NET, XML, and Data-Bound Controls

  • The ImageUrlField property of the AdRotator class sets a custom data field to be used and replaces the ImageUrl attribute for an advertisement.

  • The SqlDataSource data source provides binding data to ODBC, OLEDB, SQL Server, Oracle, or databases that use the SQL language.

  • The FormView control displays a single data record from a data source in a table. It displays only user-defined templates instead of row fields.

  • The SqlDataAdapter class represents a set of data commands and a database connection that are used to fill a DataSet and update a SQL Server database.

  • The SqlCommand class represents a transact-SQL statement or stored procedure to be executed at a SQL Server database.

  • The SqlConnection class represents an open connection to a SQL Server database.

  • The Min Pool Size value of the ConnectionString property of the SqlConnection class is used to specify the minimum objects in the connection pool.

  • The SqlConnection class represents an open connection to a SQL Server database.

  • ADO.NET supports connection pooling where the SqlConnection class is used to increase the performance of the application.

  • The OleDbConnection class represents an open connection to an OLE DB data source, a Microsoft SQL Server 6.x database, or earlier version.

  • The OleDbCommand class represents a stored procedure or a SQL statement to execute at a data source.

  • Label1.Text = SqlCommand1.Parameters["@Total"].Value.ToString(); statement will retrieve the value of the @Total parameter, convert it to a string value, and set the string value for the Text property of Label1. The Text property of the Label control specifies the text content of the control.

  • The SqlDataReader class avoids creating unnecessary objects or making unnecessary copies of data. Hence, it provides optimal performance.

  • The ExecuteScalar method of the SqlCommand class is commonly used to execute aggregate functions such as COUNT, SUM, etc., on a table.

  • The Read method of the SqlDataReader class advances the data reader to the next result. It returns true if there are more results to be returned, otherwise it returns false.

  • The CommandText property of the OleDbCommand class is used to get or set the stored procedure or SQL statement that is to be executed at the data source.

  • The Connection property of the OleDbCommand class is used to get or set the OleDbConnection that is used by an instance of the OleDbCommand class.

  • The SQL Server database version 6.5 can be upgraded to later version in order to improve performance of program code.
Creating Custom Web Controls

  • A Web user control creates the control using the same technique, which is used in the creation of web form pages.

  • A Web user control has both the user interface and a code-behind file and cannot be added to the Visual Studio.NET Toolbox. If multiple applications need to use a Web user control, a separate copy of the control is required in each application.

  • A Web page can be converted to a user control via code by the following manner:
    1. Change the extension of the Web page from .aspx to .ascx.
    2. Create the @ Control directive at the top of the page, instead of the @ Page directive.
    3. Remove the <html>, <body>, and <form> elements from the ASP.NET code.

  • A user control page by using Visual Studio 2005 by selecting Website > Add New Item menu option.

  • A Web page can be modified and converted into a user control by using Visual Studio 2005.

  • When a user control is added to a Web page, the Web Designer creates the @ Register directive in the source code of the Web page.
Tracing, Configuring, and Deploying Applications

  • The Copy Web Site tool copies files between a current Web site and another Web site.

  • The Copy Web Site tool supports a synchronization feature that examines the existing files on current and remote Web sites and ensures that all the files are up-to-date.

  • The Duration attribute of the @ OutputCache directive specifies the amount of time (in seconds) for which a control is cached.

  • ASP.NET controls the enabling or disabling of tracing both at the page-level and at the application-level.

  • The TraceMode attribute of the @ Page directive specifies the order in which the trace information is to be displayed. It can be sorted either by the Category column (SortByCategory) or by time column (SortByTime).

  • The Cache object implements the cache for a Web application.

  • The 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.

  • The Duration and VaryByParam attributes is used in the @ OutputCache directive so that a parser error does not occur when a Web page is first requested.

  • Tracing can be enabled or disabled for a page by using the Trace attribute of the @ Page directive.

  • The EnableSessionState attribute in the @ Page directive defines session-state requirements for a Web page.

  • The Trace.axd Http handler is used to view the trace details of an application by setting the value of requestLimit="[n]" in the application's configuration file.

  • The output caching is a technique that allows subsequent requests for a particular page so that the code that initially creates the page does not need to be run upon subsequent requests.

  • Errors in the application can be avoided by the following:
    1. Responding to health monitoring events
    2. Using a debugger to the process in which the application is running
    3. Using a tracing feature
Customizing and Personalizing a Web Application

  • All the Web pages of the application can be declaratively attach to a specified master page.

  • The advantages of using a master page are as follows:
    1. It centralizes the common functionality of all the pages of a Web application.
    2. It easily creates one set of controls and code in order to apply the results to a set of Web pages.
    3. It gives control over the layout of the final Web pages.
    4. It provides object models to customize the master pages from all content pages.

  • Page events are raised in both the master and content pages simultaneously while making a proper sequence of the page and control events.

  • An application or a page theme is created within a Web application so that all the Web pages of the application can have the same appearance.

  • A skin is an element of theme and is stored in the Theme folder with a .skin file extension.

  • A default skin is automatically applied to all controls of the same type. On the other hand, a named skin has to be explicitly applied to a control by setting the SkinID property of the control.

  • 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.
Implementing Authentication and Authorization

  • When cookieless forms authentication is used, the CookieMode property is set to one of the values of the HttpCookieMode enumeration.

  • In order to enable the forms athentication mode for the application, some modification needs to be made in the Web.config file that is an application's root directory file.

  • The timeout attribute of authentication specifies an integer value that denotes the time (in minutes).

  • The slidingExpiration attribute of authentication specifies that the session timeout is periodically reset as long as a user stays active on the site.

  • A session cookie can be used as a user preference so that important information of a Web site is provided to users.

  • The UrlAuthorizationModule class of the System.Web.Security namespace is used to provide URL-based authorization services to allow or deny access to specified resources.

  • The LoginStatus control is a login control that displays a login link for unauthenticated users and a logout link for authenticated users.

  • The Login control displays a user interface on a Web site to authenticate users. It is used to prompt a user for a user name and a password in text boxes.

  • ASP.NET login controls can be used both for unauthenticated and authenticated users by implementing them on a Web page.
Creating ASP.NET Mobile Web Applications

  • A cookieless session is implemented on a mobile Web application to ensure that a mobile Web site is compatible with mobile devices of several users.
Creating a UI for a Windows Forms Application by Using Standard Controls

  • The CreateControl method of a GroupBox control is used to force the creation of a copy of the control with all its child controls.

  • The TabStop property of a control indicates whether a user can use the TAB key of the keyboard in order to move the focus of a control on a form.

  • The AutoScroll property of a Panel control displays scroll bars when independent controls are hosted in the panel, but outside the visible bounds of the Panel control.

  • The FlowLayoutPanel control arranges its contents and creates a layout that flows horizontally or vertically.

  • The SplitContainer control can be used to create complex user interfaces. It is useful for users to display and browse information.

  • The Capture property of the ComboBox class is used to get or set a value that indicates whether or not a control has captured the mouse.

  • A method bound to an event is known as an event handler. It executes when the associated event is raised.

  • The Text property of the MenuItem class specifies the text to be displayed as the caption for a menu item.

  • The AddRange method of the Control.ControlCollection class is used to add an array of controls to a collection. It is also used to add a single control to a collection.

  • Shortcut keys or accelerator keys are keys or key combinations that users can press for quick access to actions they perform frequently.

  • The MaxLength property of a TextBox control is used to specify the maximum number of characters that can be entered into the text box control.

  • The TextBox control added dynamically to a Windows form has the default height and width. By default, the Visible property of the TextBox control is set to true.

  • The ComboBox component is a standard HTML drop-down, scrollable list. When a user clicks the component instance, a list of options appears from which only one option can be selected.

  • The top-level menu items can have the same access keys. If the same key is defined as an access key for more than one menu item, the user has to hold down the ALT key and the access key to move from one menu option to another.

  • Controls can be added to a Windows form at runtime via code.

  • Controls can be added to a Windows form at design time by four different techniques. They are as follows:
    1. Select View > Toolbox menu and double-click the control to be added.
    2. Select View > Toolbox menu, select the control to be added and double click the form.
    3. Select a control in the View > Toolbox menu and draw it on the form with the help of the mouse.
    4. Select a control in the View > Toolbox menu and drag it to the form.

  • The IsCheckable property of the MenuItem class is used first in a Windows form, as it returns a value to indicate whether or not a MenuItem can be checked.

  • The IsChecked property of the MenuItem class is then used, as it sets or returns a value to indicate whether or not the MenuItem is checked when a user clicks on the menu item.

  • The CloneMenu method of the MenuItem class can be used to create copies of the specified menuitems.

  • The Select event of the MenuItem class is raised when a menu item is highlighted using a mouse or keyboard. This event can be used to set the help text for menu items.

  • Context menus or pop-up menus are shortcut menus that appear only when a user clicks the right mouse button over a control or a form. They are built using the ContextMenu class.
Integrating Data in a Windows Forms Application

  • The TabStop property of a control indicates whether the control will receive focus as the user tabs through a window by using the TAB key.

  • The DataBindings property of the TextBox control is used to bind the control with the data source.

  • The bound mode used by a DataGridView control is suitable for managing data by using automatic interaction with a data store. In this mode, unbound columns can also be added to a DataGridView control.

  • The unbound mode is suitable to display small amounts of data that can be managed programmatically. A DataGridView control does not require to be attached directly to a data source.

  • The DataGridView control replaces the DataGrid control, as it adds more functionality to the DataGrid control.

  • The SqlConnection.BeginTransaction method starts a database transaction.

  • The SqlTransaction.Connection property returns a SqlConnection object in association with a transaction that can take place for each new database connection.

  • The Connection Timeout parameter of the ConnectionString property specifies the time period (in seconds) required to wait for a connection to the server.

  • The Max Pool Size parameter of the ConnectionString property determines the maximum number of connections allowed in the connection pool.

  • The XmlReader class defines properties that are used to retrieve information about the name and content of the current node.

  • The Namespace property of the DataSet class is used to specify the namespace of a DataSet object.

  • SQL Server 2000 supports the FOR XML clause with the SELECT statement.

  • The FOR XML clause instructs the SELECT statement to return the query result in an XML format instead of a tabular format.

  • The WriteXml method of the DataSet class is used to write XML schema and data from a DataSet object in XML format.

  • An XmlReader class is created to display the XML file from a database. The Read method is implemented in order to read data from the XML file.

  • To validate XML data by using the XmlValidatingReader class is now obsolete in .NET Framework 2.0. Instead the XmlReader class is used to validate XML data.
Enhancing Usability

  • The Active property of a ToolTip control determines whether the ToolTip control is currently active or not.

  • The properties of a Windows Form control can be set by using the PropertyGrid control at runtime.

  • The VScrollBar control represents a vertical scroll bar within the ScrollBar control.

  • The HScrollBar control represents a horizontal scroll bar within the ScrollBar control.

  • The Maximum property of the ProgressBar control sets the maximum value of the range of the control. It specifies the upper limit of the Value property.

  • The ToolStripStatusLabel control represents an individual panel of a StatusStrip control.

  • The HelpProvider component associates a help file with a Windows application and provides help to users in different ways.

  • The ErrorProvider component provides feedback to a user when an error condition occurs due to invalid data entry. It displays an error icon next to a control such as a text box or a list box.

  • The Interval property of the Timer component is used to get or set the time (in milliseconds) between the timer ticks in an application.
Implementing Asynchronous Programming Techniques to Improve the User Experience

  • The RunWorkerAsync method of the BackgroundWorker component starts the execution of a background operation by raising the DoWork event.

  • The RunWorkerCompleted event of the BackgroundWorker component is raised to announce the completion a background operation.

  • The WorkerSupportsCancellation property of the BackgroundWorker component sets or obtains a value to indicate whether the BackgroundWorker object supports asynchronous cancellation. When the property value is true, the CancelAsync method is called in order to interrupt a background operation.

  • When the WorkerReportsProgress property value is set to true, the ReportProgress method is called in order to raise the ProgressChanged event.

  • The IsBusy property of the BackgroundWorker component obtains a value to indicate whether the BackgroundWorker object is running an asynchronous operation.
Configuring and Deploying Applications

  • In the .NET Framework version 2.0, the ClickOnce deployment technique is most appropriate for deploying Windows-based applications.

  • ClickOnce is a deployment technology that allows a user to create self-updating Windows-based applications

  • The three different deployment strategies for deploying a ClickOnce application are the following:
    1. Installing a Windows-based application from the Web or a Network Share
    2. Installing the application from a CD
    3. Starting the application from the Web or a Network Share.

  • The ClickOnce technology overcomes three major deployment issues. These issues include difficulties in updating Windows-based applications, dependence of multiple application programs on shared components, and allow permissions only to administrative users for application installations.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.