Пример #1
0
        /// <summary>
        /// To delete details
        /// </summary
        private void DeleteFloorType(string floorTypeID)
        {
            objFloorTypeBLL = new FloorTypeBLL();
            string message = string.Empty;

            try
            {
                int UserID_ = Convert.ToInt32(Session["USER_ID"].ToString());
                message = objFloorTypeBLL.DeleteFloorType(Convert.ToInt32(floorTypeID), UserID_);
                if (string.IsNullOrEmpty(message) || message == "" || message == "null")
                {
                    message = "Data deleted successfully";
                }
                ClearDetails();
                BindGrid(false, true);
                if (message != "")
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Added", "alert('" + message + "');", true);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }