private void CreateNewWerpName(string newWerpName) { try { bool result; werplookupCodeValueManagementVo = new WERPlookupCodeValueManagementVo(); werplookupCodeValueManagementVo.WerpName = newWerpName; werplookupCodeValueManagementVo.CategoryID = Convert.ToInt32(ddlCategory.SelectedValue); result = onlineOrderBackOfficeBo.CreateNewWerpName(werplookupCodeValueManagementVo, userVo.UserId); if (result) { BindWerpGrid(Convert.ToInt32(ddlCategory.SelectedValue)); ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Internal Name Created Successfully.');", true); } else { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Already Exist.');", true); } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "ManageLookups.ascx.cs:CreateNewWerpName()"); object[] objects = new object[1]; objects[1] = newWerpName; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }