资源简介
在VS2010环境下,用ASP.NET+SQL server实现一个微博系统

代码片段和文件信息
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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 DBConn;
public partial class Admin : System.Web.UI.Page
{
public String getUserId = null;
protected void Page_Load(object sender EventArgs e)
{
if (Session[“userId“] == null)
{
Session[“userId“] = Request.Cookies[“myCookie“].Value.ToString();
}
Session[“friendId“] = null;
String conn = ConfigurationManager.AppSettings[“MyConnectionString“];
Class1 DBConn = new Class1(conn);
String[] myFriendsName = new String[200];
String[] myFriendsId = new String[200];
if (Session[“userId“] == null)
{
Response.Redirect(“Default.aspx“);
}
else
{
getUserId = Session[“userId“].ToString();
}
Session[“friendId“] = null;
String delFriendId = Request.QueryString[“friendId“];
if (delFriendId != null)
{
DBConn.deleteUser(delFriendId);
}
myFriendsId = DBConn.getAllUserID();
for (int k = 0; k < 200; k++)
{
if (myFriendsId[k] != null)
{
myFriendsName[k] = DBConn.getName(myFriendsId[k]);
}
}
this.Label1.Text = null;
this.Label1.Text = “
“;
for (int i = 0; i < 200; i++)
{
if (myFriendsName[i] != null)
{
this.Label1.Text += “ “;
this.Label1.Text += “ this.Label1.Text += myFriendsId[i];
this.Label1.Text += “\“>“;
this.Label1.Text += myFriendsName[i];
this.Label1.Text += “ “;
this.Label1.Text += “ this.Label1.Text += myFriendsId[i];
this.Label1.Text += “\“>删除用户“;
this.Label1.Text += “
“;
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1727 2013-06-01 16:44 WeiBo\Admin.aspx
文件 2412 2013-05-31 21:24 WeiBo\Admin.aspx.cs
文件 17451 2013-05-31 21:34 WeiBo\App_Code\Databa
文件 6525 2010-06-18 09:49 WeiBo\App_Code\MakeThum.cs
文件 10485760 2010-06-10 21:51 WeiBo\App_Data\ASPNETDB.MDF
文件 516096 2010-06-10 21:51 WeiBo\App_Data\aspnetdb_log.ldf
文件 773 2013-06-01 19:28 WeiBo\app_offline.htm
文件 24576 2010-06-18 19:54 WeiBo\Bin\DBConn.dll
文件 26112 2010-06-18 19:54 WeiBo\Bin\DBConn.pdb
文件 1725 2013-05-31 19:31 WeiBo\Bowen.aspx
文件 2308 2013-05-31 21:24 WeiBo\Bowen.aspx.cs
文件 1040 2013-05-22 10:46 WeiBo\CSS\Twitter_Navi_li
文件 438 2013-05-31 12:25 WeiBo\Default.aspx
文件 616 2010-06-18 18:01 WeiBo\Default.aspx.cs
文件 6116 2010-06-18 01:18 WeiBo\Editor.aspx
文件 5365 2010-06-18 10:21 WeiBo\Editor.aspx.cs
文件 2109 2010-06-18 18:27 WeiBo\Friends.aspx
文件 2551 2010-06-18 19:16 WeiBo\Friends.aspx.cs
文件 6656 2010-06-13 11:55 WeiBo\Images\1.png
文件 288613 2013-05-22 09:26 WeiBo\Images\2.png
文件 122744 2013-05-22 09:15 WeiBo\Images\3.png
文件 3836 2013-05-22 12:30 WeiBo\Images\5.png
文件 5740 2013-05-22 13:49 WeiBo\Images\7.png
文件 13522 2013-05-22 14:00 WeiBo\Images\8.png
文件 9601 2013-05-22 14:03 WeiBo\Images\9.png
文件 8201 2010-06-10 18:01 WeiBo\Images\back.png
文件 82772 2013-05-22 10:14 WeiBo\Images\back1.png
文件 86447 2013-05-22 11:15 WeiBo\Images\back3.png
文件 518468 2013-05-22 09:42 WeiBo\Images\bg-clouds.png
文件 3584 2013-05-22 14:31 WeiBo\Images\reg.png
............此处省略51个文件信息
相关资源
- Asp.net学生信息管理系统源码
- 超市进销存管理系统 Sqlserver 数据库文
- asp.net C#购物车源代码
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# 高校档案信息管理系统
- C# sql实现批量导入数据到数据库
- asp.net中c#做的躲避小游戏,希望大家
- ASP.NET C# 工资管理系统
- C# SQL学生选课系统
- ASP.NET客户管理系统(毕业设计 C#
- 在线求职系统(C#ASP.NET源码)
- C#实现登录注册(SQL)
- asp.net 在线考试系统及论文
- ASP.Net文件上传管理源码
- 《OA企业办公自动化》asp.net 源码(附
- 数据表转实体源码(实体类生成器)
- vs2017+mysql的用户角色权限管理(附数
- kepserver 连接 PLC代码
- asp.netc#开发规范
- C#简单连接查询sqlite数据库
- asp.net 大文件上传(带进度条)
- 通过程序自动填充并提交ASP.NET表单(
- ArcGIS MapServer 要素类
- ASP.NET 基础编程文档(PPT电子教案)
-
ASP.NET_xm
l深入编程技术 - asp.net 新闻发布系统源码(附文档以及
- asp.net 简单的Ajax应用
评论
共有 条评论