SlideShare una empresa de Scribd logo
1 de 5
HELPIDO.COM
CLICK HERE TO GET THE SOLUTION !!!!!!!
CIS 407 A – ILAB 1 OF 7
In this iLab, you will create an Annual Salary Calculator ASP.NET web application using Visual
Studio.NET 2008.
For the iLabs, you will use the Microsoft Visual Studio 2008 software application. You have two options for
using this application:
 You may use a copy of Visual Studio 2008 that is installed on your local PC. or
 You may run Visual Studio 2008 over the Web
 Throughout this course, you will be creating a web application for a fictitious company called CoolBiz
Productions, Inc. To get familiar with the development environment, follow the Lab Steps to create a
simple Annual Salary Calculator ASP.NET web application. You will be adding to this application each
week.
Instructions for Week 1 iLab: “Hello World, and more” ASP.NET Web ApplicationClick on the link
above to view the tutorial.Please watch this tutorial before beginning the iLab.The tutorial has audio.
Overview of Fictitious Company
CoolBiz Productions, Inc.
We are a mid-size indie (independent) film studio that is in need of a payroll system. We have outgrown our
current system, a simple spreadsheet, to the extent that it takes three people over one week to pay
everyone on a timely basis.
Overview of Our Company
We have over 2,000 full-time and part-time employees. We produce comedy, fiction, and science fiction
films with budgets of $250K–$20 million. We have produced over 50 films since we first began 20 years ago.
We are very profitable and have strong links to many of the industry‟s most powerful people.
Current Payroll System
Our current system consists of mostly manual processing using an MS Excel spreadsheet to control who gets
paid.
The system consists of the three payroll staff members reviewing each of the full-time staff members‟
wages, calculating how many hours they worked based on their hourly rate, and paying them by issuing a
check.
The check needs to be entered in another worksheet for each of the people who were paid so that we can
tell when it went out, how much it was for, and if it was cashed or not. If a [Date_Cashed] is entered, we
deduct that amount from our working payroll capital account to track how much money we have for payroll.
This process is then repeated for all part-time staff and independent contractors.
Our Needs
We need a more automated way to pay our staff. We need to use the same logical flow as a basis, yet
improve on it by having a way to
1. easily calculate the projected annual salary based on rate and number of hours;
2. search, enter, update, and delete staff and independent employee information in one place;
3. search, enter, update, and delete payroll automation information for the employee to set up recurring
payments or one-time payments;
4. produce reports to show the following: (a) summary of who got paid per week, (b) summary of all payments
per week, (c) details of any employee to-date (allow entry of a specific employee ID);
5. allow transactions to be rolled back in case we pay someone too much;
6. make use of transaction processing in case the system unexpectedly shuts down;
7. ensure the system is secure (logins required);
8. allow only authorized payroll personnel to control all aspects of the system;
9. allow only authorized payroll personnel to view transactions and user activity;
10. allow only authorized payroll personnel to e-mail reports to users using the e-mail on file; and
11. incorporate error handling into all processes in the system and e-mail any errors to the technical support
people.
Deliverables
All files are located in the subdirectory of the website. The website should function as follows: You should
have a page that, when run, displays a page showing the text “Hello, World.” You should also have a second
page that is the annual salary calculator that properly calculates the annual salary, given an hourly rate and
the number of hours projected to be worked in a year. Once you have verified both pages work, save your
website, zip up all files, and submit in the Dropbox.
i L A B S T E P S
STEPS 1 through 3: Create Website and Home Page (10 points)
In this ilab, we will learn how to create a simple ASP.NET web application using Microsoft Visual Studio.NET
2008. The application will display the text “Hello, World” on the home page.
1. Open Microsoft Visual Studio 2008.
Click on image to enlarge.
Visual Studio Startup
1. Click here for text description of this image.
2. Create a new ASP.NET website called “PayrollSystem.” To do this, select “File, New Website.”
Click here for text description of this image.
When the “New Website” dialog opens, select “ASP.NET Website” as the Template, select “File System” as
the Location, and select “Visual C#” as the Language. Click Browse and navigate to the folder where you
want to save your website. Add “PayrollSystem” at the end of the file path. Click OK if you are prompted to
create a new folder. Click OK in the New Website dialog to finish creating the website.
Click on image to enlarge.
New Website Dialog
Click here for text description of this image.
1. Edit the Default.aspx file (the home page for your site) to add the message “Hello, World.” To do this, if
necessary, click the Design button below the editing window to switch to Design view, then click in the
editing window and type “Hello, World” (without the quotes).
Click on image to enlarge.
Edit in Design View
Click here for text version of this image.
Click the Save button on the toolbar to save the changes to Default.aspx.
Click here for text description of this image.
STEPS 4 through 5: Start Debugging (10 points); NOTE: Citrix users have different steps!
1. To ensure that everything is working properly, click the Start Debugging button on the toolbar, or press the
F5 key on the keyboard, or pull down the Debug menu and select “Start Debugging.”
Click here for text description of this image.
1. If the “Debugging Not Enabled” dialog box appears, select the option to add or modify the Web.config file to
enable debugging and click OK. You should only have to do this the first time you debug the site.
Click on image to enlarge.
Enable Debugging
1. Click here for text description of this image. 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
STEP 6 through 7 : Display the “Hello, World” web page (10 points)
1. The Internet Explorer web browser will open and display your Default.aspx page containing the “Hello,
World” message.
Click on image to enlarge.
Hello World in Browser
1. Click here for text description of this image.
2. Stop debugging and return to the design mode by closing the browser.
3. Add a new form to your web application called frmSalaryCalculator.aspx. Make sure “Place Code in separate
file” is checked when you add the form. To add a new form, click (single-click, not double-click) on the
project node in the solution explorer.
With the project node highlighted, right-click on the project node and select “Add New Item” from the popup
menu. The following dialog will be displayed:
Select the name of the form you will add frmSalaryCalculator.aspx. Make sure “Place code in separate file” is
checked and “Select master page” is unchecked.
1. You will create a web-based salary calculator on this new page. To do this, open the aspx page in Design
view and, from the Toolbox, add three labels, two text box controls, and a button control. You can add
controls by dragging the control from the Toolbox – Standard section onto your form. Your form should look
like this:
1. Change the text displayed in each label so that the first label displays “Annual Hours”; the second label
should display “Rate” and the third label should display “$”. (Hint: To change the text displayed, change the
Text property of each control.)
2. Change the button text to display “Calculate Salary.” (Hint: To change the text displayed as the button
label, change the Text property of the button.) Your form should now look like this:
1. Set the ID property of the top text box to txtAnnualHours. Set the ID property of the second textbox to
txtRate. Set the ID of the bottom label (the one we set the text property to “$”) to lblSalary. (Note: We set
these IDs as we will be accessing the control values from the C# code. You can set the button ID and the
other two labels‟ ID properties as well, but we won‟t be accessing them from our code.)
2. In Design view, add a C# event handler for the button-click event by double-clicking on the Calculate Salary
button. This will place you in the page code behind file the editor. (Remember that ASP.Net pages have a
file containing the HTML markup with an extension of .aspx and a C# „code behind‟ file with an extension of
.aspx.cs.) This is the code that should be displayed: (If you changed the ID of the button, it will be a
different method name.)
Click here for text file of this image.
This code will be called each time the user presses the button. It is important to remember that code in the
code behind page executes on the server – not on the user‟s browser. This means that when the button is
pressed, the page is submitted back to the web server and is processed by the ASP.Net application server
on the web server. It is this code (between the { and } in this method) that will execute on the server. Once
it is done executing the page will be sent back to the browser. Any changes we make to the page or controls
on the page will be shown to the user in the updated page.
1. In this method, add code that will get the text in the txtAnnualHours text box, convert it to a Double, and
store it in a double variable. Add code that will get the text from the txtRate text box, convert it to a Double,
and store it in another variable. Create a third variable of type Double and set its value to the annual hours
variable value multiplied by the rate double variable value. Take this resulting value and convert it to a
string (text), and update the lblSalary Text property with this new string.
Hints:
A control‟s property can be accessed by simply using the control ID followed by a . followed by the name of
the property. For example, the value stored in the Text property of the txtAnnualHours control can be
accessed by using this: txtAnnualHours.Text. Text properties on controls are of type string.
To convert a string to a Double you can use the Convert class. If we had a string variable called str1 and a
double variable called myNumber, the C# code to convert this would be as follows:
Click here for text file of this image.
When converting from one type to another, we are assuming that the value stored in the type being
converted is compatible with the type we are converting to. In the example above, if the value stored in str1
was not type compatible with a Double (for example “tiger”) an error would be raised.
To set the value of a control on a web form, you can access the control and set the property directly. If I
had a label control called lblCar and I wanted to update the text that was displayed in the label, I could do
something like this:
Click here for text file of this image.
Note that following code would be incorrect and cause an error:
Click here for text file of this image.
lblCar is a Label – it isn‟t a string so we can‟t assign a string directly to it, but we can assign a string directly
to the Text property of the label.
All of the base types in C# (double, int etc) have a ToString() method you can call. If you had a double
variable that you wanted to convert to a string and set that string to my label‟s text, you would do the
following:
Click here for text file of this image.
This would take whatever value was stored in the myNumber Double and convert it to a string.
To add a $ to output you can use string concatenation in C# like this:
Click here for text file of this image.
1. Set your new form as the start page by clicking once on the form name in the Solution Explorer and then
right-clicking on the form name and selecting “Set as Start Page.” You can now test your application and
make sure it works correctly as you did with the Hello World form above. You can switch back and forth
between which form runs when you run your application by setting the different forms as the start page.
CLICK HERE TO GET THE SOLUTION !!!!!!!

Más contenido relacionado

La actualidad más candente

E mail and-workflow-administation
E mail and-workflow-administationE mail and-workflow-administation
E mail and-workflow-administationAmit Sharma
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2Amit Sharma
 
Creating ProLaw Reports using Excel
Creating ProLaw Reports using ExcelCreating ProLaw Reports using Excel
Creating ProLaw Reports using ExcelGabriela Isturiz
 
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...Amit Sharma
 
How to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey AppHow to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey Apppost.chris
 
Web page manual
Web page manualWeb page manual
Web page manualkyffa
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentalsAmit Sharma
 
WordPress Professionals Melbourne
WordPress Professionals MelbourneWordPress Professionals Melbourne
WordPress Professionals Melbournemastersofdigital
 
SYSTEMS DESIGN / CAPSTONE PROJECT
SYSTEMS DESIGN / CAPSTONE PROJECTSYSTEMS DESIGN / CAPSTONE PROJECT
SYSTEMS DESIGN / CAPSTONE PROJECTSanjay Saluth
 
Automation Anywhere Examples
Automation Anywhere ExamplesAutomation Anywhere Examples
Automation Anywhere ExamplesShekar S
 
Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7helpido9
 
Cis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry universityCis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry universitylhkslkdh89009
 
Desk Sync User Installation Guide
Desk Sync User Installation GuideDesk Sync User Installation Guide
Desk Sync User Installation GuideCloud Analogy
 
Salesforce interview preparation toolkit formula and validation rules in sale...
Salesforce interview preparation toolkit formula and validation rules in sale...Salesforce interview preparation toolkit formula and validation rules in sale...
Salesforce interview preparation toolkit formula and validation rules in sale...Amit Sharma
 
How to Create Tasks in MS Outlook?
How to Create Tasks in MS Outlook?How to Create Tasks in MS Outlook?
How to Create Tasks in MS Outlook?peterb8
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAlfa Gama Omega
 

La actualidad más candente (19)

Oracle EMC 12C Grand Tour
Oracle EMC 12C Grand TourOracle EMC 12C Grand Tour
Oracle EMC 12C Grand Tour
 
E mail and-workflow-administation
E mail and-workflow-administationE mail and-workflow-administation
E mail and-workflow-administation
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
 
Creating ProLaw Reports using Excel
Creating ProLaw Reports using ExcelCreating ProLaw Reports using Excel
Creating ProLaw Reports using Excel
 
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
 
How to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey AppHow to Build a Yahoo! SearchMonkey App
How to Build a Yahoo! SearchMonkey App
 
Web page manual
Web page manualWeb page manual
Web page manual
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentals
 
WordPress Professionals Melbourne
WordPress Professionals MelbourneWordPress Professionals Melbourne
WordPress Professionals Melbourne
 
SYSTEMS DESIGN / CAPSTONE PROJECT
SYSTEMS DESIGN / CAPSTONE PROJECTSYSTEMS DESIGN / CAPSTONE PROJECT
SYSTEMS DESIGN / CAPSTONE PROJECT
 
Automation Anywhere Examples
Automation Anywhere ExamplesAutomation Anywhere Examples
Automation Anywhere Examples
 
Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7Cis 407 i lab 2 of 7
Cis 407 i lab 2 of 7
 
Walkthrough asp.net
Walkthrough asp.netWalkthrough asp.net
Walkthrough asp.net
 
Cis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry universityCis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry university
 
Sql server reporting services (SSRS)
Sql server reporting services (SSRS)Sql server reporting services (SSRS)
Sql server reporting services (SSRS)
 
Desk Sync User Installation Guide
Desk Sync User Installation GuideDesk Sync User Installation Guide
Desk Sync User Installation Guide
 
Salesforce interview preparation toolkit formula and validation rules in sale...
Salesforce interview preparation toolkit formula and validation rules in sale...Salesforce interview preparation toolkit formula and validation rules in sale...
Salesforce interview preparation toolkit formula and validation rules in sale...
 
How to Create Tasks in MS Outlook?
How to Create Tasks in MS Outlook?How to Create Tasks in MS Outlook?
How to Create Tasks in MS Outlook?
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_cs
 

Destacado

Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6helpido9
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6helpido9
 
Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7helpido9
 
Cis 355 i lab 6 of 6
Cis 355 i lab 6 of 6Cis 355 i lab 6 of 6
Cis 355 i lab 6 of 6helpido9
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7helpido9
 
Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7helpido9
 
Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7helpido9
 
Cis 407 i lab 5 of 7
Cis 407 i lab 5 of 7Cis 407 i lab 5 of 7
Cis 407 i lab 5 of 7helpido9
 
Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7helpido9
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6helpido9
 
Cis336 i lab 1 of 7
Cis336 i lab 1 of 7Cis336 i lab 1 of 7
Cis336 i lab 1 of 7helpido9
 
Cis 407 i lab 4 of 7
Cis 407 i lab 4 of 7Cis 407 i lab 4 of 7
Cis 407 i lab 4 of 7helpido9
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6helpido9
 

Destacado (20)

Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6Cis 355 i lab 2 of 6
Cis 355 i lab 2 of 6
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
 
Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7Cis 407 i lab 6 of 7
Cis 407 i lab 6 of 7
 
Cis 355 i lab 6 of 6
Cis 355 i lab 6 of 6Cis 355 i lab 6 of 6
Cis 355 i lab 6 of 6
 
Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7Comp 220 ilab 7 of 7
Comp 220 ilab 7 of 7
 
Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7
 
Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7Cis 170 i lab 1 of 7
Cis 170 i lab 1 of 7
 
Cis 407 i lab 5 of 7
Cis 407 i lab 5 of 7Cis 407 i lab 5 of 7
Cis 407 i lab 5 of 7
 
Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7Cis 336 i lab 2 of 7
Cis 336 i lab 2 of 7
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6
 
Cis336 i lab 1 of 7
Cis336 i lab 1 of 7Cis336 i lab 1 of 7
Cis336 i lab 1 of 7
 
Cis 407 i lab 4 of 7
Cis 407 i lab 4 of 7Cis 407 i lab 4 of 7
Cis 407 i lab 4 of 7
 
Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6Cis 355 i lab 3 of 6
Cis 355 i lab 3 of 6
 
Aids
AidsAids
Aids
 
Alexander Sanchez
Alexander SanchezAlexander Sanchez
Alexander Sanchez
 
CAR Email 5.13.03
CAR Email 5.13.03CAR Email 5.13.03
CAR Email 5.13.03
 
CAR Email 5.22.03 (b)
CAR Email 5.22.03 (b)CAR Email 5.22.03 (b)
CAR Email 5.22.03 (b)
 
10.11 Wildwood Opening
10.11 Wildwood Opening10.11 Wildwood Opening
10.11 Wildwood Opening
 
Tabla Documentos
Tabla DocumentosTabla Documentos
Tabla Documentos
 
Australian Museum Visit
Australian Museum VisitAustralian Museum Visit
Australian Museum Visit
 

Similar a Cis 407 i lab 1 of 7

Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.netDharma Raju
 
SAP BPC Learning Notes and Insights.docx
SAP BPC Learning Notes and Insights.docxSAP BPC Learning Notes and Insights.docx
SAP BPC Learning Notes and Insights.docxKen T
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxhanneloremccaffery
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateSean Burgess
 
Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web MahmoudOHassouna
 
Orangescrum Invoice Pro Add-on user manual
Orangescrum Invoice Pro Add-on user manualOrangescrum Invoice Pro Add-on user manual
Orangescrum Invoice Pro Add-on user manualOrangescrum
 
Lsmw (Legacy System Migration Workbench)
Lsmw (Legacy System Migration Workbench)Lsmw (Legacy System Migration Workbench)
Lsmw (Legacy System Migration Workbench)Leila Morteza
 
My First Report slide support
My First Report slide supportMy First Report slide support
My First Report slide supportSpagoWorld
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshopmanisherp084
 
Informatica complex transformation ii
Informatica complex transformation iiInformatica complex transformation ii
Informatica complex transformation iiAmit Sharma
 
How to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdfHow to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdfHost It Smart
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformationsSunil Pandey
 
SharePoint Re-branding The VisualStudio Way Part One SandBox Solution
SharePoint Re-branding The VisualStudio Way Part One SandBox SolutionSharePoint Re-branding The VisualStudio Way Part One SandBox Solution
SharePoint Re-branding The VisualStudio Way Part One SandBox SolutionIfeanyi I Nwodo(De Jeneral)
 
Dreamweaver cs6 step by step
Dreamweaver cs6 step by stepDreamweaver cs6 step by step
Dreamweaver cs6 step by stepzoran Jelinek
 
Build your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automationBuild your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automationWinton Winton
 
BOM to Excel Revit Plugin Help & FAQ
BOM to Excel Revit Plugin Help & FAQBOM to Excel Revit Plugin Help & FAQ
BOM to Excel Revit Plugin Help & FAQBryce Finnerty
 

Similar a Cis 407 i lab 1 of 7 (20)

Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.net
 
SAP BPC Learning Notes and Insights.docx
SAP BPC Learning Notes and Insights.docxSAP BPC Learning Notes and Insights.docx
SAP BPC Learning Notes and Insights.docx
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docx
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
 
Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web
 
Orangescrum Invoice Pro Add-on user manual
Orangescrum Invoice Pro Add-on user manualOrangescrum Invoice Pro Add-on user manual
Orangescrum Invoice Pro Add-on user manual
 
Homestead Weather workshop
Homestead Weather workshopHomestead Weather workshop
Homestead Weather workshop
 
Lsmw (Legacy System Migration Workbench)
Lsmw (Legacy System Migration Workbench)Lsmw (Legacy System Migration Workbench)
Lsmw (Legacy System Migration Workbench)
 
ASP DOT NET
ASP DOT NETASP DOT NET
ASP DOT NET
 
My First Report slide support
My First Report slide supportMy First Report slide support
My First Report slide support
 
Ad basic tech_workshop
Ad basic tech_workshopAd basic tech_workshop
Ad basic tech_workshop
 
Informatica complex transformation ii
Informatica complex transformation iiInformatica complex transformation ii
Informatica complex transformation ii
 
How to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdfHow to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdf
 
130297267 transformations
130297267 transformations130297267 transformations
130297267 transformations
 
SharePoint Re-branding The VisualStudio Way Part One SandBox Solution
SharePoint Re-branding The VisualStudio Way Part One SandBox SolutionSharePoint Re-branding The VisualStudio Way Part One SandBox Solution
SharePoint Re-branding The VisualStudio Way Part One SandBox Solution
 
Dreamweaver cs6 step by step
Dreamweaver cs6 step by stepDreamweaver cs6 step by step
Dreamweaver cs6 step by step
 
Build your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automationBuild your first rpa bot using IBM RPA automation
Build your first rpa bot using IBM RPA automation
 
BOM to Excel Revit Plugin Help & FAQ
BOM to Excel Revit Plugin Help & FAQBOM to Excel Revit Plugin Help & FAQ
BOM to Excel Revit Plugin Help & FAQ
 
Oracle ADF 11g Tutorial
Oracle ADF 11g TutorialOracle ADF 11g Tutorial
Oracle ADF 11g Tutorial
 

Último

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Último (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Cis 407 i lab 1 of 7

  • 1. HELPIDO.COM CLICK HERE TO GET THE SOLUTION !!!!!!! CIS 407 A – ILAB 1 OF 7 In this iLab, you will create an Annual Salary Calculator ASP.NET web application using Visual Studio.NET 2008. For the iLabs, you will use the Microsoft Visual Studio 2008 software application. You have two options for using this application:  You may use a copy of Visual Studio 2008 that is installed on your local PC. or  You may run Visual Studio 2008 over the Web  Throughout this course, you will be creating a web application for a fictitious company called CoolBiz Productions, Inc. To get familiar with the development environment, follow the Lab Steps to create a simple Annual Salary Calculator ASP.NET web application. You will be adding to this application each week. Instructions for Week 1 iLab: “Hello World, and more” ASP.NET Web ApplicationClick on the link above to view the tutorial.Please watch this tutorial before beginning the iLab.The tutorial has audio. Overview of Fictitious Company CoolBiz Productions, Inc. We are a mid-size indie (independent) film studio that is in need of a payroll system. We have outgrown our current system, a simple spreadsheet, to the extent that it takes three people over one week to pay everyone on a timely basis. Overview of Our Company We have over 2,000 full-time and part-time employees. We produce comedy, fiction, and science fiction films with budgets of $250K–$20 million. We have produced over 50 films since we first began 20 years ago. We are very profitable and have strong links to many of the industry‟s most powerful people. Current Payroll System Our current system consists of mostly manual processing using an MS Excel spreadsheet to control who gets paid. The system consists of the three payroll staff members reviewing each of the full-time staff members‟ wages, calculating how many hours they worked based on their hourly rate, and paying them by issuing a check. The check needs to be entered in another worksheet for each of the people who were paid so that we can tell when it went out, how much it was for, and if it was cashed or not. If a [Date_Cashed] is entered, we deduct that amount from our working payroll capital account to track how much money we have for payroll. This process is then repeated for all part-time staff and independent contractors.
  • 2. Our Needs We need a more automated way to pay our staff. We need to use the same logical flow as a basis, yet improve on it by having a way to 1. easily calculate the projected annual salary based on rate and number of hours; 2. search, enter, update, and delete staff and independent employee information in one place; 3. search, enter, update, and delete payroll automation information for the employee to set up recurring payments or one-time payments; 4. produce reports to show the following: (a) summary of who got paid per week, (b) summary of all payments per week, (c) details of any employee to-date (allow entry of a specific employee ID); 5. allow transactions to be rolled back in case we pay someone too much; 6. make use of transaction processing in case the system unexpectedly shuts down; 7. ensure the system is secure (logins required); 8. allow only authorized payroll personnel to control all aspects of the system; 9. allow only authorized payroll personnel to view transactions and user activity; 10. allow only authorized payroll personnel to e-mail reports to users using the e-mail on file; and 11. incorporate error handling into all processes in the system and e-mail any errors to the technical support people. Deliverables All files are located in the subdirectory of the website. The website should function as follows: You should have a page that, when run, displays a page showing the text “Hello, World.” You should also have a second page that is the annual salary calculator that properly calculates the annual salary, given an hourly rate and the number of hours projected to be worked in a year. Once you have verified both pages work, save your website, zip up all files, and submit in the Dropbox. i L A B S T E P S STEPS 1 through 3: Create Website and Home Page (10 points) In this ilab, we will learn how to create a simple ASP.NET web application using Microsoft Visual Studio.NET 2008. The application will display the text “Hello, World” on the home page. 1. Open Microsoft Visual Studio 2008. Click on image to enlarge. Visual Studio Startup 1. Click here for text description of this image. 2. Create a new ASP.NET website called “PayrollSystem.” To do this, select “File, New Website.” Click here for text description of this image. When the “New Website” dialog opens, select “ASP.NET Website” as the Template, select “File System” as the Location, and select “Visual C#” as the Language. Click Browse and navigate to the folder where you want to save your website. Add “PayrollSystem” at the end of the file path. Click OK if you are prompted to create a new folder. Click OK in the New Website dialog to finish creating the website. Click on image to enlarge.
  • 3. New Website Dialog Click here for text description of this image. 1. Edit the Default.aspx file (the home page for your site) to add the message “Hello, World.” To do this, if necessary, click the Design button below the editing window to switch to Design view, then click in the editing window and type “Hello, World” (without the quotes). Click on image to enlarge. Edit in Design View Click here for text version of this image. Click the Save button on the toolbar to save the changes to Default.aspx. Click here for text description of this image. STEPS 4 through 5: Start Debugging (10 points); NOTE: Citrix users have different steps! 1. To ensure that everything is working properly, click the Start Debugging button on the toolbar, or press the F5 key on the keyboard, or pull down the Debug menu and select “Start Debugging.” Click here for text description of this image. 1. If the “Debugging Not Enabled” dialog box appears, select the option to add or modify the Web.config file to enable debugging and click OK. You should only have to do this the first time you debug the site. Click on image to enlarge. Enable Debugging 1. Click here for text description of this image. 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 STEP 6 through 7 : Display the “Hello, World” web page (10 points) 1. The Internet Explorer web browser will open and display your Default.aspx page containing the “Hello, World” message. Click on image to enlarge. Hello World in Browser 1. Click here for text description of this image. 2. Stop debugging and return to the design mode by closing the browser. 3. Add a new form to your web application called frmSalaryCalculator.aspx. Make sure “Place Code in separate file” is checked when you add the form. To add a new form, click (single-click, not double-click) on the project node in the solution explorer. With the project node highlighted, right-click on the project node and select “Add New Item” from the popup menu. The following dialog will be displayed:
  • 4. Select the name of the form you will add frmSalaryCalculator.aspx. Make sure “Place code in separate file” is checked and “Select master page” is unchecked. 1. You will create a web-based salary calculator on this new page. To do this, open the aspx page in Design view and, from the Toolbox, add three labels, two text box controls, and a button control. You can add controls by dragging the control from the Toolbox – Standard section onto your form. Your form should look like this: 1. Change the text displayed in each label so that the first label displays “Annual Hours”; the second label should display “Rate” and the third label should display “$”. (Hint: To change the text displayed, change the Text property of each control.) 2. Change the button text to display “Calculate Salary.” (Hint: To change the text displayed as the button label, change the Text property of the button.) Your form should now look like this: 1. Set the ID property of the top text box to txtAnnualHours. Set the ID property of the second textbox to txtRate. Set the ID of the bottom label (the one we set the text property to “$”) to lblSalary. (Note: We set these IDs as we will be accessing the control values from the C# code. You can set the button ID and the other two labels‟ ID properties as well, but we won‟t be accessing them from our code.) 2. In Design view, add a C# event handler for the button-click event by double-clicking on the Calculate Salary button. This will place you in the page code behind file the editor. (Remember that ASP.Net pages have a file containing the HTML markup with an extension of .aspx and a C# „code behind‟ file with an extension of .aspx.cs.) This is the code that should be displayed: (If you changed the ID of the button, it will be a different method name.) Click here for text file of this image. This code will be called each time the user presses the button. It is important to remember that code in the code behind page executes on the server – not on the user‟s browser. This means that when the button is pressed, the page is submitted back to the web server and is processed by the ASP.Net application server on the web server. It is this code (between the { and } in this method) that will execute on the server. Once it is done executing the page will be sent back to the browser. Any changes we make to the page or controls on the page will be shown to the user in the updated page. 1. In this method, add code that will get the text in the txtAnnualHours text box, convert it to a Double, and store it in a double variable. Add code that will get the text from the txtRate text box, convert it to a Double, and store it in another variable. Create a third variable of type Double and set its value to the annual hours variable value multiplied by the rate double variable value. Take this resulting value and convert it to a string (text), and update the lblSalary Text property with this new string. Hints: A control‟s property can be accessed by simply using the control ID followed by a . followed by the name of the property. For example, the value stored in the Text property of the txtAnnualHours control can be accessed by using this: txtAnnualHours.Text. Text properties on controls are of type string. To convert a string to a Double you can use the Convert class. If we had a string variable called str1 and a double variable called myNumber, the C# code to convert this would be as follows: Click here for text file of this image.
  • 5. When converting from one type to another, we are assuming that the value stored in the type being converted is compatible with the type we are converting to. In the example above, if the value stored in str1 was not type compatible with a Double (for example “tiger”) an error would be raised. To set the value of a control on a web form, you can access the control and set the property directly. If I had a label control called lblCar and I wanted to update the text that was displayed in the label, I could do something like this: Click here for text file of this image. Note that following code would be incorrect and cause an error: Click here for text file of this image. lblCar is a Label – it isn‟t a string so we can‟t assign a string directly to it, but we can assign a string directly to the Text property of the label. All of the base types in C# (double, int etc) have a ToString() method you can call. If you had a double variable that you wanted to convert to a string and set that string to my label‟s text, you would do the following: Click here for text file of this image. This would take whatever value was stored in the myNumber Double and convert it to a string. To add a $ to output you can use string concatenation in C# like this: Click here for text file of this image. 1. Set your new form as the start page by clicking once on the form name in the Solution Explorer and then right-clicking on the form name and selecting “Set as Start Page.” You can now test your application and make sure it works correctly as you did with the Hello World form above. You can switch back and forth between which form runs when you run your application by setting the different forms as the start page. CLICK HERE TO GET THE SOLUTION !!!!!!!