Create or find appropriate images for the salary calculator


User Input Web Pages assignment description:

STEP 1: frmPersonnel

Open the payroll system website from Lab 1.

Create a new form called frmPersonnel. To do this, pull down the website menu, select "Add New Item," then type frmPersonnel.aspx for the name.

Go to the Design mode of the form by clicking the Design tab (as opposed to the Source tab).

Copy/paste this text for the cool biz production logo onto the form at the very top. Set the alignment to center by highlighting the text then clicking Format, Justify, Center. You can switch to Source view and add the following HTML to create the logo:

From the ToolBox, drag-and-drop a Panel control underneath the logo text.

Click the A/Z button in the Properties dialog so that all the properties are sorted alphabetically.

Change the height property of the Panel to 250px and the width to 300px. To do this, select the Panel, then go to the Properties pane (usually in the lower right corner of the Visual Studio.NET Design view; if you don't see it, click View Properties Window OR press the F4 key).

Scroll down the list, then type the value in for each property.

Change the panel's HorizontalAlign property to left.

Save your work!

From the ToolBox, drag-and-drop five Labels and five TextBoxes onto the Panel. To make each Label/TextBox pair appear on a separate line, put the cursor after each TextBox then press the [ENTER] key (much like you would with a word processing program).

From the ToolBox, drag-and-drop two buttons onto the Panel below the last Label and TextBox.

Save your work!

Test your web page. Press F5, or click the Start Debugging (Citrix users, press "Start Without Debugging") button on the toolbar, or pull down the Debug menu and select Start Debugging.

NOTE: To execute the application, you have these options:

If you are using Citrix, press CTRL + F5 to Start Without Debugging. You will not be deducted points for this part.

If you are using a standalone version, press F5 to Start with Debugging, or you can press CTRL + F5 to Start Without Debugging

Rename the Label's properties as defined below. You can do this by selecting each Label, scrolling to the property, and then typing in the value.
Property
Value
Label1 - Text
First Name:
Label2 - Text
Last Name:
Label3 - Text
Pay Rate:
Label4 - Text
Start Date:
Label5 - Text
End Date:

Rename each TextBox's property as defined below. You can do this by selecting each TextBox, scrolling to the property, and then typing in the value.
Property
Value
TextBox1 - (ID)
txtFirstName
TextBox2 - (ID)
txtLastName
TextBox3 - (ID)
txtPayRate
TextBox4 - (ID)
txtStartDate
TextBox5 - (ID)
txtEndDate

Change each button's ID and Text properties as defined below. You can do this by selecting each button, scrolling to the property, and then typing in the value.

Property
Value
Button1 - (ID)
btnSubmit
Button1 - Text
Submit
Button2 - (ID)
btnCancel
Button2 - Text
Cancel

In order to format the TextBoxes and Labels, we will make them the same size. Bring up the Layout Toolbar by clicking View, Toolbars, Layout.

Highlight each Label by pressing and holding the keyboard Ctrl button and then clicking each Label. Make sure you click on the longest Label last.

Click the icon "Make Same Width" on the Layout Toolbar. (You may also select Format and then Make Same Size and then select width).

Save your work!

Test your work by running it (press F5 or click the Start Debugging button, or click Debug, Start Debugging).

STEP 2: frmPersonalVerified

Create a new web form called frmPersonalVerified.aspx

Click the Design tab for the frmPersonalVerified.aspx and add a Label and a TextBox. Set the properties as follows:
Property
Value
Label - Text
Information to submit
Textbox - (ID)
txtVerifiedInfo
Textbox - Height
80px
Textbox - Width
400px
Textbox - TextMode
Multiline

Double-click anywhere on a blank part of the web page to open the code portion. The cursor should be in the protected void Page_Load (object sender, EventArgs) function. Enter the following information:

//Add your comments here

txtVerifiedInfo.Text = Request["txtFirstName"] +

"\n" + Request["txtLastName"] +

"\n" + Request["txtPayRate"] +

"\n" + Request["txtStartDate"] +

"\n" + Request["txtEndDate"];

Return to the frmPersonnel web page, click the btnSubmit button, go to the PostBackUrl property, and set it to frmPersonalVerified.aspx. To do this, you can click the ellipse to the right of this property to open a Browse dialog and click frmPersonalVerified.aspx there. This will insert the correct path into the PostBackUrl property.

STEP 3: Adding Navigation

Create a folder in Solution Explorer called images.

Add a new web form called frmMain.

Add the CoolBiz Logo to the top of the form (centered).

Create links using a link button for each of the following items.

Salary Calculator

Add New Employee

Create or find appropriate images for the Salary Calculator and New Employee links. Copy the images to the images folder created above.

Add the images to the images folder by right-clicking on the images folder in Solution Explorer and selecting Add Existing Items. Select both images and Add to the images folder.

Next to each link item, add an image button.

Set each image button's image to the appropriate image in the images folder.

You may work with the format to make this page look nice by using tables or other HTML/CSS elements.

Set the PostbackURL property to the appropriate page for each image and each link.

On the frmPersonnel page, make the CoolBiz logo be a link that will take the user to the frmMain page. Use an ASP.Net Hyperlink control to do this.

Update the frmPersonnel, frmPersonnelVerified, and frmSalaryCalculator to include the CoolBiz logo at the top of each page (centered) with the logo set as a hyperlink that will return to the frmMain page.

On the frmPersonnel page, make it so that if the user presses the Cancel button then that user is taken back to the frmMain.

STEP 4: Verify and Submit

Save your work. Set the start page to frmMain and run the project. You should be able to go to both areas of your site and enter the information in the pages. Your calculator should properly calculate without errors, and then on the frmPersonel web page you can click the Submit button and have it display in the frmPersonalVerified web page. Once you have verified that it works, save your project, zip up all files, and submit in the Dropbox.

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: Create or find appropriate images for the salary calculator
Reference No:- TGS01035247

Expected delivery within 24 Hours