private void metroButton3_Click(object sender, EventArgs e) { this.Hide(); aboutus x = new aboutus(); x.Show(); }
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"); }
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")); }