protected void btnSubmit_Click(object sender, EventArgs e) { try { objApplicationUserBLL = new BLL.ApplicationUserBLL(); objApplicationUserDTO = new DTO.ApplicationUserDTO(); objApplicationUserDTO.EmailId = Session["EmailId"].ToString(); objApplicationUserDTO.Password = txtNewPassword.Text; string Result = objApplicationUserBLL.ChangePassword(objApplicationUserDTO); if (Result == "True") { txtPassword.Text = txtNewPassword.Text = txtConPassword.Text = ""; lblMsg.Text = "Password Reset Successfully"; lblMsg.ForeColor = System.Drawing.Color.Green; } else { lblMsg.ForeColor = System.Drawing.Color.Red; lblMsg.Text = "Password Reset Fail"; } } catch (Exception ex) { } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { objApplicationUserBLL = new BLL.ApplicationUserBLL(); objApplicationUserDTO = new DTO.ApplicationUserDTO(); objApplicationUserDTO.EmailId = txtEmailID.Text; objApplicationUserDTO.MobileNo = txtMobileNo.Text; objApplicationUserDTO.Address = txtAddress.Text; string Result = objApplicationUserBLL.UpdateUserProfile(objApplicationUserDTO); if (Result != "0") { GetUserProfileDetails(); lblMsg.ForeColor = System.Drawing.Color.Green; lblMsg.Text = "Profile Updation Successfully"; } else { lblMsg.ForeColor = System.Drawing.Color.Red; lblMsg.Text = "Profile Updation Fail"; } } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { objApplicationuserBLL = new BLL.ApplicationUserBLL(); objApplicationUserDTO = new DTO.ApplicationUserDTO(); try { objApplicationUserDTO.EmailId = Session["EmailId"].ToString(); string count = objApplicationuserBLL.GetTotalUser_Pub_Sub_Subscriber(objApplicationUserDTO); lblTotalUsers.Text = count.Split('&')[0]; lblPublisherCount.Text = count.Split('&')[1]; lblOverallPublishContentCount.Text = count.Split('&')[2]; lblTotalSubscribe.Text = count.Split('&')[3]; //objPublishContentSubscribeBLL = new BLL.PublishContentSubscribeBLL(); //objPublishContentSubscribeDTO = new DTO.PublishContentSubscribeDTO(); //objPublishContentSubscribeDTO.EmailID = Session["EmailId"].ToString(); //DataTable tab = new DataTable(); //tab = objPublishContentSubscribeBLL.GetPublishContent_Top_5(objPublishContentSubscribeDTO); //rptImages.DataSource = tab; //rptImages.DataBind(); DataTable tab1 = new DataTable(); tab1 = objApplicationuserBLL.GetSubscriberRating_Top_5(objApplicationUserDTO); rptrating.DataSource = tab1; rptrating.DataBind(); } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { objApplicationuserBLL = new BLL.ApplicationUserBLL(); try { string count = objApplicationuserBLL.GetTotalUser_Pub_Sub(); lblTotalUsers.Text = count.Split('&')[0]; lblPublisherCount.Text = count.Split('&')[1]; lblSubscriberCount.Text = count.Split('&')[2]; lblTotalPublishContent.Text = count.Split('&')[3]; } catch (Exception ex) { } }
private void GetUserProfileDetails() { try { objApplicationUserBLL = new BLL.ApplicationUserBLL(); objApplicationUserDTO = new DTO.ApplicationUserDTO(); objApplicationUserDTO.EmailId = Session["EmailId"].ToString(); objApplicationUserDTO.UserType = Session["UserType"].ToString(); DataTable loaddata = new DataTable(); loaddata = objApplicationUserBLL.GetUserProfile_Details(objApplicationUserDTO); if (loaddata.Rows.Count > 0) { txtEmailID.Text = loaddata.Rows[0][0].ToString(); txtMobileNo.Text = loaddata.Rows[0][1].ToString(); txtAddress.Text = loaddata.Rows[0][2].ToString(); } } catch (Exception ex) { } }