protected void Button1_Click(object sender, EventArgs e) { //try //{ if (Page.IsValid) { int ecode; string startdate, enddate; DateTime from, to; startdate = TextBox1.Text; enddate = TextBox2.Text; from = Convert.ToDateTime(startdate); to = Convert.ToDateTime(enddate); ecode = Convert.ToInt32(DropDownList1.SelectedValue); d.delegateAuthority(headcode, ecode, from, to); if (from.CompareTo(DateTime.Now) <= 0) { d.executeDelegation(); FormsAuthentication.SignOut(); FormsAuthentication.RedirectToLoginPage(); } else { MessageBox1.Show(this.Page, "Delegation completed. This delegation will trigger on " + startdate); } } //} //catch (Exception ex) //{ // MessageBox1.Show(this.Page, "delegation failed. try again"); // System.Diagnostics.Debug.WriteLine(ex); //} }
protected bool ValidateInventory(Product p, string qty) { bool result = true; decimal quantity = 1; decimal.TryParse(qty, out quantity); if (quantity < 1) { return(true); } InventoryCheckData inv = MTApp.CatalogServices.InventoryCheck(p, string.Empty); if (inv.IsAvailableForSale && inv.Qty >= quantity) { result = true; } else { result = false; if (inv.IsAvailableForSale == true) { MessageBox1.ShowWarning("Only " + inv.Qty.ToString() + " of the item " + p.Sku + " are available for purchase. Please adjust your requested amount."); } } return(result); }
protected void ModalUpdate_OnClick(object sender, EventArgs e) { try { string course = Modal.Text.Trim(); if (course.Equals("")) { throw new Exception("Course is required"); } if (course.Length > 500 || course.Length <= 0) { throw new Exception("Course length must be between 1 and 500 characters"); } if (ConnectToSql(0, "Update")) { MessageBox1.Add( "Sucessfully Updated the Course: [" + Modal.Text + "] of type [" + ModalType.SelectedItem.Text + @"].", MessageStatus.Success); } } catch (Exception exception) { ModalMessageBox.Add(exception.Message, MessageStatus.Error); ScriptManager.RegisterStartupScript(this, GetType(), "onrowcommandscript1", @" var obj = document.getElementById('" + Modal.ClientID + "'); " + "taCount(obj,'ModalCounter', 500);", true); ScriptManager.RegisterStartupScript(this, GetType(), "onrowcommandscript2", "$('#Modal').modal({backdrop: 'static', keyboard: false}).modal('show');", true); } ConnectToSql(0, "Form"); BindControls("Form"); }
private void Delete_Userdetals(string id) { try { objServiceTimelinesBEL.DeptID = Convert.ToInt32(id); objServiceTimelinesBEL.username = UserName.Trim(); DataSet result = objServiceTimelinesBLL.DeleteDepartment(objServiceTimelinesBEL); if (result.Tables.Count > 0) { MessageBox1.ShowSuccess(result.Tables[0].Rows[0][0].ToString()); clear(); bindgridDepartments(); } else { MessageBox1.ShowError("Some Error Occured"); } } catch (Exception ex) { Response.Write("Oops! error occured :" + ex.Message.ToString()); } }
protected override bool Save() { Product product = MTApp.CatalogServices.Products.Find((string)ViewState["id"]); if (product != null) { if (product.Bvin != string.Empty) { // SKU Check Product existing = MTApp.CatalogServices.Products.FindBySku(SkuTextBox.Text); if (existing != null && existing.Bvin != string.Empty) { MessageBox1.ShowError("That SKU is already in use by another product!"); return(false); } Product newProduct = product.Clone(ProductChoicesCheckBox.Checked, ImagesCheckBox.Checked); if (InactiveCheckBox.Checked) { newProduct.Status = ProductStatus.Disabled; } newProduct.ProductName = NameTextBox.Text; newProduct.Sku = SkuTextBox.Text; if (MTApp.CatalogServices.ProductsCreateWithInventory(newProduct, true)) { if (product.ProductTypeId != string.Empty) { List <ProductProperty> productTypes = MTApp.CatalogServices.ProductPropertiesFindForType(product.ProductTypeId); foreach (ProductProperty item in productTypes) { string value = MTApp.CatalogServices.ProductPropertyValues.GetPropertyValue(product.Bvin, item.Id); MTApp.CatalogServices.ProductPropertyValues.SetPropertyValue(newProduct.Bvin, item.Id, value); } } if (CategoryPlacementCheckBox.Checked) { List <CategoryProductAssociation> cats = MTApp.CatalogServices.CategoriesXProducts.FindForProduct(product.Bvin, 1, 100); foreach (CategoryProductAssociation a in cats) { MTApp.CatalogServices.CategoriesXProducts.AddProductToCategory(newProduct.Bvin, a.CategoryId); } } if (ImagesCheckBox.Checked) { MerchantTribe.Commerce.Storage.DiskStorage.CloneAllProductFiles(MTApp.CurrentStore.Id, product.Bvin, newProduct.Bvin); } Response.Redirect("~/BVAdmin/Catalog/default.aspx"); } else { MessageBox1.ShowError("An error occurred while trying to save the clone. Please try again."); return(false); } } } return(true); }
public void ReadLog(string logPath) { var fs = new FileStream(logPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); var sr = new StreamReader(fs); var lineCount = 0; string line = String.Empty; while ((line = sr.ReadLine()) != null) { lineCount += 1; if (lineCount > Int32.Parse(lineCountLabel.Text)) { MessageBox1.AppendText(lineCount + ":" + line + Environment.NewLine); if (line.Contains("@twitter") && Int32.Parse(lineCountLabel.Text) > 0) { MessageBox1.AppendText("Send Message to Twitter " + Environment.NewLine); DateTime now = DateTime.Now; string timeString = now.ToString(); label1.Text = timeString; dynamic json = JsonConvert.DeserializeObject(line); string twitterMessage = json.Message; twitterMessage = '^' + twitterMessage.Substring(1); MessageBox1.AppendText("Twitter Message Sent:" + twitterMessage + Environment.NewLine); var sendMessage = "EDtoTwitter Message Gateway\n\nMessage from Cockpit\n\n" + twitterMessage + "\n" + timeString; MessageBox1.AppendText("Sent Message:" + sendMessage + Environment.NewLine); SendTweetTextOnly(sendMessage); } } } lineCountLabel.Text = lineCount.ToString(); }
private void BindData() { string abc = CommonMethods.DecryptString(Request.QueryString["ID"]); int memberId = Convert.ToInt32(CommonMethods.DecryptString(Request.QueryString["ID"])); try { using (DataClasses1DataContext eDataBase = new DataClasses1DataContext()) { var record = eDataBase.Members.Where(eMData => eMData.Id == memberId && eMData.IsDeleted == false).FirstOrDefault(); memberName.Text = record.Name; Email.Text = record.Email; phoneNumber.Text = record.PhoneNumber; address.Text = record.Address; admissionFees.Text = record.AdmissionFees.ToString(); registrationFees.Text = record.RegisterationFees.ToString(); height.Text = record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "Height").FirstOrDefault() != null?record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "Height").FirstOrDefault().Value : ""; weight.Text = record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "Weight").FirstOrDefault() != null?record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "Weight").FirstOrDefault().Value : ""; age.Text = record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "Age").FirstOrDefault() != null?record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "Age").FirstOrDefault().Value : ""; bodyMass.Text = record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "BodyMass").FirstOrDefault() != null?record.MemberDetails.Where(eDData => eDData.CustomField.FieldName == "BodyMass").FirstOrDefault().Value : ""; } } catch (Exception ex) { MessageBox1.ShowError(ex.Message); } }
/// <summary> /// Send message /// </summary> private void CreateMessage(object sender, RoutedEventArgs e) { // Create message string text = MessageBox1.Text; App.CreateMessage(ChannelId, text); // Clear draft MessageBox1.Text = ""; MessageBox1.FocusTextBox(); //Add a user activity for this channel: Task.Run(async() => { if (CurrentGuildIsDM) { await UserActivityManager.GenerateActivityAsync(LocalState.CurrentDMChannel.Id, LocalState.CurrentDMChannel.Name, Common.GetChannelIconUriString(LocalState.CurrentDMChannel.Id, LocalState.CurrentDMChannel.Icon)); } else { await UserActivityManager.GenerateActivityAsync(LocalState.CurrentGuild.Raw.Id, LocalState.CurrentGuild.Raw.Name, Common.GetGuildIconUriString(LocalState.CurrentGuild.Raw.Id, LocalState.CurrentGuild.Raw.Icon), LocalState.CurrentGuildChannel.raw.Id, "#" + LocalState.CurrentGuildChannel.raw.Name); } }); }
protected void DDLBranch_SelectedIndexChanged(object sender, EventArgs e) { Repeater1.DataSource = null; Repeater1.DataBind(); try { if (!string.IsNullOrEmpty(DDLBranch.SelectedValue)) { int id = 0; int.TryParse(DDLBranch.SelectedValue, out id); if (id > 0) { CommonMethods oCommonMethods = new CommonMethods(); oCommonMethods.BindClasses(ref ddlClass, id); } else { DDLBranch.DataSource = null; } } } catch (Exception ex) { MessageBox1.ShowMessage(ex.Message, Constants.MesageType.Error); } }
protected void NewTabButton_Click(object sender, EventArgs e) { MessageBox1.ClearMessage(); var t = new ProductDescriptionTab(); t.Bvin = Guid.NewGuid().ToString().Replace("{", string.Empty).Replace("}", string.Empty); if (localProduct.Tabs.Count > 0) { var m = (from sort in localProduct.Tabs select sort.SortOrder).Max(); t.SortOrder = m + 1; } else { t.SortOrder = 1; } localProduct.Tabs.Add(t); if (HccApp.CatalogServices.ProductsUpdateWithSearchRebuild(localProduct)) { Response.Redirect("ProductsEdit_TabsEdit.aspx?tid=" + t.Bvin + "&id=" + localProduct.Bvin); } else { MessageBox1.ShowError("Unable to update product tabs."); } localProduct = HccApp.CatalogServices.Products.Find(localProduct.Bvin); LoadItems(); }
private void Delete_Qualification(string id) { try { objServiceTimelinesBEL.QualificationID = Convert.ToInt32(id); objServiceTimelinesBEL.username = UserName.Trim(); DataSet result = objServiceTimelinesBLL.DeleteQualification(objServiceTimelinesBEL); if (result.Tables.Count > 0) { MessageBox1.ShowSuccess(result.Tables[0].Rows[0][0].ToString()); clear(); bindgridQualification(); } else { MessageBox1.ShowError("Some Error Occured"); } } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex); Response.Write("Oops! error occured :" + ex.Message.ToString()); } }
private void AddProductBySku() { MessageBox1.ClearMessage(); if (NewSkuField.Text.Trim().Length < 1) { MessageBox1.ShowWarning("Please enter a sku first."); } else { var p = HccApp.CatalogServices.Products.FindBySku(NewSkuField.Text.Trim()); if (p != null) { if (p.Sku == string.Empty) { MessageBox1.ShowWarning("That product could not be located. Please check SKU."); } else { var file = HccApp.CatalogServices.ProductFiles.Find((string)ViewState["id"]); if (file != null) { if (HccApp.CatalogServices.ProductFiles.AddAssociatedProduct(file.Bvin, p.Bvin, 0, 0)) { MessageBox1.ShowOk("Product Added!"); } else { MessageBox1.ShowError("Product was not added correctly. Unknown Error"); } } } } } BindProductsGrid(); }
private void RenderItems(List <Option> items) { if (items != null && items.Count > 0) { var sb = new StringBuilder(); var isAlternate = false; sb.Append("<table border=\"0\" class=\"formtable hcGrid\">"); foreach (var opt in items) { RenderSingleItem(sb, opt, isAlternate); isAlternate = !isAlternate; } sb.Append("</table>"); litResults.Text = sb.ToString(); } else { MessageBox1.ClearMessage(); MessageBox1.ShowWarning(Localization.GetString("NoChoices")); } }
private bool SaveItem() { MessageBox1.ClearMessage(); var success = false; var p = HccApp.CatalogServices.Products.Find(productBvin); if (p == null) { return(false); } var tab = p.Tabs.FirstOrDefault(t => t.Bvin == tabid); if (tab == null) { tab = new ProductDescriptionTab(); tab.Bvin = tabid; p.Tabs.Add(tab); } tab.TabTitle = TabTitleField.Text.Trim(); tab.HtmlData = HtmlDataField.Text.Trim(); success = HccApp.CatalogServices.ProductsUpdateWithSearchRebuild(p); if (success) { MessageBox1.ShowOk("Changes Saved!"); } else { MessageBox1.ShowWarning("Unable to save changes. An administrator has been alerted."); } return(success); }
protected void btnSave_Click(object sender, EventArgs e) { try { using (DataClasses1DataContext eDataBase = new DataClasses1DataContext()) { Member eMember = new Member(); eMember.Name = memberName.Text; eMember.Email = Email.Text; eMember.PhoneNumber = phoneNumber.Text; eMember.Address = address.Text; eMember.AdmissionFees = Convert.ToInt32(admissionFees.Text); eMember.RegisterationFees = Convert.ToInt32(registrationFees.Text); eMember.IsActive = true; eMember.IsDeleted = false; eMember.RegisteredOn = DateTime.Now.Date; eDataBase.Members.InsertOnSubmit(eMember); eDataBase.SubmitChanges(); MessageBox1.ShowSuccess("Member Registered"); } }catch (Exception ex) { MessageBox1.ShowError(ex.Message); } }
protected void lbtnAdd_Click(object sender, EventArgs e) { try { var item = _ShapeRepo.GetByCode(txtCode.Value.Trim()); if (item != null) { MessageBox1.ShowMessage("Mã này đã tồn tại!", "Thông báo"); return; } var shape = new SHAPE(); shape.CODE = txtCode.Value; shape.NAME = txtName.Value; _ShapeRepo.Create(shape); var shapePro = new SHAPE_PROPERTY(); shapePro.SHAPE_CODE = txtCode.Value; shapePro.D = 0; shapePro.H = 0; shapePro.L = 0; shapePro.W = 0; _ShapePropertyRepo.Create(shapePro); } catch { } finally { Response.Redirect("hinh-dang.aspx"); } }
protected void SubmitBtn_Click(object sender, EventArgs e) { try { if (Page.IsValid) { icode = (List <String>)Session["icode"]; iqty = (List <String>)Session["iqty"]; eM.submitRequisitionItemList(iqty, icode, ecode); Session["idesc"] = null; Session["icode"] = null; Session["iqty"] = null; Session["iunit"] = null; Label1.Text = "Items submitted!"; System.Diagnostics.Debug.WriteLine("Submitted"); //to test email uncomment out line below DEserviceManager.sendEmail("Pending stationery request to be approved"); Response.Redirect(Request.RawUrl); } } catch (Exception ex) { MessageBox1.Show(this.Page, "submit failed. try again"); System.Diagnostics.Debug.WriteLine(ex); } //No need for else, the validations should display accordingly }
protected void btnSave_Click(object sender, ImageClickEventArgs e) { if (Save()) { MessageBox1.ShowOk("Settings saved successfully."); } }
private void BindPackages() { try { List <PackagesType> oPackages = new List <PackagesType>(); using (DataClasses1DataContext eDataBase = new DataClasses1DataContext()) { List <PackageType> ePackageTypes = eDataBase.PackageTypes.Where(ePData => ePData.IsDeleted == false).ToList(); foreach (var ePackageType in ePackageTypes) { PackagesType oPackageType = new PackagesType(); oPackageType.Id = ePackageType.Id; oPackageType.Name = ePackageType.Type; oPackages.Add(oPackageType); } packageTypeList.DataSource = oPackages; packageTypeList.DataTextField = "Name"; packageTypeList.DataValueField = "Id"; packageTypeList.DataBind(); packageTypeList.Items.Insert(0, new ListItem("----------- SELECT PACKAGE TYPE --------------", "Non")); } } catch (Exception ex) { MessageBox1.ShowError(ex.Message); } }
protected void ImportLinkButton_Click(object sender, EventArgs e) { var importDir = Path.Combine(Server.MapPath(Request.ApplicationPath), "Files"); if (Directory.Exists(importDir)) { var files = Directory.GetFiles(importDir); var errorOccurred = false; foreach (var fileName in files) { if (!fileName.ToLower().EndsWith(".config")) { var ReadWasSuccess = false; var file = new ProductFile(); file.FileName = Path.GetFileName(fileName); file.ShortDescription = file.FileName; if (HccApp.CatalogServices.ProductFiles.Create(file)) { try { using (var fileStream = new FileStream(fileName, FileMode.Open)) { if (ProductFile.SaveFile(HccApp.CurrentStore.Id, file.Bvin, file.FileName, fileStream)) { ReadWasSuccess = true; } } if (ReadWasSuccess) { File.Delete(fileName); } } catch (Exception ex) { errorOccurred = true; EventLog.LogEvent(ex); } } } } if (errorOccurred) { MessageBox1.ShowError("An error occurred during import. Please check the event log."); } else { MessageBox1.ShowOk("Files Imported Successfully."); } } else { MessageBox1.ShowInformation("Files folder doesn't exist"); } BindFileGridView(); }
protected void FileGrid_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (!MTApp.CatalogServices.ProductFiles.RemoveAssociatedProduct((string)FileGrid.DataKeys[e.RowIndex].Value, localProduct.Bvin)) { MessageBox1.ShowError("An error occurred while trying to delete your file from the database."); } InitializeFileGrid(); }
protected void NewLevelImageButton_Click(object sender, System.Web.UI.ImageClickEventArgs e) { int quantity = 0; decimal amount = 0m; if (!int.TryParse(QuantityTextBox.Text, out quantity)) { MessageBox1.ShowError("Quantity must be numeric."); } if (!decimal.TryParse(PriceTextBox.Text, out amount)) { MessageBox1.ShowError("Price must be a monetary amount."); } List <ProductVolumeDiscount> volumeDiscounts = MTApp.CatalogServices.VolumeDiscounts.FindByProductId((string)ViewState["id"]); ProductVolumeDiscount volumeDiscount = null; foreach (ProductVolumeDiscount item in volumeDiscounts) { if (item.Qty == quantity) { volumeDiscount = item; } } if (volumeDiscount == null) { volumeDiscount = new ProductVolumeDiscount(); } volumeDiscount.DiscountType = ProductVolumeDiscountType.Amount; volumeDiscount.Amount = amount; volumeDiscount.Qty = quantity; volumeDiscount.ProductId = (string)ViewState["id"]; bool result = false; if (volumeDiscount.Bvin == string.Empty) { result = MTApp.CatalogServices.VolumeDiscounts.Create(volumeDiscount); } else { result = MTApp.CatalogServices.VolumeDiscounts.Update(volumeDiscount); } if (result) { MessageBox1.ShowOk("Volume Discount Updated"); QuantityTextBox.Text = ""; PriceTextBox.Text = ""; } else { MessageBox1.ShowError("Error occurred while inserting new volume discount"); } BindGridViews(); }
protected void lnkLuutin_Click(object sender, EventArgs e) { int customerId = Utils.CIntDef(Session["userId"]); if (customerId == 0 || Utils.CIntDef(Session["user_quyen"]) != Cost.QUYEN_NTD) { MessageBox1.ShowMessage("Bạn cần đăng nhập tài khoản nhà tuyển để sử dụng chức năng này!", "Thông báo"); return; } int i = 0; int j = 0; HtmlInputCheckBox check = new HtmlInputCheckBox(); //int[] items = new int[GridItemList_Xemnhieu.Items.Count]; foreach (DataGridItem item in GridItemList.Items) { check = new HtmlInputCheckBox(); check = (HtmlInputCheckBox)item.Cells[1].FindControl("chkSelect"); HiddenField hddCusId = (HiddenField)item.Cells[1].FindControl("hddCusId"); if (check.Checked) { //items[j] = Utils.CIntDef(GridItemList_Xemnhieu.DataKeys[i]); j++; int newsId = Utils.CIntDef(GridItemList.DataKeys[i]); var list = db.VL_CUSTOMER_ESHOP_NEWs.Where(a => a.CUSTOMER_NTD_ID == customerId && a.NEWS_ID_UNGTUYEN == newsId && a.TYPE == 5); if (list != null && list.ToList().Count > 0) { // } else { VL_CUSTOMER_ESHOP_NEW insert = new VL_CUSTOMER_ESHOP_NEW(); insert.CUSTOMER_ID = Utils.CIntDef(hddCusId.Value); insert.CUSTOMER_NTD_ID = customerId; insert.NEWS_ID_UNGTUYEN = newsId; insert.TYPE = 5; insert.PUBLISHDATE = DateTime.Now; insert.DATE_XULY = DateTime.Now; db.VL_CUSTOMER_ESHOP_NEWs.InsertOnSubmit(insert); db.SubmitChanges(); } } i++; } if (j > 0) { MessageBox1.ShowMessage("Lưu hồ sơ thành công!", "Thông báo"); } else { MessageBox1.ShowMessage("Chưa chọn hồ sơ để lưu!", "Thông báo"); } }
/// <summary> /// When the user navigates to a different channel, from a guild /// </summary> private void App_NavigateToGuildChannelHandler(object sender, App.GuildChannelNavigationArgs e) { // Save draft App_SaveDraft(null, null); // Set new Ids ChannelId = App.CurrentChannelId; CurrentGuildIsDM = App.CurrentGuildIsDM; CurrentGuildId = App.CurrentGuildId; // Render messages if (CurrentGuildId == e.GuildId) { RenderMessages(); if (App.IsDesktop) { MessageBox1.FocusTextBox(); } } // Update channel permissions for new channel bool?oldstate = MessageBox1?.IsEnabled; bool?newstate = LocalState.CurrentGuildChannel.permissions.SendMessages || App.CurrentGuildIsDM; MessageBox1.IsEnabled = newstate.Value; if (oldstate != newstate) { if (MessageBox1.IsEnabled) { messageShadow.Fade(Convert.ToSingle((Double)Application.Current.Resources["ShadowOpacity"]), 300).Start(); } else { messageShadow.Fade(Convert.ToSingle((Double)Application.Current.Resources["ShadowOpacity"]) / 2, 300).Start(); } } // Update typing indicator for new channel UpdateTyping(); if (e.Message != null && !e.Send) { // Load request draft MessageBox1.Text = e.Message; } else { // Load old draft for new channel App_LoadDraft(null, null); } // Send requested draft message if (e.Message != null && e.Send) { App.CreateMessage(ChannelId, e.Message); } }
protected void FileGrid_RowEditing(object sender, GridViewEditEventArgs e) { var primaryKey = (string)FileGrid.DataKeys[e.NewEditIndex].Value; var file = HccApp.CatalogServices.ProductFiles.Find(primaryKey); if (!ViewUtilities.DownloadFile(file, HccApp)) { MessageBox1.ShowWarning("The file to download could not be found."); } }
protected void searchAll_Click(object sender, EventArgs e) { try { BindMembners(false); }catch (Exception ex) { MessageBox1.ShowError(ex.Message); } }
protected void NewSharedChoiceImageButton_Click(object sender, EventArgs e) { MessageBox1.ClearMessage(); var opt = Option.Factory(OptionTypes.Html); var typeCode = 100; if (int.TryParse(SharedChoiceTypes.SelectedItem.Value, out typeCode)) { opt.SetProcessor((OptionTypes)typeCode); } opt.IsShared = true; opt.IsVariant = false; opt.Name = "New Choice"; switch (opt.OptionType) { case OptionTypes.CheckBoxes: opt.Name = "New Checkboxes"; break; case OptionTypes.DropDownList: opt.Name = "New Drop Down List"; break; case OptionTypes.FileUpload: opt.Name = "New File Upload"; break; case OptionTypes.Html: opt.Name = "New Html Description"; break; case OptionTypes.RadioButtonList: opt.Name = "New Radio Button List"; break; case OptionTypes.TextInput: opt.Name = "New Text Input"; break; } opt.StoreId = HccApp.CurrentStore.Id; if (HccApp.CatalogServices.ProductOptions.Create(opt)) { Response.Redirect("ProductSharedChoices_Edit.aspx?id=" + opt.Bvin); } else { MessageBox1.ShowError(Localization.GetString("CreateError")); } }
protected void btnUpdate_Click(object sender, ImageClickEventArgs e) { if (Save()) { MessageBox1.ShowOk("Changes saved at " + DateTime.Now); } else { MessageBox1.ShowWarning("Unable to save! Unknown error."); } }
protected void btnSave_Click(object sender, System.Web.UI.ImageClickEventArgs e) { if (this.Save() == true) { MessageBox1.ShowOk("Meta Tags Saved Successfully."); } else { MessageBox1.ShowError("Error Occurred While Saving. Please Check Event Log."); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); MessageBox1.ClearMessage(); // Register jQuery Page.ClientScript.RegisterClientScriptBlock(typeof(System.Web.UI.Page), "productrelationshipsort", RenderJQuery(), true); //Page.ClientScript.RegisterClientScriptBlock(typeof(System.Web.UI.Page), "optionitemsdialog", RenderDialogJquery(), true); RenderItems(); }