示例#1
0
        private void metroButton3_Click(object sender, EventArgs e)
        {
            this.Hide();
            aboutus x = new aboutus();

            x.Show();
        }
示例#2
0
        private void aboutUsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            aboutus abs = new aboutus();

            abs.Visible = true;
            //MessageBox.Show("You Can Store all your Photos In Online Gallery Mangament System And This Will be Secured In All Ways\n\t ThankYou");
        }
示例#3
0
        public ActionResult aboutus(aboutus abs, List <HttpPostedFileBase> f1)
        {
            string fileLocation         = "";
            string ItemUploadFolderPath = "~/DataFile/";

            foreach (HttpPostedFileBase file in f1)
            {
                try
                {
                    if (file.ContentLength == 0)
                    {
                        continue;
                    }

                    if (file.ContentLength > 0)
                    {
                        fileLocation = HelperFunctions.renameUploadFile(file, ItemUploadFolderPath);
                        if (fileLocation == "")
                        {
                            fileLocation = "";
                        }
                    }
                }
                catch (Exception ex)
                {
                }
                if (fileLocation == "" || fileLocation == null)
                {
                    abs.image = abs.image;
                }
                else
                {
                    abs.image = fileLocation;
                }
            }
            try
            {
                if (dl.Insertaboutus(abs) > 0)
                {
                    TempData["MSG"] = "Data Saved!";
                }
            }
            catch (Exception ex)
            {
                return(Redirect("/admin"));
            }
            return(Redirect("/admin/aboutus"));
        }