Chat with us, powered by LiveChat CIS407 Ilab2 | Writedemy

CIS407 Ilab2

CIS407 Ilab2

Question

Open the payroll system website from Lab 1.

2. 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.

And you will get the following screen:

Change Default.aspx to frmPersonnel.aspx.

And get the following Screen:

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

4. From the ToolBox, drag and drop an Image control.

5. Next, right click on the Project folder name in the Solution folder. Click Add-> New Folder and name the folder Images.

6. Right click on the Images folder and choose Add->Existing item. We will add our logo to our Images folder. Be sure to choose All Filesfrom the Files of Type and navigate to where you saved the image. The logo image is located in Doc Sharing in our course for you to download to your own machine or upload to Citrix.

7. After you have loaded the logo to the project, select the image control on your page.

8. On the Properties window, choose the ImageURL property and the ellipse to the right of this property to open a Browse dialog box and add the ACITLogo to the page.

9. The Logo should appear on your page as shown.

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

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

12. 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 the View Properties window OR press the F4 key). Scroll down the list, then type the value in for each property.

13. Change the panel’s HorizontalAlign property to left.

14. Save your work!

15. 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 a with a word processing program).

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

Save your work!

16. If you would like, you can make the labels the same size by selecting the first label, pressing and holding Control, and selecting the rest of the labels. Then, choose Format-> Make Same Size ->Width as shown below:

17. When we click the Submit button, we want the contents of the form to be passed to another form. In the Solution Explorer, right click on the project name and choose Add-> Add New Item.Choose Web Form and name the form frmPersonnelVerified.aspx.

18. On this form, we will add an image and panel like the previous form. Within the panel, add a label and a textbox. The width of the panel should be 650 and the height250. The label should say Information to Submit. The textbox ID should be txtVerifiedInfo. Also, change the TextMode Property of the textbox to MultiLine, the height to 80, and the width to 400.

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

19. Next, we will write the code that will load the information from the frmPersonnel page to the frmPersonnelVerified page. Be sure that your cursor is not selecting the panel. Double click on the blank part of the page to open the page_load event handler and add the following code.

//Add your comments here
txtVerifiedInfo.Text=Request["txtFirstName"]+"\n"+Request["txtLastName"]+"\n"+Request["txtPayRate"]+"\n"+Request["txtStartDate"]+"\n"+Request["txtEndDate"];

20. Return to the frmPersonnel Web page, click the btnSubmit button, go to the PostBackUrL property and set it to frmPersonalVerified.aspx by clicking the ellipse to the right of the property to open a Browse dialog, and click frmPersonalVerified.aspx there. This will insert the correct path to the PostBackUrl Property.

21. Test your Web page. On the frmPersonnel.aspx page, right click and choose View in Browser. Test the application with test data and press Submit. You should see your test data appear in the frmPersonnelVerified page.

STEP 2: Adding Navigation

Back to Top22. Add a new Web form called frmMain.aspx

  1. Add the ACIT Logo to the top of the form and a panel below the image with height = 350 and width = 500.
  2. Add an ImageButton control, then, space over, and next, add a LinkButton.

23. For the Image button, you will need to download an image from the Internet or create an image yourself. Right click on the Images folder and choose Add->Existing item and browse to add the image that you want to use as part of your project.

24. Click on the ImageButton and the ImageUrl property. Then, select the image that you added to the project. Modify the text of the LinkButton to Annual Salary Calculator.

25. Set the PostBackURL property for the image and the link to thefrmSalaryCalculator.aspx from last week.

26. Right click on the frmMain.aspx and choose Set As Start Page.

27. 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.Test your link. Does it take you to the Annual Salary Calculator page?

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

  1. If you are using Citrix, press CTRL + F5 to Start Without Debugging. You will not be deducted points for this part
  2. If you are using a standalone version, press F5 to Start with Debugging, or you can press CTRL + F5 to Start Without Debugging.

On your own:

  1. Repeat this process to create an image and link for the frmPersonnel.aspx page. Remember to set the PostbackURL properties.
  2. On the frmPersonnel page, make the ACIT logo be a link that will take the user to the frmMain page. Use an ASP.Net Hyperlink control to do this task.
  3. Update the frmPersonnel, frmPersonnelVerified, and frmSalaryCalculator to include the ACIT logo at the top of each page (centered) with the logo set as a hyperlink that will return to the frmMain page.
  4. 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

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order