{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-09-11T00:08:54-04:00", "answer_date": "2024-09-11 00:08:54", "is_docs_available": "", "is_excel_available": "", "is_pdf_available": "", "count_file_available": 0, "main_page": "student_question_view", "question_id": "10134208", "url": "\/study-help\/questions\/in-c-i-need-to-create-a-new-web-site-10134208", "question_creation_date_js": "2024-09-11T00:08:54-04:00", "question_creation_date": "Sep 11, 2024 12:08 AM", "meta_title": "[Solved] In C# I need to Create a new WEB SITE wit | SolutionInn", "meta_description": "Answer of - In C# I need to Create a new WEB SITE with the following:- Create a webpage that contains server side directives, code | SolutionInn", "meta_keywords": "c,create,new,web,site,-,webpage,server,side,directives,code,declaration", "question_title_h1": "In C# I need to Create a new WEB SITE with the following:- Create a webpage that contains server side directives, code declaration blocks, includes", "question_title": "In C# I need to Create a new WEB SITE with the", "question_title_for_js_snippet": "In C I need to Create a new WEB SITE with the following Create a webpage that contains server side directives, code declaration blocks, includes and controls Create a simple calculator the contains four labels, three textboxes, six buttons and a list box The first label enter first number The second label enter second number The third label should display the result Four of the buttons should be , , , The result textbox should be read only The startup page must be named index Display a message indicating cannot divide by when the user click and there is a zero the in the second box Prevent the user from entering text in the number fields Create the other two buttons store data The store data will store the results into array display data The display data will display the contents of the array (use 10 for the array size) I need some help with steps 9 11 on the server side for the C website Heres what I have so far for the C website and code behind Index aspx Welcome to the C Calculator Index aspx cs using System using System Collections Generic using System Linq using System Web using System Web UI using System Web UI WebControls namespace Calculator public partial class Index System Web UI Page double dec1stNum double dec2ndNum double decResult protected void Page Load(object sender, EventArgs e) protected void btnAdd Click(object sender, EventArgs e) Accepts input from txt1stNum txt2ndNum double TryParse(txt1stNum Text, out dec1stNum) double TryParse(txt2ndNum Text, out dec2ndNum) 'Adds the 1st 2nd numbers displays the results decResult dec1stNum dec2ndNum txtResult Text dec1stNum dec2ndNum decResult protected void btnSubtract Click(object sender, EventArgs e) Accepts input from txt1stNum txt2ndNum double TryParse(txt1stNum Text, out dec1stNum) double TryParse(txt2ndNum Text, out dec2ndNum) Subtracts the 2nd number from the 1st number displays the results decResult dec1stNum dec2ndNum txtResult Text dec1stNum dec2ndNum decResult protected void btnMultiply Click(object sender, EventArgs e) Accepts input from txt1stNum txt2ndNum double TryParse(txt1stNum Text, out dec1stNum) double TryParse(txt2ndNum Text, out dec2ndNum) Multiplies the 1st 2nd numbers displays the results decResult dec1stNum dec2ndNum txtResult Text dec1stNum X dec2ndNum decResult protected void btnDivide Click(object sender, EventArgs e) Accepts input from txt1stNum txt2ndNum double TryParse(txt1stNum Text, out dec1stNum) double TryParse(txt2ndNum Text, out dec2ndNum) Divides the 1st number by the 2nd number displays the results decResult dec1stNum dec2ndNum If dec2ndNum 0 Then txtResult Text dec1stNum dec2ndNum decResult End If ", "question_description": "
In C# I need to Create a new WEB SITE with the following:-<\/p>
<\/p>
I need some help with steps 9 11 on the server side for the C# website.<\/p>
<\/p>
Heres what I have so far for the C# website and code behind:<\/p>
Index.aspx:<\/p>
<\/p>
<%@ Page Language=\"C#\" AutoEventWireup=\"true\" CodeBehind=\"Index.aspx.cs\" Inherits=\"Calculator.Index\" %><\/p>
<\/p>
<\/p>
<\/p>
<\/p>
<\/p>
<\/head><\/p>