wiki开源代码asp.net+sql


wiki功能基本实现,供参考的源码,使用c#语言和asp2.0+sql
资源截图
代码片段和文件信息
/*
Copyright (c) 2005 Clay Alberty
All rights reserved.

Redistribution and use in source and binary forms with or without modification are permitted 
provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice this list of conditions 
      and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice this list of conditions 
      and the following disclaimer in the documentation and/or other materials provided with the distribution.
    * Neither the name of Clay Alberty nor the names of his contributors may be used to endorse or 
      promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND ANY EXPRESS OR IMPLIED 
WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 
ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED 
TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) 
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING 
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY
OF SUCH DAMAGE.
*/

using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.IO;
using System.Text;
using System.Text.Regularexpressions;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ProntoWiki.Controls;

namespace ProntoWiki
{
    public partial class _Default : WikibasePage
    {
        //记录时间
        private DateTime wikiStartTime;
        private DateTime wikiEndTime;

        protected void Page_Load(object sender EventArgs e)
        {
            
            pageName = GetPageName();//获取页面名称
            lblHeader.Text = pageName;//加入顶部

            WikiSiteNav nav1 = (WikiSiteNav)Master.FindControl(“nav1“);//?  
                                 
            try
            {
                nav1.Add(pageName);
            }
            catch (Exception ex)
            {
                HandleError(ex);
            }

            if (!IsPostBack)
            {
                BindPageText(true);
            }

            PerformSecurityChecks();                        

        }

        protected void PerformSecurityChecks()
        {
            if (!Context.User.IsInRole(“Editor“))
            {
                btnCreate.Visible = false;
                if (DataList1.Items.Count > 0)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5023  2008-02-18 11:22  wiki开源App_CodeWikibasePage.cs

     文件      11685  2006-06-19 21:50  wiki开源App_CodeWikiParser.cs

     文件       1746  2006-04-08 18:06  wiki开源App_Data1.0.0.3.sql

     文件       8738  2006-06-20 21:57  wiki开源App_Data1.0.1.6.sql

     文件      22348  2006-06-20 21:57  wiki开源App_DataProntoWiki_Full.sql

     文件       3468  2006-05-21 14:06  wiki开源App_ThemesMSN_Bluedefault.css

     文件       8687  2006-04-07 23:03  wiki开源App_ThemesMSN_Bluedefault.skin

     文件       1138  2005-03-13 12:37  wiki开源App_ThemesMSN_BlueImagesar.JPG

     文件        709  2005-03-31 17:02  wiki开源App_ThemesMSN_BlueImagesullet.JPG

     文件       3255  2005-03-13 12:39  wiki开源App_ThemesMSN_BlueImageslogo.JPG

     文件        615  2006-05-13 23:20  wiki开源App_ThemesMSN_BlueImages ack.png

     文件        772  2005-03-15 19:08  wiki开源App_ThemesMSN_Bluemenuicon.JPG

     文件       3100  2006-05-14 21:34  wiki开源App_ThemesMSN_Reddefault.css

     文件       8648  2006-04-08 16:37  wiki开源App_ThemesMSN_Reddefault.skin

     文件        953  2005-03-13 12:07  wiki开源App_ThemesMSN_RedImagesar.JPG

     文件        733  2005-03-31 17:12  wiki开源App_ThemesMSN_RedImagesullet.JPG

     文件       2288  2005-03-31 17:07  wiki开源App_ThemesMSN_RedImageslogo.JPG

     文件        569  2005-12-18 22:14  wiki开源ControlsDisplayModeMenu.ascx

     文件       4141  2005-12-22 22:51  wiki开源ControlsDisplayModeMenu.ascx.cs

     文件        605  2006-04-21 22:40  wiki开源ControlsGoToPage.ascx

     文件       2436  2006-05-16 22:13  wiki开源ControlsGoToPage.ascx.cs

     文件        637  2005-12-21 22:31  wiki开源ControlsSearch.ascx

     文件       2455  2005-12-22 22:51  wiki开源ControlsSearch.ascx.cs

     文件        369  2006-05-16 22:31  wiki开源ControlsTopTen.ascx

     文件       2812  2005-12-22 22:51  wiki开源ControlsTopTen.ascx.cs

     文件        311  2005-12-18 22:59  wiki开源ControlsWikiLogin.ascx

     文件       2015  2005-12-22 22:51  wiki开源ControlsWikiLogin.ascx.cs

     文件        182  2005-12-18 22:30  wiki开源ControlsWikiSiteNav.ascx

     文件       5298  2006-05-16 22:17  wiki开源ControlsWikiSiteNav.ascx.cs

     文件      13544  2008-02-18 10:04  wiki开源Default.aspx

............此处省略6831个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)