/// <summary>
        /// Handles the ItemDataBound event of the dgFile control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.Web.UI.WebControls.DataGridItemEventArgs"/> instance containing the event data.</param>
        private void dgFile_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem ||
                e.Item.ItemType == ListItemType.EditItem)
            {
                Image imgType = (Image)e.Item.FindControl("imgType");
                //PlaceHolder plhImgEdit = (PlaceHolder)e.Item.FindControl("plhImgEdit");
                LinkButton lnkName = (LinkButton)e.Item.FindControl("lnkName");
                //HyperLink imgACL = (HyperLink)e.Item.FindControl("imgACL");


                //HyperLink for Edit Text
                HyperLink hlImgEdit = new HyperLink();
                hlImgEdit.ImageUrl    = this.CurrentTheme.GetModuleImageSRC("btnEdit.gif");
                hlImgEdit.NavigateUrl = Path.ApplicationFullPath + "Desktopmodules/Filemanager/EditFile.aspx?ID=" +
                                        GetCurDir() + "\\" + DataBinder.Eval(e.Item.DataItem, "filename");
                //----

                int type = int.Parse(DataBinder.Eval(e.Item.DataItem, "type", "{0}"));
                if (type == 0)
                {
                    imgType.ImageUrl     = this.CurrentTheme.GetModuleImageSRC("dir.gif");
                    e.Item.Cells[2].Text = "";
                    e.Item.Cells[3].Text = "";
                }
                else
                {
                    string name = DataBinder.Eval(e.Item.DataItem, "filename", "{0}").Trim().ToLower();
                    lnkName.Enabled = IsDownloadable(name);
                    string ext = name.Substring(name.LastIndexOf(".") + 1);
                    imgType.ImageUrl = Path.WebPathCombine(Path.ApplicationRoot, "aspnet_client/Ext/" + imageAsign(ext));
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Handles the ItemDataBound event of the RolesList control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.Web.UI.WebControls.DataListItemEventArgs"/> instance containing the event data.</param>
        protected void RolesList_ItemDataBound(object sender, DataListItemEventArgs e)
        {
            // 20/7/2004 changed by Mario Endara [email protected]
            // don't let the user to edit or delete the role "Admins"
            // the rolename is an hyperlink to the list of users of the role
            Control   dl      = e.Item.FindControl("ImageButton1");
            Control   d2      = e.Item.FindControl("ImageButton2");
            Control   imgPerm = e.Item.FindControl("ImageButton3");
            HyperLink d3      = (HyperLink)e.Item.FindControl("Name");

            AppleseedRole role = ((AppleseedRole)e.Item.DataItem);

            // Added by Mario Endara <*****@*****.**> 2004/11/04
            // if the user is not member of the "Admins" role, he can´t access to the members of the Admins role
            // added mID by Mario Endara <*****@*****.**> to support security check (2004/11/27)
            if ((d3 != null) && (PortalSecurity.IsInRoles("Admins") == true || role.Name != "Admins"))
            {
                d3.NavigateUrl = HttpUrlBuilder.BuildUrl("~/DesktopModules/CoreModules/Roles/SecurityRoles.aspx", PageID,
                                                         "mID=" + ModuleID + "&roleID=" + role.Id.ToString());
            }

            if (dl != null)
            {
                if (role.Name.Equals("Admins"))
                {
                    dl.Visible = false;
                }
                ((ImageButton)dl).Attributes.Add("OnClick", "return confirmDelete()");
            }
            if (d2 != null)
            {
                if (role.Name.Equals("Admins"))
                {
                    d2.Visible = false;
                }
            }
            if (imgPerm != null)
            {
                if (role.Name.Equals("Admins"))
                {
                    imgPerm.Visible = false;
                }
            }
        }
        /// <summary>
        /// Handles OnInit event
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"></see> that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            this.PlaceHolderButtons.EnableViewState  = false;
            this.PlaceholderButtons2.EnableViewState = false;

            // Controls must be created here
            this.UpdateButton = new LinkButton {
                CssClass = "CommandButton"
            };
            PlaceHolderButtons.Controls.Add(this.UpdateButton);

            // jminond added to top of property page so no need to scroll for save
            var update2 = new LinkButton {
                CssClass = "CommandButton", TextKey = "Apply", Text = "Apply"
            };

            update2.Click += this.UpdateButtonClick;
            PlaceholderButtons2.Controls.Add(update2);

            PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            this.saveAndCloseButton = new LinkButton
            {
                TextKey = "OK", Text = "Save and close", CssClass = "CommandButton"
            };
            PlaceHolderButtons.Controls.Add(saveAndCloseButton);
            this.saveAndCloseButton.Click += this.SaveAndCloseButtonClick;

            // jminond added to top of property page so no need to scroll for save
            var saveAndCloseButton2 = new LinkButton
            {
                TextKey = "OK", Text = "Save and close", CssClass = "CommandButton"
            };

            PlaceholderButtons2.Controls.Add(saveAndCloseButton2);
            saveAndCloseButton2.Click += this.SaveAndCloseButtonClick;

            PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            string NavigateUrlPropertyPage = Appleseed.Framework.HttpUrlBuilder.BuildUrl(
                "~/DesktopModules/CoreModules/Admin/PropertyPage.aspx", this.PageID, this.ModuleID);

            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                NavigateUrlPropertyPage += "&ModalChangeMaster=true";
                if (Request.QueryString.GetValues("camefromEditPage") != null)
                {
                    NavigateUrlPropertyPage += "&camefromEditPage=true";
                }
            }

            this.moduleSettingsButton = new HyperLink
            {
                TextKey     = "MODULESETTINGS_SETTINGS",
                Text        = "Settings",
                CssClass    = "CommandButton",
                NavigateUrl = NavigateUrlPropertyPage
            };
            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                moduleSettingsButton.Attributes.Add("onclick", "ChangeModalTitle('Module Settings');");
            }
            PlaceHolderButtons.Controls.Add(moduleSettingsButton);

            // jminond added to top of property page so no need to scroll for save
            var moduleSettingsButton2 = new HyperLink
            {
                TextKey     = "MODULESETTINGS_SETTINGS",
                Text        = "Settings",
                CssClass    = "CommandButton",
                NavigateUrl = NavigateUrlPropertyPage
            };

            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                moduleSettingsButton2.Attributes.Add("onclick", "ChangeModalTitle('Module Settings');");
            }
            PlaceholderButtons2.Controls.Add(moduleSettingsButton2);

            PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            this.CancelButton = new LinkButton {
                CssClass = "CommandButton"
            };
            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                this.CancelButton.ID = "SecurityCancelButton";
            }
            PlaceHolderButtons.Controls.Add(this.CancelButton);

            // jminond added to top of property page so no need to scroll for save
            var cancel2 = new LinkButton {
                CssClass = "CommandButton", TextKey = "Cancel", Text = "Cancel"
            };

            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                cancel2.ID = "SecurityCancelButton2";
            }
            cancel2.Click += this.CancelButtonClick;
            PlaceholderButtons2.Controls.Add(cancel2);

            // if (((Page) this.Page).IsCssFileRegistered("tabsControl") == false)
            // {
            //     string themePath = Path.WebPathCombine(this.CurrentTheme.WebPath, "/tabControl.css");
            //     ((Page) this.Page).RegisterCssFile("tabsControl", themePath);
            // }


            this.enableWorkflowSupport.CheckedChanged += this.EnableWorkflowSupportCheckedChanged;
            base.OnInit(e);
        }
        /// <summary>
        /// On init
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            this.PlaceHolderButtons.EnableViewState = false;
            this.PlaceholderButtons2.EnableViewState = false;

            //Controls must be created here
            this.UpdateButton = new LinkButton();
            this.UpdateButton.CssClass = "CommandButton";

            PlaceHolderButtons.Controls.Add(this.UpdateButton);

            // jminond added to top of property page so no need to scroll for save
            LinkButton update2 = new LinkButton();
            update2.CssClass = "CommandButton";
            update2.TextKey = "Apply";
            update2.Text = "Apply";
            update2.Click += new EventHandler(UpdateButton_Click);
            PlaceholderButtons2.Controls.Add(update2);

            //			PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            //			PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            saveAndCloseButton = new LinkButton();
            saveAndCloseButton.TextKey = "SAVE_AND_CLOSE";
            saveAndCloseButton.Text = "Save and close";
            saveAndCloseButton.CssClass = "CommandButton";
            PlaceHolderButtons.Controls.Add(saveAndCloseButton);

            // jminond added to top of property page so no need to scroll for save
            LinkButton saveAndCloseButton2 = new LinkButton();
            saveAndCloseButton2.TextKey = "SAVE_AND_CLOSE";
            saveAndCloseButton2.Text = "Save and close";
            saveAndCloseButton2.CssClass = "CommandButton";
            saveAndCloseButton2.Click += new EventHandler(this.saveAndCloseButton_Click);
            PlaceholderButtons2.Controls.Add(saveAndCloseButton2);

            this.saveAndCloseButton.Click += new EventHandler(this.saveAndCloseButton_Click);

            //			PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            //			PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            // Removed by Mario Endara <*****@*****.**> (2004/11/04)
            //			if (Appleseed.Security.PortalSecurity.IsInRoles("Admins"))
            //			{

            string NavigateUrlPropertyPage = Appleseed.Framework.HttpUrlBuilder.BuildUrl("~/DesktopModules/CoreModules/Admin/ModuleSettings.aspx", PageID, ModuleID);

            if (Request.QueryString.GetValues("ModalChangeMaster") != null) {
                NavigateUrlPropertyPage += "&ModalChangeMaster=true";
                if (Request.QueryString.GetValues("camefromEditPage") != null)
                    NavigateUrlPropertyPage += "&camefromEditPage=true";
            }

            adminPropertiesButton = new HyperLink();
            adminPropertiesButton.TextKey = "MODULESETTINGS_BASE_SETTINGS";
            adminPropertiesButton.Text = "Edit base settings";
            adminPropertiesButton.CssClass = "CommandButton";
            adminPropertiesButton.NavigateUrl = NavigateUrlPropertyPage;

            PlaceHolderButtons.Controls.Add(adminPropertiesButton);

            // jminond added to top of property page so no need to scroll for save
            HyperLink adminPropertiesButton2 = new HyperLink();
            adminPropertiesButton2.TextKey = "MODULESETTINGS_BASE_SETTINGS";
            adminPropertiesButton2.Text = "Edit base settings";
            adminPropertiesButton2.CssClass = "CommandButton";
            adminPropertiesButton2.NavigateUrl = NavigateUrlPropertyPage;

            PlaceholderButtons2.Controls.Add(adminPropertiesButton2);

            //			PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            //			PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));
            //			}

            // jminond added to top of property page so no need to scroll for save
            LinkButton cancel2 = new LinkButton();
            cancel2.CssClass = "CommandButton";
            cancel2.TextKey = "Cancel";
            cancel2.Text = "Cancel";
            cancel2.Click += new EventHandler(CancelButton_Click);
            PlaceholderButtons2.Controls.Add(cancel2);

            this.CancelButton = new LinkButton();
            this.CancelButton.CssClass = "CommandButton";
            PlaceHolderButtons.Controls.Add(this.CancelButton);

            //			if(((UI.Page)this.Page).IsCssFileRegistered("tabsControl") == false)
            //			{
            //				string themePath = Path.WebPathCombine(this.CurrentTheme.WebPath, "/tabControl.css");
            //				((UI.Page)this.Page).RegisterCssFile("tabsControl", themePath);
            //			}
            // Modified by Hongwei Shen 10/72005-- the css file will be inject with the main theme
            //			if(!((UI.Page)this.Page).IsCssFileRegistered("TabControl"))
            //				((UI.Page)this.Page).RegisterCssFile("TabControl");

            this.EditTable.UpdateControl += new UpdateControlEventHandler(this.EditTable_UpdateControl);
            this.Load += new EventHandler(this.PagePropertyPage_Load);
            base.OnInit(e);
        }
Beispiel #5
0
        /// <summary>
        /// On init
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            this.PlaceHolderButtons.EnableViewState  = false;
            this.PlaceholderButtons2.EnableViewState = false;

            //Controls must be created here
            this.UpdateButton          = new LinkButton();
            this.UpdateButton.CssClass = "CommandButton";

            PlaceHolderButtons.Controls.Add(this.UpdateButton);

            // jminond added to top of property page so no need to scroll for save
            LinkButton update2 = new LinkButton();

            update2.CssClass = "CommandButton";
            update2.TextKey  = "Apply";
            update2.Text     = "Apply";
            update2.Click   += new EventHandler(UpdateButton_Click);
            PlaceholderButtons2.Controls.Add(update2);

            this.CancelButton          = new LinkButton();
            this.CancelButton.CssClass = "CommandButton";
            PlaceHolderButtons.Controls.Add(this.CancelButton);

            string NavigateUrlPropertyPage = Appleseed.Framework.HttpUrlBuilder.BuildUrl("~/DesktopModules/CoreModules/Admin/ModuleSettings.aspx", PageID, ModuleID);

            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                NavigateUrlPropertyPage += "&ModalChangeMaster=true";
                if (Request.QueryString.GetValues("camefromEditPage") != null)
                {
                    NavigateUrlPropertyPage += "&camefromEditPage=true";
                }
            }

            adminPropertiesButton             = new HyperLink();
            adminPropertiesButton.TextKey     = "MODULESETTINGS_BASE_SETTINGS";
            adminPropertiesButton.Text        = "Edit base settings";
            adminPropertiesButton.CssClass    = "CommandButton";
            adminPropertiesButton.NavigateUrl = NavigateUrlPropertyPage;

            if (Framework.Security.UserProfile.HasPortalAdministrationAccess() || Framework.Security.UserProfile.HasModuleAddEditAccess())
            {
                PlaceHolderButtons.Controls.Add(adminPropertiesButton);
            }

            // jminond added to top of property page so no need to scroll for save
            LinkButton cancel2 = new LinkButton();

            cancel2.CssClass = "CommandButton";
            cancel2.TextKey  = "Cancel";
            cancel2.Text     = "Cancel";
            cancel2.Click   += new EventHandler(CancelButton_Click);
            PlaceholderButtons2.Controls.Add(cancel2);

            // jminond added to top of property page so no need to scroll for save
            HyperLink adminPropertiesButton2 = new HyperLink();

            adminPropertiesButton2.TextKey     = "MODULESETTINGS_BASE_SETTINGS";
            adminPropertiesButton2.Text        = "Edit base settings";
            adminPropertiesButton2.CssClass    = "CommandButton";
            adminPropertiesButton2.NavigateUrl = NavigateUrlPropertyPage;

            if (Framework.Security.UserProfile.HasPortalAdministrationAccess() || Framework.Security.UserProfile.HasModuleAddEditAccess())
            {
                PlaceholderButtons2.Controls.Add(adminPropertiesButton2);
            }

            this.EditTable.UpdateControl += new UpdateControlEventHandler(this.EditTable_UpdateControl);
            this.Load += new EventHandler(this.PagePropertyPage_Load);
            base.OnInit(e);
        }
        /// <summary>
        /// Handles OnInit event
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"></see> that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            this.PlaceHolderButtons.EnableViewState = false;
            this.PlaceholderButtons2.EnableViewState = false;

            // Controls must be created here
            this.UpdateButton = new LinkButton { CssClass = "CommandButton" };
            PlaceHolderButtons.Controls.Add(this.UpdateButton);

            // jminond added to top of property page so no need to scroll for save
            var update2 = new LinkButton { CssClass = "CommandButton", TextKey = "Apply", Text = "Apply" };
            update2.Click += this.UpdateButtonClick;
            PlaceholderButtons2.Controls.Add(update2);

            PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            this.saveAndCloseButton = new LinkButton
                {
                    TextKey = "OK", Text = "Save and close", CssClass = "CommandButton"
                };
            PlaceHolderButtons.Controls.Add(saveAndCloseButton);
            this.saveAndCloseButton.Click += this.SaveAndCloseButtonClick;

            // jminond added to top of property page so no need to scroll for save
            var saveAndCloseButton2 = new LinkButton
                {
                    TextKey = "OK", Text = "Save and close", CssClass = "CommandButton"
                };
            PlaceholderButtons2.Controls.Add(saveAndCloseButton2);
            saveAndCloseButton2.Click += this.SaveAndCloseButtonClick;

            PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            string NavigateUrlPropertyPage = Appleseed.Framework.HttpUrlBuilder.BuildUrl(
                            "~/DesktopModules/CoreModules/Admin/PropertyPage.aspx", this.PageID, this.ModuleID);

            if (Request.QueryString.GetValues("ModalChangeMaster") != null) {
                NavigateUrlPropertyPage += "&ModalChangeMaster=true";
                if (Request.QueryString.GetValues("camefromEditPage") != null)
                    NavigateUrlPropertyPage += "&camefromEditPage=true";
            }

            this.moduleSettingsButton = new HyperLink
                {
                    TextKey = "MODULESETTINGS_SETTINGS",
                    Text = "Settings",
                    CssClass = "CommandButton",
                    NavigateUrl = NavigateUrlPropertyPage

                };
            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
                moduleSettingsButton.Attributes.Add("onclick", "ChangeModalTitle('Module Settings');");
            PlaceHolderButtons.Controls.Add(moduleSettingsButton);

            // jminond added to top of property page so no need to scroll for save
            var moduleSettingsButton2 = new HyperLink
                {
                    TextKey = "MODULESETTINGS_SETTINGS",
                    Text = "Settings",
                    CssClass = "CommandButton",
                    NavigateUrl = NavigateUrlPropertyPage
                };
            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
                moduleSettingsButton2.Attributes.Add("onclick", "ChangeModalTitle('Module Settings');");
            PlaceholderButtons2.Controls.Add(moduleSettingsButton2);

            PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
            PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            this.CancelButton = new LinkButton { CssClass = "CommandButton" };
            if (Request.QueryString.GetValues("ModalChangeMaster")!=null)
                this.CancelButton.ID = "SecurityCancelButton";
            PlaceHolderButtons.Controls.Add(this.CancelButton);

            // jminond added to top of property page so no need to scroll for save
            var cancel2 = new LinkButton { CssClass = "CommandButton", TextKey = "Cancel", Text = "Cancel" };
            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
                cancel2.ID = "SecurityCancelButton2";
            cancel2.Click += this.CancelButtonClick;
            PlaceholderButtons2.Controls.Add(cancel2);

            // if (((Page) this.Page).IsCssFileRegistered("tabsControl") == false)
            // {
            //     string themePath = Path.WebPathCombine(this.CurrentTheme.WebPath, "/tabControl.css");
            //     ((Page) this.Page).RegisterCssFile("tabsControl", themePath);
            // }

            this.enableWorkflowSupport.CheckedChanged += this.EnableWorkflowSupportCheckedChanged;
            base.OnInit(e);
        }
Beispiel #7
0
        /// <summary>
        /// On init
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            this.PlaceHolderButtons.EnableViewState  = false;
            this.PlaceholderButtons2.EnableViewState = false;

            //Controls must be created here
            this.UpdateButton          = new LinkButton();
            this.UpdateButton.CssClass = "CommandButton";

            PlaceHolderButtons.Controls.Add(this.UpdateButton);

            // jminond added to top of property page so no need to scroll for save
            LinkButton update2 = new LinkButton();

            update2.CssClass = "CommandButton";
            update2.TextKey  = "Apply";
            update2.Text     = "Apply";
            update2.Click   += new EventHandler(UpdateButton_Click);
            PlaceholderButtons2.Controls.Add(update2);

//			PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
//			PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            saveAndCloseButton          = new LinkButton();
            saveAndCloseButton.TextKey  = "SAVE_AND_CLOSE";
            saveAndCloseButton.Text     = "Save and close";
            saveAndCloseButton.CssClass = "CommandButton";
            PlaceHolderButtons.Controls.Add(saveAndCloseButton);

            // jminond added to top of property page so no need to scroll for save
            LinkButton saveAndCloseButton2 = new LinkButton();

            saveAndCloseButton2.TextKey  = "SAVE_AND_CLOSE";
            saveAndCloseButton2.Text     = "Save and close";
            saveAndCloseButton2.CssClass = "CommandButton";
            saveAndCloseButton2.Click   += new EventHandler(this.saveAndCloseButton_Click);
            PlaceholderButtons2.Controls.Add(saveAndCloseButton2);

            this.saveAndCloseButton.Click += new EventHandler(this.saveAndCloseButton_Click);

//			PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
//			PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));

            // Removed by Mario Endara <*****@*****.**> (2004/11/04)
//			if (Appleseed.Security.PortalSecurity.IsInRoles("Admins"))
//			{

            string NavigateUrlPropertyPage = Appleseed.Framework.HttpUrlBuilder.BuildUrl("~/DesktopModules/CoreModules/Admin/ModuleSettings.aspx", PageID, ModuleID);

            if (Request.QueryString.GetValues("ModalChangeMaster") != null)
            {
                NavigateUrlPropertyPage += "&ModalChangeMaster=true";
                if (Request.QueryString.GetValues("camefromEditPage") != null)
                {
                    NavigateUrlPropertyPage += "&camefromEditPage=true";
                }
            }

            adminPropertiesButton             = new HyperLink();
            adminPropertiesButton.TextKey     = "MODULESETTINGS_BASE_SETTINGS";
            adminPropertiesButton.Text        = "Edit base settings";
            adminPropertiesButton.CssClass    = "CommandButton";
            adminPropertiesButton.NavigateUrl = NavigateUrlPropertyPage;

            PlaceHolderButtons.Controls.Add(adminPropertiesButton);

            // jminond added to top of property page so no need to scroll for save
            HyperLink adminPropertiesButton2 = new HyperLink();

            adminPropertiesButton2.TextKey     = "MODULESETTINGS_BASE_SETTINGS";
            adminPropertiesButton2.Text        = "Edit base settings";
            adminPropertiesButton2.CssClass    = "CommandButton";
            adminPropertiesButton2.NavigateUrl = NavigateUrlPropertyPage;


            PlaceholderButtons2.Controls.Add(adminPropertiesButton2);

//			PlaceHolderButtons.Controls.Add(new LiteralControl("&nbsp;"));
//			PlaceholderButtons2.Controls.Add(new LiteralControl("&nbsp;"));
//			}

            // jminond added to top of property page so no need to scroll for save
            LinkButton cancel2 = new LinkButton();

            cancel2.CssClass = "CommandButton";
            cancel2.TextKey  = "Cancel";
            cancel2.Text     = "Cancel";
            cancel2.Click   += new EventHandler(CancelButton_Click);
            PlaceholderButtons2.Controls.Add(cancel2);

            this.CancelButton          = new LinkButton();
            this.CancelButton.CssClass = "CommandButton";
            PlaceHolderButtons.Controls.Add(this.CancelButton);

//			if(((UI.Page)this.Page).IsCssFileRegistered("tabsControl") == false)
//			{
//				string themePath = Path.WebPathCombine(this.CurrentTheme.WebPath, "/tabControl.css");
//				((UI.Page)this.Page).RegisterCssFile("tabsControl", themePath);
//			}
// Modified by Hongwei Shen 10/72005-- the css file will be inject with the main theme
//			if(!((UI.Page)this.Page).IsCssFileRegistered("TabControl"))
//				((UI.Page)this.Page).RegisterCssFile("TabControl");


            this.EditTable.UpdateControl += new UpdateControlEventHandler(this.EditTable_UpdateControl);
            this.Load += new EventHandler(this.PagePropertyPage_Load);
            base.OnInit(e);
        }
        /// <summary>
        /// Handles the ItemDataBound event of the dgFile control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.Web.UI.WebControls.DataGridItemEventArgs"/> instance containing the event data.</param>
        private void dgFile_ItemDataBound(object sender, DataGridItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem ||
                e.Item.ItemType == ListItemType.EditItem)
            {
                Image imgType = (Image) e.Item.FindControl("imgType");
                //PlaceHolder plhImgEdit = (PlaceHolder)e.Item.FindControl("plhImgEdit");
                LinkButton lnkName = (LinkButton) e.Item.FindControl("lnkName");
                //HyperLink imgACL = (HyperLink)e.Item.FindControl("imgACL");

                //HyperLink for Edit Text
                HyperLink hlImgEdit = new HyperLink();
                hlImgEdit.ImageUrl = this.CurrentTheme.GetModuleImageSRC("btnEdit.gif");
                hlImgEdit.NavigateUrl = Path.ApplicationFullPath + "Desktopmodules/Filemanager/EditFile.aspx?ID=" +
                                        GetCurDir() + "\\" + DataBinder.Eval(e.Item.DataItem, "filename");
                //----

                int type = int.Parse(DataBinder.Eval(e.Item.DataItem, "type", "{0}"));
                if (type == 0)
                {
                    imgType.ImageUrl = this.CurrentTheme.GetModuleImageSRC("dir.gif");
                    e.Item.Cells[2].Text = "";
                    e.Item.Cells[3].Text = "";
                }
                else
                {
                    string name = DataBinder.Eval(e.Item.DataItem, "filename", "{0}").Trim().ToLower();
                    lnkName.Enabled = IsDownloadable(name);
                    string ext = name.Substring(name.LastIndexOf(".") + 1);
                    imgType.ImageUrl = Path.WebPathCombine(Path.ApplicationRoot, "aspnet_client/Ext/" + imageAsign(ext));
                }
            }
        }