mirror of
https://github.com/bvanroll/cs-oo-project.git
synced 2025-08-29 20:12:40 +00:00
yup
This commit is contained in:
27
Online Gokkantoor/Gui/addBalance.aspx.cs
Normal file
27
Online Gokkantoor/Gui/addBalance.aspx.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using Globals.classes;
|
||||
|
||||
namespace Gui
|
||||
{
|
||||
|
||||
public partial class addBalance : System.Web.UI.Page
|
||||
{
|
||||
public void add(Object o, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
double bal = double.Parse(balans.Text);
|
||||
((Person)HttpContext.Current.Application["user"]).balance += bal;
|
||||
Response.Redirect("mainForm.aspx");
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
statusLabel.Text = "There was a problem parsing the balance, try again. (format 0.00)";
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user