C# Web Application, using ASP.Net Web Forms Site template.
Please include any and all code for any and all files necessary for
the program to run correctly!
Design

DesignerCode
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Home" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
text-align: right;
}
.auto-style3 {
text-align: right;
height: 28px;
}
.auto-style4 {
height: 28px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<table class="auto-style1">
<tr>
<td class="auto-style2">First Name</td>
<td>
<asp:TextBox ID="txtfirstname"
runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2">Last Name</td>
<td>
<asp:TextBox ID="txtlname"
runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2">Email Address</td>
<td>
<asp:TextBox ID="txtEmail"
runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2">Specific Path(Only
Path)</td>
<td>
<asp:TextBox ID="txtpath"
runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2"> </td>
<td>
<asp:Label ID="lblmsg"
runat="server"></asp:Label>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2"> </td>
<td>
<asp:Button ID="btnSubmit" runat="server"
OnClick="btnSubmit_Click" style="text-align: left" Text="Submit"
/>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2"> </td>
<td>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style2"> </td>
<td>
<asp:Button ID="btnLoad" runat="server" OnClick="btnLoad_Click"
Text="Load" />
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style3"></td>
<td class="auto-style4">
<asp:Label ID="lblload"
runat="server"></asp:Label>
</td>
<td class="auto-style4"></td>
</tr>
</table>
<div>
</div>
</form>
</body>
</html>
Coding Part
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
public partial class Home : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
try
{
string path = txtpath.Text + "/file1.txt";//here specific
file
TextWriter tw = new StreamWriter(path);//get object for specific
folder
tw.WriteLine("First Name ::" + txtfirstname.Text);//write first
name
tw.WriteLine("Last Name ::" + txtlname.Text);//write last
name
tw.WriteLine("Email Address ::" + txtEmail.Text);//write email
address
tw.Close();//close object
lblmsg.Text = "Inserted Successfully";//message to confir it is
working
}
catch (Exception ex)
{
lblmsg.Text = "Specific Folder is Incorrect Please Make sure it is
Correct";
}
}
protected void btnLoad_Click(object sender, EventArgs e)
{
string path = txtpath.Text + "/file1.txt";
TextReader tr = new StreamReader(path);
lblload.Text = tr.ReadLine();
lblload.Text += tr.ReadToEnd();
tr.Close();
}
}
Output:






if you still have any Problem regarding this question please comment and if you like my code please appreciate me by thumbs up thank you.........
C# Web Application, using ASP.Net Web Forms Site template. Please include any and all code for...
Develop an application in C#, which stores and manages your favorite web bookmarks. In this application the user should be able to display the list of all current bookmarks, as well as add, edit, or remove bookmarks from the list. Each bookmark consists of its title, URL address and, description. The list of bookmarks should be saved in secondary storage, in order not to be lost after the application is closed . Therefore, each time it is started, the application...
Has to be written in C#!
Write a Windows Forms application that calculates and prints the
take-home pay for a commissioned sales employee. Allow the user to
enter values for the name of the employee and the sales amount for
the week. Employees receive 7% of the total sales. Federal tax rate
is 18%. Retirement contribution is 15%. Social Security tax rate is
9%. Use appropriate constants. Write Input, Display, and Calculate
methods. Your final output should display all calculated...
Please write this in C.
Write this code in Visual Studio and upload your Source.cpp file for checking (1) Write a program to prompt the user for an output file name and 2 input file names. The program should check for errors in opening the files, and print the name of any file which has an error, and exit if an error occurs opening any of the 3 For example, (user input shown in caps in first line) Enter first...
Creating the Home and Template Pages Overview In this assignment, you will start building your Web site for your fictional organization by creating a homepage using HTML5 and some of the key elements that define a Web page. You are required to use either a simple text editor to write your code, or an enhanced text editor such as Brackets. Note: Microsoft Word is not a good tool for developing code because it is a document processor and not a...
Please solve using c++ plus There are two text files with the following information stored in them: The instructor.txt file where each line stores the id, name and affiliated department of an instructor separated by a comma The department.txt file where each line stores the name, location and budget of the department separated by a comma You need to write a C++ program that reads these text files and provides user with the following menu: 1. Enter the instructor ID...
Design an original, professional web site following the specifications listed below. This web site will be for a business you plan to set up for yourself or for someone else. The following is a detailed list of the requirements for your web site. READ them carefully. Instructions - Web Site Requirements for the web site: General: You will thoroughly test all your pages in more than one browser. All links MUST work. All graphics must show on the page. All...
Write a C# Windows Forms application that calculates and prints
the take-home pay for a commissioned sales employee. Allow the user
to enter values for the name of the employee and the sales amount
for the week. Employees receive 7% of the total sales. Federal tax
rate is 18%. Retirement contribution is 15%. Social Security tax
rate is 9%. Use appropriate constants. Write Input, Display, and
Calculate methods. Your final output should display all calculated
values, including the total deductions...
C++ : Please include complete source code in answer This program will have names and addresses saved in a linked list. In addition, a birthday and anniversary date will be saved with each record. When the program is run, it will search for a birthday or an anniversary using the current date to compare with the saved date. It will then generate the appropriate card message. Because this will be an interactive system, your program should begin by displaying a...
I've done all questions except question 6. how do I do
this? please help.
code needs to be java
1. You need to be able to open and read the text files that have been provided for the project. Write a Java program that reads the driver.txt file and displays each data value for each line from the file to the screen in the following format: Licence Number: Licence Class: First Name: Last Name: Address: Suburb: Postcode: Demerit Points: Licence...
It is a C++ program by using
inheritance and vectors
My professor said that all the files should be separate. like
File.cpp, File.h, Text.cpp,Text.h,Main.cpp
I already have these files
File.cpp
#include "File.h"
// Constructor of File that takes File name and type as
arguments
File::File(string type, string name) {
this->type = type;
this->name = name;
}
//returns the type.
string File::getType() {
return type;
}
//returns the name of file.
string File::getName() {
return name;
}
File.h
#ifndef __FILE_H__
#define...