private void CreateMap(DropDownList ddlWerp, TextBox txtExternalCode, TextBox txtNewEXtName) { try { bool result; werplookupCodeValueManagementVo = new WERPlookupCodeValueManagementVo(); werplookupCodeValueManagementVo.SourceCode = ddlRTA.SelectedValue; werplookupCodeValueManagementVo.LookupID = Convert.ToInt32(ddlWerp.SelectedValue); werplookupCodeValueManagementVo.ExternalCode = txtExternalCode.Text; werplookupCodeValueManagementVo.ExternalName = txtNewEXtName.Text; result = onlineOrderBackOfficeBo.CreateMapwithRTA(werplookupCodeValueManagementVo, userVo.UserId); if (result) { BindMapingGrid(ddlRTA.SelectedValue, Convert.ToInt32(ddlCategory.SelectedValue)); ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Maping Created Successfully.');", true); } else { ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Maping 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:CreateMap()"); object[] objects = new object[3]; objects[1] = ddlWerp; objects[2] = txtExternalCode; objects[3] = txtNewEXtName; FunctionInfo = exBase.AddObject(FunctionInfo, objects); ExceptionManager.Publish(exBase); throw exBase; } }