SlideShare a Scribd company logo
STUDENT NAME : Anurag Guli
STUDENT ID : 1285714
COURSE : Web Application Development
COURSE CODE : CINF 4230
ASSIGNMENT : #5
Quickconnect homepage:
Source Code:
Quickconnect.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Quickconnect.aspx.cs"
Inherits="Quickconnect.Quickconnect" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Quickconnect Home Page</title>
<script type="text/javascript">
function openPage() {
if (GetCookie("username") != null) {
window.location = "Buycredit.aspx";
}
else {
alert("You have to be a member,Please Register with us.")
}
}
</script>
<style type="text/css">
.auto-style1 {
height: 101px;
width: 1330px;
}
#Button1 {
width: 130px;
}
#TextArea1 {
height: 95px;
margin-top: 0px;
}
.auto-style11 {
width: 448px;
}
.auto-style12 {
width: 407px;
}
.auto-style13 {
width: 372px;
}
</style>
</head>
<script type="text/javascript">
function loadFunction(file) {
var xmlhttp;
var a, x, y, i;
//alert("I am an alert box!");
if (window.XMLHttpRequest) {
//XMLHttpRequest object is used to exchange data with a server
xmlhttp = new XMLHttpRequest();
}
else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
//ActiveXObject enables and returns a reference to an Automation object
}
xmlhttp.onreadystatechange = function () {
//readyState property holds the status of the XMLHttpRequest
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
a = "<table>";
x =
xmlhttp.responseXML.documentElement.getElementsByTagName("Destination");
for (i = 0; i < x.length; i++) {
a = a + "<tr>";
y = x[i].getElementsByTagName("rate");
{
try {
a = a + "<td>" + y[0].firstChild.nodeValue + "</td>";
}
catch (er) {
a = a + "<td> </td>";
}
}
}
a = a + "</table>";
//alert(a);
//alert(" Display");
document.getElementById('Div1').innerHTML = a;
}
}
xmlhttp.open("GET", file, true);
xmlhttp.send();
}
</script>
<body onload="loadFunction('rates.xml')">
<script runat="server">
</script>
<form id="form1" runat="server">
<div>
</div>
<img src="Images/Quickconnect.png" style="width:1330px; height:170px"/>
<table class="auto-style1" >
<tr style="background-color:aqua; width: 1284px;">
<td colspan="6">
<asp:TextBox id="username" value="e-mail" runat="server"
style="background-color: silver; width: 180px; height: 18px; margin-right: 90px;"
OnTextChanged="username_TextChanged"></asp:TextBox>&nbsp &nbsp
<asp:TextBox id="tb2" value="*****" TextMode="password" runat="server"
style=" background-color:silver ; width: 180px; margin-right:90px" ></asp:TextBox>&nbsp
&nbsp
<asp:Button ID="bt1" Text="Login" runat="server" onClick="bt1_Click"
style=" background-color: olive ; width: 125px; margin-right:90px"></asp:Button>&nbsp
&nbsp
<asp:HyperLink ID="Home" runat="server" Text="Forgot My Password"
NavigateUrl="~/Passwordrecovery.aspx" style= "width: 125px; margin-
right:90px"></asp:HyperLink>&nbsp &nbsp
<asp:HyperLink ID="Home1" runat="server" Text="Sign Up"
NavigateUrl="~/NewAccount.aspx" style= "width: 125px"></asp:HyperLink>
<br />
<div style="float:left; width:42%; margin-left: 264px; text-align:center"
><asp:Label ID="Label1" runat="server" Text="User Not Logged In"
BackColor="YellowGreen"></asp:Label></div>
</td>
</tr>
<tr>
<td style=" background-color: black" >
<a href="HtmlPage3.html" style="color:orange">HOME</a>
</td>
<td style=" background-color: black">
<a href="Code/Howtocall.html" target="_blank" style="color:orange">HOW TO
CALL</a>
</td>
<td style=" background-color: black">
<asp:HyperLink NavigateUrl="~/Buycredit.aspx" id="buycr" runat="server"
Text="Buy Credit" Disabled="disabled"></asp:HyperLink>
</td>
<td style=" background-color: black">
<a href="../Documents/callingrates.pdf"; target="_blank"";
style="color:orange">RATES</a>
</td>
<td style=" background-color: black">
<a href="Home5" style="color:orange">HELP CENTER</a>
</td>
<td style=" background-color: black">
<a href="Home6" style="color:orange">CONTACT US</a>
</td>
</tr>
<tr>
<td colspan="2" style="background-color:purple">
<label style="color:white"> Our Promise</label>
</td>
<td colspan="2" style="background-color:purple">
<label style="color:white">Calling Rates</label>
</td>
<td colspan="2" style="background-color:purple">
<label style="color:white">How It Works</label>
</td>
</tr>
</table>
<table class="auto-style1"">
<tr>
<td class="auto-style12" style="background-color:orange; color:brown">
+ No Hidden Charges <br /> + PINLess Dialing <br /> + Balance Never Expires
<br /> + Munite Rounding <br /> + 100% Quality Guarantee
</td>
<td style="background-color:orange; color:brown;" class="auto-style13">
<div id="Div1" style="height:135px;width:369px; border:1px solid
#ccc;overflow:auto;background-color:#e46161">
Argentina&nbsp;&nbsp; 1.6 Cents<br />
Brazil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.4 Cents<br />
China&nbsp;&nbsp; 2.8 Cents<br />
India&nbsp;&nbsp;&nbsp;&nbsp; 3.5 Cents<br />
Russia&nbsp;&nbsp; 2.3 Cents<br />
<br />
</div>
<div>
<a href="../Documents/callingrates.pdf"; target="_blank""> Click Here For
More Rates</a>
</div>
</td>
<td style="background-color:orange; color:brown">
+ Sign Up <br /> + Buy Credit & pay with any major credit, debit card or
paypal <br /> + Dial the access number and reach the destination<br /><br /><br />
</td>
</tr>
</table>
<table style="width: 1329px; height: 156px; margin-bottom: 9px;">
<tr>
<td class="auto-style12"></td>
<td class="auto-style11" style="font-family: Arial, Helvetica, sans-serif;
font-size: medium">
<br />
<a href="../Documents/privacypolicy.pdf" target="_blank">Privacy
Policy</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../Documents/t&c.pdf" target="_blank" style="vertical-align:auto;
font-size: medium; font-family: Arial, Helvetica, sans-serif;">Terms & Conditions</a>
<br /><br />
<img src="Images/creditcards.png" style="vertical-align: middle; height:
30px" /><br /><br /><br />
&nbsp;
<a href="HtmlPage1.html" target= "new" style="font-size:small">@2013
Quickconnect.Inc. All rights reserved to Quickconnect.Ltd</a>
</td>
<td></td>
</tr>
</table>
</form>
</body>
</html>
Quickconnect.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication5;
using System.Text;
using System.Drawing;
namespace Webapplication5
{
public partial class Quickconnect : System.Web.UI.Page
{
Customer curcust;
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
namespace Quickconnect
{
public partial class Quickconnect : System.Web.UI.Page
{
protected void bt1_Click(object sender, EventArgs e)
{
if (bt1.Text == "Login")
{
bt1.Text = "Logout";
Label1.Text = "Welcome User";
username.Enabled = false;
tb2.Enabled = false;
buycr.Enabled = true;
}
else if (bt1.Text == "Logout")
{
bt1.Text = "Login";
Label1.Text = "User Not Logged In";
username.Enabled = true;
tb2.Enabled = true;
buycr.Enabled = false;
Session.Abandon();
}
}
protected void username_TextChanged(object sender, EventArgs e)
{
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Logout Screen:
User Registration webpage:
NewAccount.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewAccount.aspx.cs"
Inherits="Quickconnect.NewAccount" %>
<!DOCTYPE html>
<script runat="server">
protected void tb_TextChanged(object sender, EventArgs e)
{
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>New Account</title>
<style type="text/css">
.auto-style2
{
width: 100%;
}
.auto-style4 {
width: 1151px;
}
#AgreeButton {
width: 173px;
height: 28px;
margin-top: 0px;
}
.auto-style5 {
width: 347px;
}
#TextBox1 {
height: 19px;
}
.auto-style6 {
width: 347px;
height: 74px;
}
.auto-style7 {
width: 1151px;
height: 74px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<img src="Images/Quickconnect.png" style="width:100%; height:170px"/>
<div style="float:left; width:100%; margin-left: 0px; text-align:left;
background-color:brown; height: 25px;" ><asp:Label style="width:100%" ID="Label2"
runat="server" Text="Enter Your Information" ></asp:Label></div>
<table class="auto-style2"><body bgcolor="#999999"></body>
<tr>
<td class="auto-style6"><b>1.Set up your account</b></td>
<td class="auto-style7">Email Adress* (You will use this to login to your
account)<br />
<asp:RegularExpressionValidator ID="emailreg" ControlToValidate="tb"
EnableClientScript="false" Display="Dynamic"
ValidationExpression="(w[-._w]*w@w[-._w]*w.w{2,3})" runat="server"
ErrorMessage="Invalid Email, please enter your valid Email ID" style="position:absolute;
top: 264px; left: 547px; width: 328px;" ForeColor="Red"/>
<asp:TextBox id="tb" runat="server" Enabled="True"
OnTextChanged="tb_TextChanged" AutoPostBack="true" style="position:absolute; top: 257px;
left: 324px; height: 22px; width: 195px;"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:RequiredFieldValidator ID="emailvalid" ControlToValidate="tb"
EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Required Email
ID" />
</td>
</tr>
<tr>
<td class="auto-style5">&nbsp;</td>
<td class="auto-style4">Choose a Password*<br />
<asp:TextBox ID="TextBox2" TextMode="password" runat="server" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator2"
runat="server"
ErrorMessage="Password must be between 6-20
characters, contain at least one lowercase, one uppercase and one special symbol like @#$
%."
ControlToValidate="TextBox2"
ValidationExpression="((?=.*d)(?=.*[a-z])(?=.*[A-Z])
(?=.*[@#$%]).{6,20})" />
<asp:RequiredFieldValidator ID="Reqpwd" ControlToValidate="Textbox2"
EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Password
Required" />
</td>
</tr>
<tr>
<td class="auto-style5">&nbsp;</td>
<td class="auto-style4">Re enter Password*<br />
<asp:TextBox ID="TextBox3" TextMode="password" runat="server" />
<asp:RegularExpressionValidator
ID="RegularExpressionValidator4" runat="server"
ErrorMessage="Password must be between 6-20
characters, contain at least one lowercase, one uppercase and one special symbol like @#$
%."
ControlToValidate="TextBox3"
ValidationExpression="((?=.*d)(?=.*[a-z])(?=.*[A-Z])
(?=.*[@#$%]).{6,20})" />
<asp:RequiredFieldValidator ID="rereqpwd"
ControlToValidate="Textbox3" EnableClientScript="false" Display="Dynamic" runat="server"
ErrorMessage="Please Re-enter The Password" />
<asp:CompareValidator id="comparePasswords"
runat="server"
ControlToCompare="TextBox2"
ControlToValidate="TextBox3"
ErrorMessage="Your passwords do not match up!"
Display="Dynamic" />
<span id="RequiredFieldValidator2"
style="visibility:hidden;">required</span>
<span id="RegularExpressionValidator3"
style="visibility:hidden;"></span>
</td>
</tr>
<tr>
<td class="auto-style5"><b>2. Enter Your Personal information</b></td>
<td class="auto-style4">Legal First Name*<br />
<asp:TextBox ID="firstname" runat="server" Text="" MaxLength="25"
AutoPostBack="true" Width="168px"/>
<asp:RequiredFieldValidator ID="FirstnameReq"
ControlToValidate="firstname" EnableClientScript="false" Display="Dynamic" runat="server"
ErrorMessage="Enter a Value" />
<asp:RegularExpressionValidator ID="FirstnameReg"
ControlToValidate="firstname" EnableClientScript="false" Display="Dynamic"
ValidationExpression="^[a-zA-Z''-'s]{1,40}$" runat="server" ErrorMessage="Name Field
conatain 1-40 characters and Only Alphabetical Characters Allowed"/>
</td>
</tr>
<tr>
<td class="auto-style5">&nbsp;</td>
<td class="auto-style4">Legal Last Name*<br />
<asp:TextBox ID="lname" runat="server" Text="" MaxLength="25"
AutoPostBack="true" Width="166px" />
<asp:RequiredFieldValidator ID="LnameReq" ControlToValidate="lname"
EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value"
/>
<asp:RegularExpressionValidator ID="LnameReg"
ControlToValidate="lname" EnableClientScript="false" Display="Dynamic"
ValidationExpression="^[a-zA-Z''-'s]{1,40}$" runat="server" ErrorMessage="Name Field
conatain 1-40 characters and Only Alphabetical Characters Allowed"/>
</td>
</tr>
<tr>
<td class="auto-style5">&nbsp;</td>
<td class="auto-style4">Full Address(House/Apt #, Street, City, State/
Comma Seperated )*<br />
<asp:TextBox ID="Addr" runat="server" Text="" MaxLength="50"
AutoPostBack="true" Width="166px" />
<asp:RequiredFieldValidator ID="Address" ControlToValidate="Addr"
EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value"
/>
<asp:RegularExpressionValidator ID="AddressReg"
ControlToValidate="Addr" EnableClientScript="false" Display="Dynamic"
ValidationExpression="^[a-zA-Z0-9',]{0,150}$" runat="server" ErrorMessage="Address
contains letters, numbers separated by comma "/>
</td>
</tr>
<tr>
<td class="auto-style5">&nbsp;</td>
<td class="auto-style4">Contact Number*<br />
<asp:TextBox ID="phone" runat="server" Text="" MaxLength="14"
AutoPostBack="true" Width="174px" />
<asp:RequiredFieldValidator ID="PhoneReq" ControlToValidate="phone"
EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value"
/>
<asp:RegularExpressionValidator ID="PhoneReg"
ControlToValidate="phone" EnableClientScript="false" Display="Dynamic"
ValidationExpression="^[01]?[- .]?(([2-9]d{2})|[2-9]d{2})[- .]?d{3}[- .]?d{4}$"
runat="server" ErrorMessage=" must consist of 3 numeric characters, optionally enclosed
in parentheses, followed by a set of 3 numeric characters and then a set of 4 numeric
characters"/>
</td>
</tr>
</table>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Createacount" runat="server" Text="Create The Account"
OnClick="Createacount_Click" />
<asp:Button ID="Button2" Text="Goto Main Page" runat="server" Enabled="True"
style="position:absolute; top: 614px; left: 330px; height: 26px; width: 171px;"
onClick="Button2_Click" />
</form>
</body>
</html>
NewAccount.aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication5;
using System.Text;
namespace Quickconnect
{
public partial class NewAccount : System.Web.UI.Page
{
Customer curcust;
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
Page.Validate();
if (!(String.IsNullOrEmpty(TextBox2.Text.Trim())))
{
TextBox2.Attributes["value"] = TextBox2.Text;
}
if (!(String.IsNullOrEmpty(Reqpwd.Text.Trim())))
{
Reqpwd.Attributes["value"] = Reqpwd.Text;
}
List<Customer> cuslist = Application["customerlist"] as List<Customer>;
foreach (Customer cus in cuslist)
{
if (tb.Text == cus.EmailAddress)
{
StringBuilder cstext1 = new StringBuilder();
cstext1.Append("<script type=text/javascript> alert('Email
Already Exists. Go to MainPage!') </");
cstext1.Append("script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "Email",
cstext1.ToString());
}
}
}
if (Request.QueryString["TextBox1"] != null)
{
String strUserName = Request.QueryString["TextBox1"];
//Check userName Here
String strReturnStatus = "false";
Response.Clear();
Response.Write(strReturnStatus);
Response.End();
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Server.Transfer("Quickconnect.aspx", true);
}
protected void tb_TextChanged(object sender, EventArgs e)
{
}
protected void Createacount_Click(object sender, EventArgs e)
{
Customer aCustomer = new Customer();
aCustomer.ContactPhone = phone.Text;
aCustomer.FirstName = firstname.Text;
aCustomer.LastName = lname.Text;
aCustomer.EmailAddress = tb.Text;
aCustomer.Password = TextBox2.Text;
aCustomer.FullAddress=Addr.Text;
Session["currentCutomer"]=aCustomer;
// Session["currentCutomer”] = aCustomer;
List<Customer> customersList = Application["CustomerList"] as List<Customer>;
customersList.Add(aCustomer);
Messagebox("Your Account has been created. Please go to the main page and Login.
Have fun!!");
}
private void Messagebox(string p)
{
throw new NotImplementedException();
}
}
}
Password Recovery:
Passwordrecovery.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Passwordrecovery.aspx.cs"
Inherits="Quickconnect.Passwordrecovery" %>
<!DOCTYPE html>
<script runat="server">
protected void tb_TextChanged(object sender, EventArgs e)
{
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>
Password Recovery Page
</title>
</head>
<script>
function Button1_Click() {
alert("Password sent to your Email address. Please check!");
}
</script>
<body>
<form id="form1" runat="server">
<div>
<img src="Images/Quickconnect.png" style="width:1330px; height:170px"/>
</div>
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" Font-
Size="Larger" ForeColor="Maroon" Text="Password Recovery"></asp:Label>
<br />
<br />
<br />
<asp:Label ID="Label2" runat="server" Font-Italic="True" ForeColor="#0066CC"
Text="Email Address *"></asp:Label>
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:TextBox id="tb" runat="server" Enabled="True" OnTextChanged="tb_TextChanged"
AutoPostBack="true" style="position:absolute; top: 250px; left: 140px; height: 22px;
width: 195px;"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" style="margin-left: 13px" Text="Recover
Password" Width="158px" />
<br />
<br />
<asp:Button ID="Button2" Text="Goto Main Page" runat="server" Enabled="True"
style="position:absolute; top: 304px; left: 150px; height: 26px; width: 171px;"
onClick="Button2_Click" />
<br />
<asp:RegularExpressionValidator ID="emailreg" ControlToValidate="tb"
EnableClientScript="false" Display="Dynamic"
ValidationExpression="(w[-._w]*w@w[-._w]*w.w{2,3})" runat="server"
ErrorMessage="Invalid Email, please enter your valid Email ID" style="position:absolute;
top: 334px; left: 133px;" ForeColor="Red"/>
<br />
<br />
<br />
<br />
</form>
</body>
</html>
Passwordrecovery.aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Quickconnect
{
public partial class Passwordrecovery : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack) { Page.Validate(); }
}
protected void Button2_Click(object sender, EventArgs e)
{
Server.Transfer("Quickconnect.aspx", true);
}
protected void tb_TextChanged(object sender, EventArgs e)
{
}
}
}
Customer Class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication5
{
public class Customer
{
private string emailAddress;
private string firstname;
private string lastname;
private string password;
private string fulladdress;
private string contactphone;
private string destination;
private string dolloramount;
private string minutes;
public Customer(){}
public string EmailAddress
{
get{return emailAddress; }
set{emailAddress=value;}
}
public string Password
{
get{return password;}
set{password=value;}
}
public string FirstName
{
get{return firstname; }
set{firstname=value;}
}
public string LastName
{
get{return lastname; }
set{lastname=value;}
}
public string FullAddress
{
get{return fulladdress; }
set{fulladdress=value;}
}
public string ContactPhone
{
get{return contactphone; }
set{contactphone=value;}
}
public string Destination
{
get{return destination; }
set{destination=value;}
}
public string DollorAmount
{
get{return dolloramount; }
set{dolloramount=value;}
}
public string Minutes
{
get{return minutes; }
set{minutes=value;}
}
}
}

More Related Content

QuickConnect

  • 1. STUDENT NAME : Anurag Guli STUDENT ID : 1285714 COURSE : Web Application Development COURSE CODE : CINF 4230 ASSIGNMENT : #5
  • 2. Quickconnect homepage: Source Code: Quickconnect.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Quickconnect.aspx.cs" Inherits="Quickconnect.Quickconnect" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Quickconnect Home Page</title> <script type="text/javascript"> function openPage() { if (GetCookie("username") != null) { window.location = "Buycredit.aspx"; } else { alert("You have to be a member,Please Register with us.") } } </script> <style type="text/css"> .auto-style1 { height: 101px;
  • 3. width: 1330px; } #Button1 { width: 130px; } #TextArea1 { height: 95px; margin-top: 0px; } .auto-style11 { width: 448px; } .auto-style12 { width: 407px; } .auto-style13 { width: 372px; } </style> </head> <script type="text/javascript"> function loadFunction(file) { var xmlhttp; var a, x, y, i; //alert("I am an alert box!"); if (window.XMLHttpRequest) { //XMLHttpRequest object is used to exchange data with a server xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //ActiveXObject enables and returns a reference to an Automation object } xmlhttp.onreadystatechange = function () { //readyState property holds the status of the XMLHttpRequest if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { a = "<table>"; x = xmlhttp.responseXML.documentElement.getElementsByTagName("Destination"); for (i = 0; i < x.length; i++) { a = a + "<tr>"; y = x[i].getElementsByTagName("rate"); { try { a = a + "<td>" + y[0].firstChild.nodeValue + "</td>"; } catch (er) { a = a + "<td> </td>"; } } } a = a + "</table>"; //alert(a); //alert(" Display"); document.getElementById('Div1').innerHTML = a; } }
  • 4. xmlhttp.open("GET", file, true); xmlhttp.send(); } </script> <body onload="loadFunction('rates.xml')"> <script runat="server"> </script> <form id="form1" runat="server"> <div> </div> <img src="Images/Quickconnect.png" style="width:1330px; height:170px"/> <table class="auto-style1" > <tr style="background-color:aqua; width: 1284px;"> <td colspan="6"> <asp:TextBox id="username" value="e-mail" runat="server" style="background-color: silver; width: 180px; height: 18px; margin-right: 90px;" OnTextChanged="username_TextChanged"></asp:TextBox>&nbsp &nbsp <asp:TextBox id="tb2" value="*****" TextMode="password" runat="server" style=" background-color:silver ; width: 180px; margin-right:90px" ></asp:TextBox>&nbsp &nbsp <asp:Button ID="bt1" Text="Login" runat="server" onClick="bt1_Click" style=" background-color: olive ; width: 125px; margin-right:90px"></asp:Button>&nbsp &nbsp <asp:HyperLink ID="Home" runat="server" Text="Forgot My Password" NavigateUrl="~/Passwordrecovery.aspx" style= "width: 125px; margin- right:90px"></asp:HyperLink>&nbsp &nbsp <asp:HyperLink ID="Home1" runat="server" Text="Sign Up" NavigateUrl="~/NewAccount.aspx" style= "width: 125px"></asp:HyperLink> <br /> <div style="float:left; width:42%; margin-left: 264px; text-align:center" ><asp:Label ID="Label1" runat="server" Text="User Not Logged In" BackColor="YellowGreen"></asp:Label></div> </td> </tr> <tr> <td style=" background-color: black" > <a href="HtmlPage3.html" style="color:orange">HOME</a> </td> <td style=" background-color: black"> <a href="Code/Howtocall.html" target="_blank" style="color:orange">HOW TO CALL</a> </td> <td style=" background-color: black"> <asp:HyperLink NavigateUrl="~/Buycredit.aspx" id="buycr" runat="server" Text="Buy Credit" Disabled="disabled"></asp:HyperLink> </td> <td style=" background-color: black"> <a href="../Documents/callingrates.pdf"; target="_blank""; style="color:orange">RATES</a> </td> <td style=" background-color: black"> <a href="Home5" style="color:orange">HELP CENTER</a>
  • 5. </td> <td style=" background-color: black"> <a href="Home6" style="color:orange">CONTACT US</a> </td> </tr> <tr> <td colspan="2" style="background-color:purple"> <label style="color:white"> Our Promise</label> </td> <td colspan="2" style="background-color:purple"> <label style="color:white">Calling Rates</label> </td> <td colspan="2" style="background-color:purple"> <label style="color:white">How It Works</label> </td> </tr> </table> <table class="auto-style1""> <tr> <td class="auto-style12" style="background-color:orange; color:brown"> + No Hidden Charges <br /> + PINLess Dialing <br /> + Balance Never Expires <br /> + Munite Rounding <br /> + 100% Quality Guarantee </td> <td style="background-color:orange; color:brown;" class="auto-style13"> <div id="Div1" style="height:135px;width:369px; border:1px solid #ccc;overflow:auto;background-color:#e46161"> Argentina&nbsp;&nbsp; 1.6 Cents<br /> Brazil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.4 Cents<br /> China&nbsp;&nbsp; 2.8 Cents<br /> India&nbsp;&nbsp;&nbsp;&nbsp; 3.5 Cents<br /> Russia&nbsp;&nbsp; 2.3 Cents<br /> <br /> </div> <div> <a href="../Documents/callingrates.pdf"; target="_blank""> Click Here For More Rates</a> </div> </td> <td style="background-color:orange; color:brown"> + Sign Up <br /> + Buy Credit & pay with any major credit, debit card or paypal <br /> + Dial the access number and reach the destination<br /><br /><br /> </td> </tr> </table> <table style="width: 1329px; height: 156px; margin-bottom: 9px;"> <tr> <td class="auto-style12"></td> <td class="auto-style11" style="font-family: Arial, Helvetica, sans-serif; font-size: medium"> <br />
  • 6. <a href="../Documents/privacypolicy.pdf" target="_blank">Privacy Policy</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="../Documents/t&c.pdf" target="_blank" style="vertical-align:auto; font-size: medium; font-family: Arial, Helvetica, sans-serif;">Terms & Conditions</a> <br /><br /> <img src="Images/creditcards.png" style="vertical-align: middle; height: 30px" /><br /><br /><br /> &nbsp; <a href="HtmlPage1.html" target= "new" style="font-size:small">@2013 Quickconnect.Inc. All rights reserved to Quickconnect.Ltd</a> </td> <td></td> </tr> </table> </form> </body> </html> Quickconnect.aspx.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using WebApplication5; using System.Text; using System.Drawing; namespace Webapplication5 { public partial class Quickconnect : System.Web.UI.Page { Customer curcust; protected void Page_Load(object sender, EventArgs e) { } } } namespace Quickconnect { public partial class Quickconnect : System.Web.UI.Page { protected void bt1_Click(object sender, EventArgs e) { if (bt1.Text == "Login") { bt1.Text = "Logout"; Label1.Text = "Welcome User";
  • 7. username.Enabled = false; tb2.Enabled = false; buycr.Enabled = true; } else if (bt1.Text == "Logout") { bt1.Text = "Login"; Label1.Text = "User Not Logged In"; username.Enabled = true; tb2.Enabled = true; buycr.Enabled = false; Session.Abandon(); } } protected void username_TextChanged(object sender, EventArgs e) { } protected void Page_Load(object sender, EventArgs e) { } } } Logout Screen:
  • 8. User Registration webpage: NewAccount.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewAccount.aspx.cs" Inherits="Quickconnect.NewAccount" %> <!DOCTYPE html> <script runat="server"> protected void tb_TextChanged(object sender, EventArgs e) { } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>New Account</title> <style type="text/css"> .auto-style2 { width: 100%; } .auto-style4 { width: 1151px; } #AgreeButton { width: 173px; height: 28px; margin-top: 0px;
  • 9. } .auto-style5 { width: 347px; } #TextBox1 { height: 19px; } .auto-style6 { width: 347px; height: 74px; } .auto-style7 { width: 1151px; height: 74px; } </style> </head> <body> <form id="form1" runat="server"> <img src="Images/Quickconnect.png" style="width:100%; height:170px"/> <div style="float:left; width:100%; margin-left: 0px; text-align:left; background-color:brown; height: 25px;" ><asp:Label style="width:100%" ID="Label2" runat="server" Text="Enter Your Information" ></asp:Label></div> <table class="auto-style2"><body bgcolor="#999999"></body> <tr> <td class="auto-style6"><b>1.Set up your account</b></td> <td class="auto-style7">Email Adress* (You will use this to login to your account)<br /> <asp:RegularExpressionValidator ID="emailreg" ControlToValidate="tb" EnableClientScript="false" Display="Dynamic" ValidationExpression="(w[-._w]*w@w[-._w]*w.w{2,3})" runat="server" ErrorMessage="Invalid Email, please enter your valid Email ID" style="position:absolute; top: 264px; left: 547px; width: 328px;" ForeColor="Red"/> <asp:TextBox id="tb" runat="server" Enabled="True" OnTextChanged="tb_TextChanged" AutoPostBack="true" style="position:absolute; top: 257px; left: 324px; height: 22px; width: 195px;"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:RequiredFieldValidator ID="emailvalid" ControlToValidate="tb" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Required Email ID" /> </td> </tr> <tr> <td class="auto-style5">&nbsp;</td> <td class="auto-style4">Choose a Password*<br /> <asp:TextBox ID="TextBox2" TextMode="password" runat="server" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Password must be between 6-20 characters, contain at least one lowercase, one uppercase and one special symbol like @#$ %." ControlToValidate="TextBox2"
  • 10. ValidationExpression="((?=.*d)(?=.*[a-z])(?=.*[A-Z]) (?=.*[@#$%]).{6,20})" /> <asp:RequiredFieldValidator ID="Reqpwd" ControlToValidate="Textbox2" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Password Required" /> </td> </tr> <tr> <td class="auto-style5">&nbsp;</td> <td class="auto-style4">Re enter Password*<br /> <asp:TextBox ID="TextBox3" TextMode="password" runat="server" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Password must be between 6-20 characters, contain at least one lowercase, one uppercase and one special symbol like @#$ %." ControlToValidate="TextBox3" ValidationExpression="((?=.*d)(?=.*[a-z])(?=.*[A-Z]) (?=.*[@#$%]).{6,20})" /> <asp:RequiredFieldValidator ID="rereqpwd" ControlToValidate="Textbox3" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Please Re-enter The Password" /> <asp:CompareValidator id="comparePasswords" runat="server" ControlToCompare="TextBox2" ControlToValidate="TextBox3" ErrorMessage="Your passwords do not match up!" Display="Dynamic" /> <span id="RequiredFieldValidator2" style="visibility:hidden;">required</span> <span id="RegularExpressionValidator3" style="visibility:hidden;"></span> </td> </tr> <tr> <td class="auto-style5"><b>2. Enter Your Personal information</b></td> <td class="auto-style4">Legal First Name*<br /> <asp:TextBox ID="firstname" runat="server" Text="" MaxLength="25" AutoPostBack="true" Width="168px"/> <asp:RequiredFieldValidator ID="FirstnameReq" ControlToValidate="firstname" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value" /> <asp:RegularExpressionValidator ID="FirstnameReg" ControlToValidate="firstname" EnableClientScript="false" Display="Dynamic" ValidationExpression="^[a-zA-Z''-'s]{1,40}$" runat="server" ErrorMessage="Name Field conatain 1-40 characters and Only Alphabetical Characters Allowed"/> </td> </tr> <tr> <td class="auto-style5">&nbsp;</td> <td class="auto-style4">Legal Last Name*<br /> <asp:TextBox ID="lname" runat="server" Text="" MaxLength="25" AutoPostBack="true" Width="166px" /> <asp:RequiredFieldValidator ID="LnameReq" ControlToValidate="lname" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value" /> <asp:RegularExpressionValidator ID="LnameReg" ControlToValidate="lname" EnableClientScript="false" Display="Dynamic"
  • 11. ValidationExpression="^[a-zA-Z''-'s]{1,40}$" runat="server" ErrorMessage="Name Field conatain 1-40 characters and Only Alphabetical Characters Allowed"/> </td> </tr> <tr> <td class="auto-style5">&nbsp;</td> <td class="auto-style4">Full Address(House/Apt #, Street, City, State/ Comma Seperated )*<br /> <asp:TextBox ID="Addr" runat="server" Text="" MaxLength="50" AutoPostBack="true" Width="166px" /> <asp:RequiredFieldValidator ID="Address" ControlToValidate="Addr" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value" /> <asp:RegularExpressionValidator ID="AddressReg" ControlToValidate="Addr" EnableClientScript="false" Display="Dynamic" ValidationExpression="^[a-zA-Z0-9',]{0,150}$" runat="server" ErrorMessage="Address contains letters, numbers separated by comma "/> </td> </tr> <tr> <td class="auto-style5">&nbsp;</td> <td class="auto-style4">Contact Number*<br /> <asp:TextBox ID="phone" runat="server" Text="" MaxLength="14" AutoPostBack="true" Width="174px" /> <asp:RequiredFieldValidator ID="PhoneReq" ControlToValidate="phone" EnableClientScript="false" Display="Dynamic" runat="server" ErrorMessage="Enter a Value" /> <asp:RegularExpressionValidator ID="PhoneReg" ControlToValidate="phone" EnableClientScript="false" Display="Dynamic" ValidationExpression="^[01]?[- .]?(([2-9]d{2})|[2-9]d{2})[- .]?d{3}[- .]?d{4}$" runat="server" ErrorMessage=" must consist of 3 numeric characters, optionally enclosed in parentheses, followed by a set of 3 numeric characters and then a set of 4 numeric characters"/> </td> </tr> </table> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Button ID="Createacount" runat="server" Text="Create The Account" OnClick="Createacount_Click" /> <asp:Button ID="Button2" Text="Goto Main Page" runat="server" Enabled="True" style="position:absolute; top: 614px; left: 330px; height: 26px; width: 171px;" onClick="Button2_Click" /> </form> </body> </html> NewAccount.aspx.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web;
  • 12. using System.Web.UI; using System.Web.UI.WebControls; using WebApplication5; using System.Text; namespace Quickconnect { public partial class NewAccount : System.Web.UI.Page { Customer curcust; protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { Page.Validate(); if (!(String.IsNullOrEmpty(TextBox2.Text.Trim()))) { TextBox2.Attributes["value"] = TextBox2.Text; } if (!(String.IsNullOrEmpty(Reqpwd.Text.Trim()))) { Reqpwd.Attributes["value"] = Reqpwd.Text; } List<Customer> cuslist = Application["customerlist"] as List<Customer>; foreach (Customer cus in cuslist) { if (tb.Text == cus.EmailAddress) { StringBuilder cstext1 = new StringBuilder(); cstext1.Append("<script type=text/javascript> alert('Email Already Exists. Go to MainPage!') </"); cstext1.Append("script>"); Page.ClientScript.RegisterStartupScript(this.GetType(), "Email", cstext1.ToString()); } } } if (Request.QueryString["TextBox1"] != null) { String strUserName = Request.QueryString["TextBox1"]; //Check userName Here String strReturnStatus = "false"; Response.Clear(); Response.Write(strReturnStatus); Response.End(); } } protected void Button2_Click(object sender, EventArgs e) { Server.Transfer("Quickconnect.aspx", true); }
  • 13. protected void tb_TextChanged(object sender, EventArgs e) { } protected void Createacount_Click(object sender, EventArgs e) { Customer aCustomer = new Customer(); aCustomer.ContactPhone = phone.Text; aCustomer.FirstName = firstname.Text; aCustomer.LastName = lname.Text; aCustomer.EmailAddress = tb.Text; aCustomer.Password = TextBox2.Text; aCustomer.FullAddress=Addr.Text; Session["currentCutomer"]=aCustomer; // Session["currentCutomer”] = aCustomer; List<Customer> customersList = Application["CustomerList"] as List<Customer>; customersList.Add(aCustomer); Messagebox("Your Account has been created. Please go to the main page and Login. Have fun!!"); } private void Messagebox(string p) { throw new NotImplementedException(); } } } Password Recovery:
  • 14. Passwordrecovery.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Passwordrecovery.aspx.cs" Inherits="Quickconnect.Passwordrecovery" %> <!DOCTYPE html> <script runat="server"> protected void tb_TextChanged(object sender, EventArgs e) { } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title> Password Recovery Page </title> </head> <script> function Button1_Click() { alert("Password sent to your Email address. Please check!"); } </script> <body> <form id="form1" runat="server"> <div> <img src="Images/Quickconnect.png" style="width:1330px; height:170px"/> </div> <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" Font- Size="Larger" ForeColor="Maroon" Text="Password Recovery"></asp:Label> <br /> <br /> <br /> <asp:Label ID="Label2" runat="server" Font-Italic="True" ForeColor="#0066CC" Text="Email Address *"></asp:Label> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox id="tb" runat="server" Enabled="True" OnTextChanged="tb_TextChanged" AutoPostBack="true" style="position:absolute; top: 250px; left: 140px; height: 22px; width: 195px;"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
  • 15. bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Button ID="Button1" runat="server" style="margin-left: 13px" Text="Recover Password" Width="158px" /> <br /> <br /> <asp:Button ID="Button2" Text="Goto Main Page" runat="server" Enabled="True" style="position:absolute; top: 304px; left: 150px; height: 26px; width: 171px;" onClick="Button2_Click" /> <br /> <asp:RegularExpressionValidator ID="emailreg" ControlToValidate="tb" EnableClientScript="false" Display="Dynamic" ValidationExpression="(w[-._w]*w@w[-._w]*w.w{2,3})" runat="server" ErrorMessage="Invalid Email, please enter your valid Email ID" style="position:absolute; top: 334px; left: 133px;" ForeColor="Red"/> <br /> <br /> <br /> <br /> </form> </body> </html> Passwordrecovery.aspx.cs: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Quickconnect { public partial class Passwordrecovery : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { Page.Validate(); } } protected void Button2_Click(object sender, EventArgs e) { Server.Transfer("Quickconnect.aspx", true); } protected void tb_TextChanged(object sender, EventArgs e) { } } }
  • 16. Customer Class: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication5 { public class Customer { private string emailAddress; private string firstname; private string lastname; private string password; private string fulladdress; private string contactphone; private string destination; private string dolloramount; private string minutes; public Customer(){} public string EmailAddress { get{return emailAddress; } set{emailAddress=value;} } public string Password { get{return password;} set{password=value;} } public string FirstName { get{return firstname; } set{firstname=value;} } public string LastName { get{return lastname; } set{lastname=value;} }
  • 17. public string FullAddress { get{return fulladdress; } set{fulladdress=value;} } public string ContactPhone { get{return contactphone; } set{contactphone=value;} } public string Destination { get{return destination; } set{destination=value;} } public string DollorAmount { get{return dolloramount; } set{dolloramount=value;} } public string Minutes { get{return minutes; } set{minutes=value;} } } }