Example #1
0
    private void SetPageContent(WikiPage wikiPage)
    {
        WikiTextFormatter wf = new WikiTextFormatter();

        litContent.Text = wf.FormatPageForDisplay(wikiPage.PageContent);
        if (DateTime.Now != wikiPage.Created)
        {
            lastMod.Text = wf.FormatPageForDisplay("<div class=\"rowfluid\"><div class=\"span12\">This wiki was last modified by " + wikiPage.ModifiedBy + " on " + wikiPage.LastModified + "</div></div>");
        }
    }
Example #2
0
    private void LoadVersionContent()
    {
        string strSQL = string.Format("select pagecontent from wiki_pagehistory where pagehistoryid='{0}' ", m_VersionID);;
        //DBInterface.ConnectDB();
        IDataReader result = DBInterface.QuerySQL(strSQL);

        if (result != null)
        {
            while (result.Read())
            {
                WikiTextFormatter wf = new WikiTextFormatter();
                litContent.Text = wf.FormatPageForDisplay(result.GetString(0));
            }
            result.Close();
        }
        DBInterface.CloseDB();
    }
Example #3
0
    private void SetPageContent(WikiPage wikiPage)
    {
        WikiTextFormatter wf = new WikiTextFormatter();

        litContent.Text = wf.FormatPageForDisplay(wikiPage.PageContent);
    }
Example #4
0
 private void SetPageContent(WikiPage wikiPage)
 {
     WikiTextFormatter wf = new WikiTextFormatter();
     litContent.Text = wf.FormatPageForDisplay(wikiPage.PageContent);
     if (DateTime.Now != wikiPage.Created)
         lastMod.Text = wf.FormatPageForDisplay("<div class=\"rowfluid\"><div class=\"span12\">This wiki was last modified by " + wikiPage.ModifiedBy + " on " + wikiPage.LastModified + "</div></div>");
 }
Example #5
0
    private void LoadVersionContent()
    {
        string strSQL = string.Format("select pagecontent from wiki_pagehistory where pagehistoryid='{0}' ", m_VersionID); ;
        //DBInterface.ConnectDB();
        IDataReader result = DBInterface.QuerySQL(strSQL);

        if (result != null)
        {
            while (result.Read())
            {
                WikiTextFormatter wf = new WikiTextFormatter();
                litContent.Text = wf.FormatPageForDisplay(result.GetString(0) );
            }
            result.Close();

        }
        DBInterface.CloseDB();
    }
Example #6
0
    private void SetPageContent(WikiPage wikiPage)
    {
        WikiTextFormatter wf = new WikiTextFormatter();

        litContent.Text = wf.FormatPageForDisplay(wikiPage.PageContent);
    }