protected void Page_Load(object sender, EventArgs e) { try { BL.logic_User blmodel = new BL.logic_User(); Session["userinfo"] = blmodel.Login("", ""); } catch (Exception ex) { message = ex.Message; } }
protected void Page_Load(object sender, EventArgs e) { try { if (Request.Form["sb"] != null) { BL.logic_User blmodel = new BL.logic_User(); string uname = Request.Form["uname"]; string upwd = Request.Form["upwd"]; Session["userinfo"] = blmodel.Login(uname, upwd); Response.Redirect("upload.aspx", true); } } catch (Exception ex) { message = ex.Message; } }