protected void Page_Load(object sender, EventArgs e) { user = (Users)Session["USER"]; lblUserName.Text = user.UserName.ToString().Clean(); lblNameSurname.Text = user.NameSurname.ToString().Clean(); lblNameSurname2.Text = user.NameSurname.ToString().Clean(); lblNameSurname3.Text = user.NameSurname.ToString().Clean(); lblemail.Text = user.Email.ToString().Clean(); ImgContact.ImageUrl = "Content\\img\\ImgContact.jpg"; ImgProfilePhoto1.ImageUrl = user.ProfilePhoto.Clean(); ImgProfilePhoto2.ImageUrl = user.ProfilePhoto.Clean(); ImgProfilePhoto3.ImageUrl = user.ProfilePhoto.Clean(); if (ImgProfilePhoto1.ImageUrl == "") { ImgProfilePhoto1.ImageUrl = "Content\\img\\user2-160x160.jpg"; } if (ImgProfilePhoto2.ImageUrl == "") { ImgProfilePhoto2.ImageUrl = "Content\\img\\user2-160x160.jpg"; } if (ImgProfilePhoto3.ImageUrl == "") { ImgProfilePhoto3.ImageUrl = "Content\\img\\user2-160x160.jpg"; } languagess = jobs.Languages(); contacts = jobs.Contact(); pages = jobs.Pages(); productcategories = jobs.Productcategory(); products = jobs.Products(); notifications = jobs.NotificationTop5(); // Top 5 }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Process"] != null) { string Processs = Request.QueryString["Process"]; if (Processs == "ViewContact") { Prcs = ViewContactMessage.Process.ViewContact; id = Request.QueryString["id"].Clean(); Dictionary <string, string> condition = new Dictionary <string, string>(); condition.Add("id", id); contacts = jobs.Contact(condition); if (contacts.Count > 0) { PageTitle = Resources.Index.ViewContact; txtSenderName.Value = contacts[0].SenderName.ToString().Clean(); txtContactMessage.Value = contacts[0].ContactMessage.ToString().Clean(); int result = jobs.query("Update notifications set IsRead='" + true + "' where id='" + id + "'"); } else { PageTitle = Resources.Index.DataNotFound; Prcs = ViewContactMessage.Process.DataNotFound; } } } }
protected void Page_Load(object sender, EventArgs e) { contacts = jobs.Contact(); languagess = jobs.Languages(); PageTitle = Resources.Index.Contact; }