/// <summary> /// Konstruktor. /// </summary> /// <param name="config">Aktuelle Instanz des Konfigurationsobjektes.</param> public ArticleManager(ConfigAgent configAgent) { this.configAgent = configAgent; // Prüfen, ob das Directory für diese Forum-Instanz existiert. // Ist es noch nicht vorhanden, so wird es erzeugt. string szDirectory = GetDataPath(""); szDirectory = szDirectory.Substring(0, szDirectory.Length - 1); if (!Directory.Exists(szDirectory)) Directory.CreateDirectory(szDirectory); }
protected void Page_Load(object sender, System.EventArgs e) { configAgent = ((IStateProcessor)Parent).ConfigAgent; m_NewThreadLnk.Visible = configAgent.IsThreadCreationAllowed(); ArticleManager mgr = new ArticleManager(configAgent); ForumData data = mgr.ThreadRootData; data.Forum.DefaultView.Sort = "Id DESC"; m_ForumTable.DataSource = data.Forum.DefaultView; m_ForumTable.DataBind(); }
protected void Page_Load(object sender, System.EventArgs e) { configAgent = ((IStateProcessor)Parent).ConfigAgent; m_NewThreadLnk.Visible = configAgent.IsThreadCreationAllowed(); ArticleManager mgr = new ArticleManager(configAgent); ForumData data = mgr.ThreadRootData; data.Forum.DefaultView.Sort = "Id DESC"; m_ForumTable.DataSource = data.Forum.DefaultView; m_ForumTable.DataBind(); }
protected void Page_Load(object sender, System.EventArgs e) { configAgent = ((IStateProcessor)Parent).ConfigAgent; ArticleManager mgr = new ArticleManager(configAgent); m_Data = mgr.SearchResults; m_SearchResultsTable.DataSource = m_Data; m_SearchResultsTable.DataBind(); string szHits = Portal.API.Language.GetText(Portal.API.Module.GetModuleControl(this), "Hits"); m_StateLbl.Text = m_Data.Rows.Count + " " + szHits; }
/// <summary> /// Konstruktor. /// </summary> /// <param name="config">Aktuelle Instanz des Konfigurationsobjektes.</param> public ArticleManager(ConfigAgent configAgent) { this.configAgent = configAgent; // Prüfen, ob das Directory für diese Forum-Instanz existiert. // Ist es noch nicht vorhanden, so wird es erzeugt. string szDirectory = GetDataPath(""); szDirectory = szDirectory.Substring(0, szDirectory.Length - 1); if (!Directory.Exists(szDirectory)) { Directory.CreateDirectory(szDirectory); } }
protected void Page_Load(object sender, System.EventArgs e) { configAgent = ((IStateProcessor)Parent).ConfigAgent; ArticleManager mgr = new ArticleManager(configAgent); m_Data = mgr.SearchResults; m_SearchResultsTable.DataSource = m_Data; m_SearchResultsTable.DataBind(); string szHits = Portal.API.Language.GetText(Portal.API.Module.GetModuleControl(this), "Hits"); m_StateLbl.Text = m_Data.Rows.Count + " " + szHits; }
protected void Page_Load(object sender, System.EventArgs e) { configAgent = ((IStateProcessor)Parent).ConfigAgent; if (configAgent.Module.Page.User.Identity.IsAuthenticated) { m_NameTB.Text = HttpUtility.HtmlDecode(configAgent.CurrentUserName); m_NameTB.ReadOnly = true; m_EmailTB.Text = configAgent.CurrentUserEmail; m_EmailTB.ReadOnly = true; m_UserIdTB.Text = configAgent.CurrentUserId.ToString(); } RegisterJavascript(); }
protected void Page_Load(object sender, System.EventArgs e) { configAgent = ((IStateProcessor)Parent).ConfigAgent; if (configAgent.Module.Page.User.Identity.IsAuthenticated) { m_NameTB.Text = HttpUtility.HtmlDecode(configAgent.CurrentUserName); m_NameTB.ReadOnly = true; m_EmailTB.Text = configAgent.CurrentUserEmail; m_EmailTB.ReadOnly = true; m_UserIdTB.Text = configAgent.CurrentUserId.ToString(); } RegisterJavascript(); }
protected void Page_Load(object sender, System.EventArgs e) { // Holen des Konfigurationsobjektes. configAgent = ((IStateProcessor)Parent).ConfigAgent; Bind(); if (configAgent.ArticleToShow != -1) { if(!Page.IsStartupScriptRegistered("jump")) { string szScript = "<script language=\"javascript\">" + " function jump() { " + " window.location='#" + configAgent.ArticleToShow + "'; } " + " window.onLoad() = jump(); " + "</script>"; Page.RegisterStartupScript("jump", szScript); } } }
protected void Page_Load(object sender, System.EventArgs e) { // Holen des Konfigurationsobjektes. configAgent = ((IStateProcessor)Parent).ConfigAgent; Bind(); if (configAgent.ArticleToShow != -1) { if (!Page.IsStartupScriptRegistered("jump")) { string szScript = "<script language=\"javascript\">" + " function jump() { " + " window.location='#" + configAgent.ArticleToShow + "'; } " + " window.onLoad() = jump(); " + "</script>"; Page.RegisterStartupScript("jump", szScript); } } }