using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class jelentkezesilap : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnElkuld_Click(object sender, EventArgs e)
    {
        string path="";

        if (upload.PostedFile.ContentLength > 0) 
        { 
            path = Server.MapPath("~/oneletrajz/"+ txtVezeteknev.Text + "_" + upload.FileName); 
            upload.PostedFile.SaveAs(path); 
        }

        if (db.adatbazisMuveletek.palyazoRogzit(txtKersztnev.Text, txtVezeteknev.Text, txtSzulHely.Text, txtSzulIdo.Text, txtAllCim.Text, txtLevCim.Text,
        txtTel.Text, txtMail.Text, txtEgyeb.Text, txtRefSzam.Text, path) == true)
        {
            lblFile.Text = "AZ ÖNÉLETRAJZÁT SIKERESEN FELTÖLTÖTTÜK!!!";
            txtKersztnev.Text = ""; 
            txtVezeteknev.Text = "";
            txtSzulHely.Text= "";
            txtSzulIdo.Text="";
            txtAllCim.Text = "";
            txtLevCim.Text = "";
            txtTel.Text = "";
            txtMail.Text = "";
            txtEgyeb.Text = "";
            txtRefSzam.Text = "";
            lblFile.Visible = true;
            
        }

    }
}
