public ActionResult edit(int id)
        {
            studentdal   dal   = new studentdal();
            studentmodel model = dal.Find(id);

            return(View(model));
        }
        public ActionResult getprofiledetails()
        {
            int          loginid = Convert.ToInt32(Session["loginid"]);
            studentdal   dal     = new studentdal();
            studentmodel model   = dal.Find(loginid);

            ViewBag.id           = model.studentid;
            ViewBag.name         = model.studentname;
            ViewBag.imageaddress = model.studentimageaddress;
            return(PartialView("myprofilepartialview"));
        }