protected void Page_Load(object sender, EventArgs e) { #region Check Login CheckNetworkAdminSession(); #endregion Check Login #region Initialize Values and Form Execution IndustryId = CareerCruisingWeb.CCLib.Common.Strings.GetQueryString("IndustryId"); try { var stream = Request.InputStream; var file = ""; if (string.IsNullOrEmpty(Request["qqfile"])) { // IE HttpPostedFile postedFile = Request.Files[0]; stream = postedFile.InputStream; file = Path.GetFileName(Request.Files[0].FileName); } else { //Webkit, Mozilla file = CareerCruisingWeb.CCLib.Common.Strings.GetQueryString("qqfile"); } var fileUpload = new FileUpload(SavePath); SendJson(fileUpload.AddVideo(stream, file)); } catch (Exception ex) { SendJson(new Tuple<Char, String>('F', "There was an error while uploading the video. Please try again")); } #endregion Initialize Values and Form Execution #region Properties For The NetworkAdmin Base Class HasLeftButtons = false; HasRightMenuCorner = false; HasStatusBar = false; HasSubTitleBar = false; HasTopHeader = false; #endregion Properties For The NetworkAdmin Base Class }