コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            tCustomer t = Session[CDictionary.LOGIN_USER] as tCustomer;

            if (t == null)
            {
                Response.Redirect("WfLogIn.aspx");
            }
            Label1.Text = "目前使用者:" + t.fName + "[" + t.fEmail + "]";
        }
コード例 #2
0
        protected void btSubmit_Click(object sender, EventArgs e)
        {
            int       pw = Convert.ToInt32(txtId.Text);
            tCustomer x  = (new dbDataDataContext()).tCustomer.FirstOrDefault(
                t => t.fEmail.Equals(txtMail.Text) && t.fId == pw);

            if (x != null)
            {
                Session[CDictionary.LOGIN_USER] = x;
                Response.Redirect("WfHome.aspx");
            }
            lblMessage.Visible = true;
            lblMessage.Text    = "Wrong password or Email";
        }
コード例 #3
0
 partial void DeletetCustomer(tCustomer instance);
コード例 #4
0
 partial void UpdatetCustomer(tCustomer instance);
コード例 #5
0
 partial void InserttCustomer(tCustomer instance);