protected void pageSave(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e)
        {
            try
            {
                string            result          = "";
                CustomProfile     profile         = CustomProfile.GetProfile();
                iSiteMasterClient InterfaceClient = new iSiteMasterClient();

                if (checkDuplicate() == "")
                {
                    string Tablename = ddlTable.SelectedItem.Text;
                    string DataType  = ddlDataype.SelectedItem.Text;
                    string FieldName = txtFieldName.Text;
                    string IsNull    = ddlIsNull.SelectedItem.Text;

                    if (hdnInterfaceID.Value != "0" && hdnInterfaceID.Value != "")
                    {
                        DataSet ds       = new DataSet();
                        long    ModifyBy = Convert.ToInt64(profile.Personal.UserID.ToString());
                        hdnSate.Value = "Edit";
                        InterfaceClient.UpdateInterface(Convert.ToInt64(hdnInterfaceID.Value), Tablename, DataType, FieldName, IsNull, ModifyBy, profile.DBConnection._constr);
                    }
                    else
                    {
                        hdnSate.Value = "AddNew";
                        long CreatedBy = Convert.ToInt64(profile.Personal.UserID.ToString());
                        InterfaceClient.InsertInterface(Tablename, DataType, FieldName, IsNull, CreatedBy, profile.DBConnection._constr);
                    }

                    if (hdnSate.Value == "Edit")
                    {
                        WebMsgBox.MsgBox.Show("Record Update sussessfully");
                        ClearAll();
                    }
                    if (hdnSate.Value == "AddNew")
                    {
                        WebMsgBox.MsgBox.Show("Record saved sussessfully");
                        ClearAll();
                    }
                }
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "Product master", "pageSave");
            }
            finally
            {
            }
        }