资源简介
基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统基于ASP.NET的博客系统
代码片段和文件信息
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 MyBlogModels;
using MyBlogBLL;
public partial class article : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
if (!IsPostBack)
{
try
{
int id = Convert.ToInt32(Request.QueryString[“aid“]);
Article article = ArticleManager.GetArticleById(id);
article.Clicks += 1;
if (article == null || article.Equals(null))
{
this.Page.title = “此文章不存在或被管理员删除请见谅“ ;
this.lblcontent.Text = “此文章不存在或被管理员删除请见谅!“;
}
else
{
this.lbltitle.Text = article.title;
this.Page.title = article.title;
this.lblposttime.Text = article.PubDate.ToString();
this.lblcontent.Text = article.Contents;
article.Clicks += 1;
ArticleManager.ModifyArticle(article);
}
}
catch
{
Response.Redirect(“refresh.aspx?msg=“ + “此文章不存在或被管理员删除请见谅!“);
}
}
}
protected void btnCommit_ServerClick(object sender EventArgs e)
{
int id = Convert.ToInt32(Request.QueryString[“aid“]);
Article article = ArticleManager.GetArticleById(id);
string commentContent = Server.HtmlEncode(this.txtComment.Text.ToString());
if (commentContent.Length > 250)
{
commentContent = commentContent.Substring(0 250);
}
Comment comment = new Comment();
comment.Article = article;
comment.AuthorName = this.txtCommentName.Text.ToString();
comment.Contents = commentContent;
comment.PubDate = DateTime.Now;
if (CommentManager.AddComment(comment) != null)
{
Response.Redirect(“article.aspx?aid=“ + id);
Response.Write(“alert(\“恭喜您,评论发表成功!\“)“);
}
else
{
this.lblErrorComment.Text = “很抱歉你的评论发表失败请重新尝试!“;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1090 2008-01-15 13:15 BeijixingBlog\MyBlog\App_Code\CommonHandler.cs
文件 2615 2009-04-21 08:44 BeijixingBlog\MyBlog\article.aspx.cs
文件 3072 2007-11-14 16:54 BeijixingBlog\MyBlog\Bin\App_Licenses.dll
文件 61440 2007-11-07 11:22 BeijixingBlog\MyBlog\Bin\AspNetPager.dll
文件 40 2007-11-19 20:46 BeijixingBlog\MyBlog\Bin\AspNetPager.dll.refresh
文件 753664 2006-07-18 20:21 BeijixingBlog\MyBlog\Bin\FreeTextBox.dll
文件 16384 2009-12-30 21:42 BeijixingBlog\MyBlog\Bin\MyBlogBLL.dll
文件 17920 2009-12-30 21:42 BeijixingBlog\MyBlog\Bin\MyBlogBLL.pdb
文件 24576 2009-12-30 21:42 BeijixingBlog\MyBlog\Bin\MyBlogDAL.dll
文件 30208 2009-12-30 21:42 BeijixingBlog\MyBlog\Bin\MyBlogDAL.pdb
文件 20480 2009-12-30 21:42 BeijixingBlog\MyBlog\Bin\MyblogModels.dll
文件 24064 2009-12-30 21:42 BeijixingBlog\MyBlog\Bin\MyblogModels.pdb
文件 1240 2009-05-04 10:56 BeijixingBlog\MyBlog\Default.aspx.cs
文件 939 2007-11-13 17:45 BeijixingBlog\MyBlog\images\1111.jpg
文件 984 2007-11-13 17:45 BeijixingBlog\MyBlog\images\222.jpg
文件 47383 2007-11-12 16:17 BeijixingBlog\MyBlog\images\7000111.jpg
文件 970 2007-11-14 17:48 BeijixingBlog\MyBlog\images\cancel.jpg
文件 1542 2007-08-29 11:22 BeijixingBlog\MyBlog\images\exit.jpg
文件 957 2007-11-14 11:45 BeijixingBlog\MyBlog\images\exitlogin.jpg
文件 981 2007-11-13 17:52 BeijixingBlog\MyBlog\images\finish.jpg
文件 1012 2007-08-29 10:58 BeijixingBlog\MyBlog\images\finish1.gif
文件 939 2007-11-13 17:45 BeijixingBlog\MyBlog\images\login.jpg
文件 990 2007-11-14 17:48 BeijixingBlog\MyBlog\images\post.jpg
文件 984 2007-11-13 17:45 BeijixingBlog\MyBlog\images\reg.jpg
文件 1759 2007-08-29 11:22 BeijixingBlog\MyBlog\images\register.gif
文件 10803 2007-11-19 23:31 BeijixingBlog\MyBlog\images\st
文件 860 2007-08-29 10:58 BeijixingBlog\MyBlog\images\topleft.gif
文件 120 2007-08-29 10:58 BeijixingBlog\MyBlog\images\topright.gif
文件 57154 2009-12-30 22:00 BeijixingBlog\MyBlog\images\top.jpg
文件 42849 2009-12-30 22:07 BeijixingBlog\MyBlog\images\111.png
............此处省略100个文件信息
- 上一篇:wpf 实现多项式四则运算
- 下一篇:C#实现教学文档管理系统源码+数据库
相关资源
- 个人博客源码asp.net +sqlserver
- ASP.NET项目开发案例精粹16博客管理系
- asp.net在线博客 个人博客
- ASP.NET 实现的博客系统
- C#ASP_NET仿新浪微博客V2
- asp.net+sql数据库的博客系统
- 简单的校园博客 用到的技术是C#、A
- .net 三成架构 简易个人博客系统
- 基于asp.net开发的简单个人博客系统
- 基于ASP.NET的多功能博客blog系统的设计
- 毕业论文--基于ASP.NET的个人博客开发
- asp.net mvc博客系统
- ASP.net博客系统带数据库
- 博客使用的数据集上传记录一下
- 基于ASP.NET的博客系统源代码 BLOG
- C# 个人博客网站
- 基于ASP.net的博客
- asp.net+sql博客管理系统
- ASP.NET设计的博客网站
- 北极星博客--asp.net和C#
- 基于asp.net的博客系统 毕业设计论文
- 简单多用户博客系统基于asp.net
- 基于ASP.NET的个人博客系统
- ASP.net 个人博客源码 完整版免费
- 基于asp.net个人博客制作成品
- asp.net 做的 blog程序
- asp.net 博客系统附数据库文件
- .NET MVC2 完整博客系统源码
- asp.net 博客网站源码(MasterPage)
- BlogEngine.NET 2.9 (source)博客系统源码
评论
共有 条评论