protected void gdvControls_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int Id = int.Parse(e.CommandArgument.ToString());
            switch (e.CommandName)
            {
                case "Edit":
                    //To direct to new page with query string
                    string ControlPath = "/Modules/Admin/Extensions/Editors/ModuleControlsDetails.ascx&modulecontrol=" + Id;
                    HttpContext.Current.Session["ModuleName"] = hdnModuleName.Value;
                    HttpContext.Current.Session["ModuleDefinitionName"] = hdnModuleDefinition.Value;
                    ProcessSourceControlUrl(Request.RawUrl, ControlPath, "extension");
                    break;
                case "Delete":
                    try
                    {
                        ModuleController objController = new ModuleController();
                        objController.ModuleControlsDeleteByModuleControlID(Id, GetUsername);

                        DataSet dsExtensionSettings = new DataSet();
                        if (HttpContext.Current.Session["moduleid"] != null)
                        {
                            dsExtensionSettings = GetExtensionSettings(HttpContext.Current.Session["moduleid"].ToString());
                            DataTable dtModuleControls = dsExtensionSettings.Tables[2];
                            if (dtModuleControls != null)
                            {
                                gdvControls.Visible = true;
                                gdvControls.DataSource = dtModuleControls;
                                gdvControls.DataBind();
                            }
                        }
                        ShowMessage(SageMessageTitle.Information.ToString(), GetSageMessage("Extensions", "ModuleControlIsDeletedSuccessfully"), "", SageMessageType.Success);
                    }
                    catch (Exception ex)
                    {
                        ProcessException(ex);
                    }
                    break;
            }
        }