Design application using server controls

Assignment Help Programming Languages
Reference no: EM13934654

Create a Visual Studio 2008 ASP . NET Web Site with two Web Forms. The name of your Web site should be based on your last

name. For example, if your last name is Jones, then assign the name Jones_IP2.

The first Web Form contains one Label server control, two TextBox server controls, and two Button server controls with the Text

"Compute Area" and "Compute Perimeter." The Label server control contains the Text, "Enter numbers in the text boxes and

then click a button to perform the calculation." Use a Try-Catch code block to display an error message if the user inputs a

value less than or equal to zero in either of the TextBox server controls. Use validator server controls to validate each TextBox

server control to verify the user entered something into each TextBox server control and that the entered value can be

converted to a number.

The second Web Form contains a Label server control. Use cross-page posting to display a message in the Label server control

on the second Web Form when the user clicks one of the calculation Button server controls on the first Web Form. For example,

if the user enters "4" and "5" in the TextBox server controls on the first Web Form and then clicks the "Compute Area" button

server control, the second Web Form will display the message "The area of a 4 by 5 rectangle is 20" displayed in the Text

property of the Label server control. If the user enters the same values and clicks the "Compute Perimeter" Button server

control, the second Web Form will display the message "The perimeter of a 4 by 5 rectangle is 18" displayed in the Text

property of the Label server control. The message must include the values input by the user, the selected calculation to

perform and the calculated value. Use a decision structure to assign different colors to the font of the Label server control

based on the calculated value. If the calculated value is greater than 100, the output in the Label server control should display

in a red font. If the calculated value is greater than or equal to 50 and less than or equal to 100, the output in the Label server

control should display in a green font. If the calculated value is less than 50, the output in the Label server control should

display in a blue font. The Label server control should also display an error message to the user if they tried to input a value

that was less than or equal to zero in either of the TextBox server controls on the first Web Form.

 

Reference no: EM13934654

Questions Cloud

How much does the bluebird company need to deposit today : The Bluebird Company has a $10,000 liability it must pay three years from today. The company is opening a savings account so that the entire amount will be available when this debt needs to be paid. The plan is to make an initial deposit today and th..
Prepare a journal entry to record overhead applied to jobs : Prepare a journal entry to record overhead applied to jobs.
Returns given the various states of the economy : The stock of Uptown Men's Wear is expected to produce the following returns given the various states of the economy. What is the expected return on this stock? Probabilities: Recession:0.4 Normal:0.4 Boom:0.2 Returns: Recession:-11% Normal:12% Boom:2..
Cost of new common stock-depending on taxes-flotation costs : The cost of retained earnings can be less than, equal to, or greater than the cost of new common stock, depending on taxes, flotation costs, investors’ attitudes, etc. If a company uses the same discount rate to evaluate all projects,
Design application using server controls : The name of your Web site should be based on your last name.
Stone causal story and the quadrant : Submission is 26 March 5pm. POL330 Public Policy analysis: Report marking sheet for Assignment 3 Area of policy interest Introduction to the policy you have selected. Why did you select that policy area?
Effect of high amp levels on glycolysis and gluconeogenesis : Draw a diagram of the four complexes (complex I, II, III, IV) involved in oxidative phosphorylation, including the including details of how many protons are pumped by the transfer of two electrons through each complex, location of the mobile elect..
What is the economic order quantity : Rock Bottom Carpets sells 5,600 carpets a year at an average price per carpet of $1,490. The carrying cost per unit is $22.37. The company orders 500 carpets at a time and has a fixed order cost of $69 per order. The carpets are sold out before they ..
Plans to maintain indefinitely traditional retention ratio : Jansken Co. has an ROE = .12 and a beta of 1.10. It plans to maintain indefinitely its traditional retention ratio of .65. This year's earnings were $2.50 per share. This year's dividend was jsut paid. The consensus estimate of the coming year's mark..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write down program to open file and copy file

Write down program which opens the file and copy file to another and for file there must be three columns of floating points for each column get maximum and minimum.

  Write a program that takes one command-line argument

Write a program called runsim that takes one command-line argument. Check for the appropriate command-line argument and output a usage message if the command line is incorrect.

  Explaining handles clause of sub procedure

You are asked to design a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. What will be Handles clause at the end of sub procedure?

  Explore the game of roulette

Your assignment is to use a random number generator to explore the game of roulette. Despite the true mathematics of the matter, "0" is considered neither "odd" nor "even" when someone bets on the ball landing in an odd or even slot

  Creating a software package for amazon

Suppose you are creating a software package for Amazon.com that needs users to enter their own passwords. Your software requires that users' passwords meet the following criteria:The password should be at least six characters long.

  Write a program to print average grade of student

Write a program that read the grades.txt file and then prints the average grade of male and female students and the number of passed students by using the functions.

  Program to keep track of a cd or dvd collection

Write a program to keep track of a CD or DVD collection. This can only work exclusively with either CDs or DVDs since some of the data is different.

  Program to compute flow of water flowing through a pipe

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

  Create console program to prompts user to enter revenue

Create the console program which: Prompts user to enter revenue and expenses computes net income Outputs revenue, expenses and net income.

  Write a perl script code

Write a Perl script which uses the segment of code over and over again, and you are tired of repeatedly typing in this code. Which of the following must you do?

  Write temperature conversion program

You will write a temperature conversion program. GUI and event handling setup must be done in the constructor of the class that implements the GUI.

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd