The Code for the Customers Hyperlink

When the user clicks on the Customers hyperlink, the Customer.aspx page is loaded in the browser, as shown in Figure 29-11. r a Jwu jWI .-J h Mwl1 U' UP*.' 4K' m tir C tesl Movsa Jlrai ififr ri fyteni cn < c iNt . P Jn HC format IkrJinti'lllnl j FM 1A I jlV IffpVft Cd Lc *mi Jam iWia* 1Z ftifcSMIUt at I IMPESIS m tir C tesl Movsa Jlrai ififr ri fyteni cn < c iNt . P Jn HC format IkrJinti'lllnl j FM 1A I jlV IffpVft Cd Lc *mi Jam iWia* 1Z ftifcSMIUt at I IMPESIS l l'j i 4 < -sTi -ll t.Hh h...

High Level Design

As discussed in Chapter 9, in the high-level design phase, the team decides on the functionality of the system. In addition, the various data input and output formats are finalized, and the operating requirements are identified. Figure 22-1 displays the Web page for the customer interface. Because this is the first Web page of the Web application, it will be referred to as the home page. This page provides options for registered customers as well as new customers. hi-TM dJlrii jiL.J. ....

The Main Form

As the name suggests, the Main form is the startup form of the Administration module. The Main form is also the central location from which the administrator can perform the following tasks Maintain and update the tables in the database Figure 17-1 The interface of the Main form The properties you need to assign to the Main form are as follows Figure 17-1 The interface of the Main form The properties you need to assign to the Main form are as follows As shown in Figure 17-1, the Main form...

Creating a Localized Application Using VBNET

You can create a localized version of an application without modifying the application code. As previously discussed, all the text and localizable resources are kept in resource files. Visual Basic.NET provides the Localizable property for Windows forms to create localized applications. The Visual Studio.NET project system automatically adds a neutral resource file to the project when the Localizable property is set to True. The file name is the same as that of the form and the extension RESX....

Coding the Exit Button

Add the following code to the Click event of the Exit button. This code will enable the application to terminate when the user clicks on the Exit button. Private Sub BtnExit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnExit.Click Listing 32-1 provides the complete code for the MyMovies.vb file. Imports System Imports System.IO Imports System.Collections Imports System.Drawing Imports System.ComponentModel Imports System.Windows.Forms Imports System.Data Imports...

The Place Order Form

As previously mentioned, the Place Order form enables customers to place orders for movies. When a customer selects a movie in the Search form and clicks on the Place Order button, the Place Order form displays. Figure 12-13 shows the Place Order form. To start with, take a look at the properties you need to assign to the Place Order form. They are as follows To start with, take a look at the properties you need to assign to the Place Order form. They are as follows As shown in Figure 12-13,...

Project Life Cycle

The development of a project actually starts when there is a need to develop or significantly change an existing system. In the case of MyMovies, there is a need to regain the company's lost monopoly in the video market. In other words, they need to change their existing old-age system of catalogs. The development life cycle of a project involves three phases In the project initiation phase, a comprehensive project plan is prepared. This plan lists the tasks to be performed during the life...

Creating a Simple Web Service in the NET Framework

This section will show you how to create a simple Web service in the .NET framework. This Web service will contain a default HelloWorld Web method. The following tasks will be involved when creating the Web service Create a blank Web service project. Create the appropriate Web methods in the Web service. Compile and test the Web service. Let's name this Web service as MyFirstWebService. You can create a Web service by using the ASP.NET Web Service template in the New Project dialog box. In the...

Changes in the Upgraded Project

To view changes made to the upgraded project, you need to view its code. To view the code, double-click the Form1.vb file in the Solution Explorer window. The form displays in the designer. Select Code from the View menu to view the code associated with the form. Listing 8-2 contains the code for the upgraded project. Listing 8-2 The PrjLenConversion.NET Project Listing 8-2 The PrjLenConversion.NET Project Option Explicit On Friend Class LenConverter 'Added by the Visual Basic Upgrade Wizard...

The Message Box Class

You can display messages which can contain text, buttons, and symbols using the MessageBox class. This class is contained in the System.Windows.Forms namespace and provides various methods such as Show, ToString, and Equals. However, the most common method is the Show method. As the name suggests, the Show method is used to display a message box. This method has been overloaded in the class. This means that many forms are available in the class for this method. This section examines one of the...

The Custom Validator1Server Validate Function

The code for the CustomValidator1_ServerValidate function is as follows Private Sub CustomValidator1_ServerValidate ByVal source As System.Object, ByVal args As Handles CustomValidator1 .ServerValidate Dim sConnectionString As String Dim sqlString As String Dim MyDataAdapter As SqlDataAdapter Dim DS As New DataSet sConnectionString Application strConnect sqlString Select from Customer where CustID ' args.Value MyConnection New SqlConnection sConnectionString MyDataAdapter New SqlDataAdapter...

The Insert Customer Form

The administrator can use the Insert Customer form to add records to the Customer table. Figure 20-6 shows the Insert Customer form. Figure 20-6 The interface of the Insert Customer form Before you write the code for the Insert Customer form, you need to import namespaces and declare the variables in the form. Similar to the forms already discussed, the Insert Customer form contains the following functions SetUpdatelD FrmlnsertVideo Load CmdSubmit_Click CmdCancel_Click The complete code for the...

The Insert Movie Form

The Insert Video form enables the administrator to add records to the Movie table. Figure 20-5 displays the Insert Movie form. Movie ID Movie Title Drector ID Producer ID Duration Description Category Release Year Figure 20-5 The interface of the Insert Movie form Just as you imported namespaces and declared variables in the preceding forms, you need to do so in the Insert Movie form. In the Insert Movie form, you need to import the same namespaces and declare the same variables as you declared...

The Cmd DeleteClick Function

The administrator also can delete records by using the Update Delete form. To delete a record, the administrator needs to click on the Delete button in the Update Delete form. When the administrator clicks on the Delete button, the CmdDelete_Click function executes. The CmdDelete_Click function prompts the administrator to confirm the deletion of the selected record. If the administrator clicks on the Yes button in the message box, the selected record is deleted from the database. The code of...

The Input Box Function

As the name suggests, the inputBox function is used to accept input from the user. InputBox Prompt, Title , Default , X , Y Prompt is the prompt or message to be displayed. If the message is more than one line, you can use the carriage return character Chr 13 and the linefeed characters Chr 10 to separate the lines. Title is the text to be displayed in the title bar of the input box. It is optional, and if omitted, the name of the application appears in the title bar. Default is the default...