Пример #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>");
        }
    }
Пример #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();
    }
Пример #3
0
    private void SetPageContent(WikiPage wikiPage)
    {
        WikiTextFormatter wf = new WikiTextFormatter();

        litContent.Text = wf.FormatPageForDisplay(wikiPage.PageContent);
    }
Пример #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>");
 }
Пример #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();
    }
Пример #6
0
    private void SetPageContent(WikiPage wikiPage)
    {
        WikiTextFormatter wf = new WikiTextFormatter();

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