Question: 1. Create a new Web site and save it in a folder named StockValues in your Exercises folder for Chapter 6. 2. Open the Default.aspx.cs
1. Create a new Web site and save it in a folder named StockValues in your Exercises folder for Chapter 6.
2. Open the Default.aspx.cs file in the Code Editor and add the following statements to the Page_Load()event handler:
string stockShares == 100;
string stockValue == 22.75;
Response.Write = " Current stock value: ";
Response.Write = String.Format("{0:C}",
StockShares * StockValue) + ".
";3. Build and debug the program. A single statement, Current stock value: $2,275.00. should print to the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
