示例#1
0
        public string getUserName()
        {
            KCCWebService web      = new KCCWebService();
            DataTable     dt       = web.userShow(Session["userEmail"].ToString());
            string        userName = dt.Rows[0][0].ToString() + " " + dt.Rows[0][1].ToString();

            return(userName);
        }
        public void getUserDetails()
        {
            KCCWebService web = new KCCWebService();
            DataTable     dt  = web.userShow(Session["userEmail"].ToString());

            userinfo.DataSource = dt;
            userinfo.DataBind();
        }
示例#3
0
        public void getUserDetails()
        {
            KCCWebService web = new KCCWebService();
            DataTable     dt  = web.userShow(Session["userEmail"].ToString());

            userFirstName.Text = dt.Rows[0]["firstName"].ToString();
            userLastName.Text  = dt.Rows[0]["lastName"].ToString();
            userEmail.Text     = dt.Rows[0]["email"].ToString();
            userAddress.Text   = dt.Rows[0]["address"].ToString();
        }
示例#4
0
        public static string UserNameChecker(string uEmail)
        {
            string        retreval = "";
            KCCWebService web      = new KCCWebService();
            DataTable     dt       = web.userShow(uEmail);

            if (dt.Rows.Count > 0)
            {
                retreval = "true";
            }
            else
            {
                retreval = "false";
            }
            return(retreval);
        }