资源简介
自己做的项目,期末考试作为项目上交的.感觉还不错,前台和后台 都有
老师说做得不错

代码片段和文件信息
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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 System.xml.Linq;
using System.Data.SqlClient;
public partial class BlogShows : System.Web.UI.Page
{
public int airtcleid = 0;
public string getRan = ““;
public string getWeizhi = ““;
public string Restore = ““;
public int id = 0;
public int menuid = 0;
public int parentid = 0;
public string menutype = ““;
public string title = ““;
public string content = ““;
public string time = ““;
public string adminName = ““;
public int count = 0;
public string restoreAdmin = ““;
public string username = ““;
protected void Page_Load(object sender EventArgs e)
{
try
{
username = Request[“username“].ToString().Trim();
airtcleid = Convert.ToInt32(Request[“airtcleid“]);
string sql = “select count(*) as [count] from [restore] where airticleid =“ + airtcleid;
SqlDataReader d = DbHelper.ExecRead(sql);
while (d.Read()) {
count = Convert.ToInt32(d[“count“]);
}
d.Close();
getAirtcle();
getRestore();
restoreAdmin = Request[“text“].ToString().Trim();
if (!restoreAdmin.Equals(““))
getRestoreAdmin();
}
catch { }
getRanAir();
}
private void getRanAir()
{
int[] ran = new int[5];
for (int i = 0; i < 5; i++)
{
Random r = new Random();
ran[i] = r.Next(10);
}
for (int i = 0; i < 5; i++)
{
for (int j = i + 1; j < 5; j++)
{
while (ran[i] == ran[j])
{
Random r = new Random();
ran[j] = r.Next(10);
if (ran[i] != ran[j])
break;
}
}
}
string sql = “select * from airticle where Airtid = “ + ran[0];
for (int i = 0; i < 4; i++)
{
sql += (“ or Airtid=“ + ran[i + 1]);
}
SqlDataReader dr = DbHelper.ExecRead(sql);
while (dr.Read())
{
getRan += “ + dr[“Airtid“]
+ “‘>“ + dr[“title“].ToString().Trim() + “ “;
}
dr.Close();
}
private void getRestoreAdmin() {
try{
SqlParameter [] pars = new SqlParameter[5];
pars[0] = new SqlParameter(“@reid“System.Data.SqlDbType.Int);
pa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-06-19 22:17 asp.net博客系统\
目录 0 2012-06-19 22:17 asp.net博客系统\blog\
文件 3145728 2012-06-19 23:05 asp.net博客系统\blog.mdf
目录 0 2012-06-19 22:17 asp.net博客系统\blog\App_Code\
文件 2401 2012-06-03 21:12 asp.net博客系统\blog\App_Code\DBHelper.cs
目录 0 2012-06-10 11:13 asp.net博客系统\blog\App_Data\
目录 0 2012-06-10 11:13 asp.net博客系统\blog\bin\
文件 7316 2012-06-05 13:05 asp.net博客系统\blog\blog.sql
文件 8092 2012-06-06 17:18 asp.net博客系统\blog\BlogShows.aspx
文件 8335 2012-06-09 13:47 asp.net博客系统\blog\BlogShows.aspx.cs
目录 0 2012-06-19 22:17 asp.net博客系统\blog\css\
文件 34574 2012-06-06 11:10 asp.net博客系统\blog\css\colors-fresh.css
文件 318 2012-05-30 17:15 asp.net博客系统\blog\css\comment-info-detector.css
文件 8195 2012-05-30 17:13 asp.net博客系统\blog\css\highslide.css
文件 6665 2012-05-30 18:16 asp.net博客系统\blog\css\shCoreDjango.css
文件 19305 2012-06-09 11:16 asp.net博客系统\blog\css\st
文件 104211 2012-06-06 19:34 asp.net博客系统\blog\css\wp-admin.css
文件 6710 2012-06-01 13:51 asp.net博客系统\blog\droppy.zip
文件 5299 2012-06-01 14:08 asp.net博客系统\blog\dropy.html
文件 581 2012-06-05 21:21 asp.net博客系统\blog\Error.aspx
文件 408 2012-06-03 21:11 asp.net博客系统\blog\Error.aspx.cs
目录 0 2012-06-19 22:31 asp.net博客系统\blog\images\
文件 40162 2011-03-17 17:37 asp.net博客系统\blog\images\01.jpg
文件 32535 2011-03-17 17:37 asp.net博客系统\blog\images\02.jpg
文件 29463 2011-03-17 17:37 asp.net博客系统\blog\images\03.jpg
文件 29490 2011-03-17 17:37 asp.net博客系统\blog\images\04.jpg
文件 21694 2011-03-17 17:37 asp.net博客系统\blog\images\05.jpg
文件 44433 2012-05-30 17:28 asp.net博客系统\blog\images\404.png
文件 4284 2012-06-19 22:31 asp.net博客系统\blog\images\admin.jpg
文件 5475 2012-06-06 11:20 asp.net博客系统\blog\images\login.jpg
文件 28672 2012-06-04 15:42 asp.net博客系统\blog\images\Thumbs.db
............此处省略36个文件信息
- 上一篇:基于C#的波形显示控件的实现[附完整]
- 下一篇:C# 按钮美化 直接拖出来用即可
相关资源
- Asp.net学生信息管理系统源码
- asp.net C#购物车源代码
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- c# 高校档案信息管理系统
- asp.net中c#做的躲避小游戏,希望大家
- ASP.NET C# 工资管理系统
- ASP.NET客户管理系统(毕业设计 C#
- 在线求职系统(C#ASP.NET源码)
- asp.net 在线考试系统及论文
- ASP.Net文件上传管理源码
- 《OA企业办公自动化》asp.net 源码(附
- asp.netc#开发规范
- asp.net 大文件上传(带进度条)
- 通过程序自动填充并提交ASP.NET表单(
- ASP.NET 基础编程文档(PPT电子教案)
-
ASP.NET_xm
l深入编程技术 - asp.net 新闻发布系统源码(附文档以及
- asp.net 简单的Ajax应用
- asp.net 企业官网源码(附数据库)
- asp.net 花语花店销售网站源码(含数据
- ASP.NET资产管理系统源码(附数据库)
- ajax 登录(基于asp.net)
- asp.net 简单新闻发布系统源码(附数据
- asp.net新闻发布系统(源码+数据库+论
- asp.net网上购物系统源码
- ASP.NET 在浏览器中预览文件
- asp.net 生命周期
- asp.net 花语花店销售网站源码(附数据
- asp.net 购物车实现(基于Session)
评论
共有 条评论