• 大小: 14.87MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-22
  • 语言: C#
  • 标签: 仿新浪  微博  网站  源码  

资源简介

仿新浪微博的网站源码 此网站花费了8个月的时间开发的,界面UI完全用旧版微博的CSS和图片,前台用jquery,后台由Asp.net MVC3+纯ADO.Net 开发。运行的话, 数据库文件在DB_51Aspx下,附加即可(MS Sql2008),并修改根目录下的Weibo.config的连接字符串就可以了。目前所有旧版微博的功能都完成了, 该有就有,并兼容IE和其他现代浏览器(IE9未测)。注册模块上设置了默认发到我的邮箱里面去,所有,要注册的可以到注册模块上改下来自51ASPX

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using Weibo.Entity;
using Weibo.Data;
using Weibo.Config;
using Weibo.Common;

namespace Weibo.Business
{
public class BlackLists
{
public static long CreateBlackList(BlackList blackList )
{
try
{
if (blackList == null)
return -1;
return Data.BlackLists.CreateBlackList(blackList);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return -1;
}
}

public static bool DelBlackList(long id)
{
try
{
if (id<=0)
return false;
return Data.BlackLists.DelBlackList(id);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return false;
                
}
}

        public static bool DelBlackListByUID(long uidlong pulledUid)
        {
            try
            {
                if (uid <= 0||pulledUid<=0)
                    return false;
                return Data.BlackLists.DelBlackListByUID(uidpulledUid);
            }
            catch (Exception ex)
            {
                Logs.WriteErrorLog(ex);
                return false;
              
            }
        }

public static bool IsInBlackList(long uidlong pulledUid)
{
try
{
if (uid <= 0||pulledUid<=0)
return false;
return Data.BlackLists.IsInBlackList(uidpulledUid);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return false;
                
}
}

public static IList GetBlackListByUID(long uid)
{
try
{
if (uid <= 0)
return null;
return Data.BlackLists.GetBlackListByUID(uid);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return null;
                
}
}

public static IList GetMyBlackList(int pageIndex int pageSizelong uidref int rowCount)
{
try
{
string where = “UID=“ + uid.ToString();
return Data.BlackLists.GetBlackListByPager(pageIndexpageSizewhereref rowCount);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return null;
                
}
}


}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-04-22 14:50  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\
     目录           0  2012-04-22 14:48  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\DB\
     文件     4194304  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\DB\Weibo.mdf
     文件     1048576  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\DB\Weibo_log.ldf
     目录           0  2012-04-22 14:48  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\
     目录           0  2012-04-22 14:48  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\
     目录           0  2012-04-22 14:48  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\
     文件       64000  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Business.dll
     文件      224768  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Business.pdb
     文件       52736  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Common.dll
     文件      153088  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Common.pdb
     文件       23552  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Config.dll
     文件      105984  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Config.pdb
     文件       60928  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Data.dll
     文件      214528  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Data.pdb
     文件       46080  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Entity.dll
     文件        7680  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Entity.pdb
     文件       19968  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Plugin.dll
     文件       40448  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\bin\Debug\Weibo.Plugin.pdb
     文件        2233  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\BlackLists.cs
     文件        2658  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Careers.cs
     文件       12646  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Comments.cs
     文件        1810  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Companies.cs
     文件         639  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Complaints.cs
     文件        2649  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Educations.cs
     文件        8292  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Emails.cs
     文件        1166  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\expressions.cs
     文件        1648  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Froms.cs
     文件        4689  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Groups.cs
     文件        2149  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Logs.cs
     文件        7687  2012-04-20 10:20  51aspx_SinaWeibod78764af-73ab-4f92-95b8-667b437f9167\Weibo.Business\Messages.cs
............此处省略2305个文件信息

评论

共有 条评论