Beispiel #1
0
        public ActionResult newUser()
        {
            String email = "";

            email = Convert.ToString(Request.QueryString["email"]);
            if (email != "")
            {
                userDAO userObjDao = new userDAO();
                user    userObj    = userObjDao.getUserByEmail(email);
                ViewBag.txtId       = userObj.txtId;
                ViewBag.userImage   = userObj.userImage;
                ViewBag.txtName     = userObj.txtName;
                ViewBag.txtLogin    = userObj.txtLogin;
                ViewBag.txtPassword = userObj.txtPassword;
                ViewBag.txtEmail    = userObj.txtEmail;
                ViewBag.cmbGender   = userObj.cmbGender;
                ViewBag.txtAddress  = userObj.txtAddress;
                ViewBag.txtAge      = userObj.txtAge;
                ViewBag.txtCnic     = userObj.txtCnic;
                ViewBag.dateDob     = userObj.dateDob.ToString("yyyy-MM-dd");
                ViewBag.chkCricket  = userObj.chkCricket;
                ViewBag.chkHockey   = userObj.chkHockey;
                ViewBag.chkChess    = userObj.chkChess;
                return(View());
            }
            return(View());
        }
Beispiel #2
0
        public ActionResult home()
        {
            String  email      = Convert.ToString(Request.QueryString["email"]);
            userDAO userObjDao = new userDAO();
            user    userObj    = userObjDao.getUserByEmail(email);

            ViewBag.txtName = userObj.txtName;
            //String applicationBasePath=System.IO.Path.GetDirectoryName()
            ViewBag.userImage = userObj.userImage;
            ViewBag.txtEmail  = email;
            return(View());
        }