资源简介
基于XML数据库的留言系统源码!
很值得下载看看!资源免费,大家分享!!

代码片段和文件信息
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 System.xml.XPath;
using System.xml;
using System.IO;
using System.xml.Xsl;
using System.Text.Regularexpressions;
public partial class Addly : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
}
protected void Button1_Click(object sender EventArgs e)
{
if (name0.Text==““)
{
Response.Write(“ript language=javascript>alert(‘请输入您的大名!‘) ript>“);
}
else
{
xmlDocument xmlDoc = new xmlDocument();
xmlDoc.Load(Server.MapPath(“guestbook.xml“));
xmlElement newElement = xmlDoc.CreateElement(“liuyan“);
xmlElement elid = xmlDoc.CreateElement(“id“);
xmlElement elname = xmlDoc.CreateElement(“name“);
xmlElement elemail = xmlDoc.CreateElement(“email“);
xmlElement elqq = xmlDoc.CreateElement(“qq“);
xmlElement elcomment = xmlDoc.CreateElement(“comment“);
xmlElement eldatatime = xmlDoc.CreateElement(“datatime“);
xmlElement elback = xmlDoc.CreateElement(“back“);
elid.InnerText = ReturnCount();
elname.InnerText = this.name0.Text.Trim();
elemail.InnerText = this.email0.Text.Trim();
elqq.InnerText = this.qq0.Text.Trim();
elcomment.InnerText = this.comment0.Text.Trim();
eldatatime.InnerText = DateTime.Now.ToString();
elback.InnerText =“ “;
newElement.AppendChild(elid);
newElement.AppendChild(elname);
newElement.AppendChild(elemail);
newElement.AppendChild(elqq);
newElement.AppendChild(elcomment);
newElement.AppendChild(eldatatime);
newElement.AppendChild(elback);
xmlDoc.DocumentElement.AppendChild(newElement);
xmlDoc.Save(Server.MapPath(“guestbook.xml“));
Response.Redirect(“ViewGuestBook.aspx“);
}
}
public string ReturnCount()
{
string i = string.Empty;
xmlDocument xmlDoc = new xmlDocument();
xmlDoc.Load(Server.MapPath(“guestbook.xml“));
xmlNode xmlNode = xmlDoc.DocumentElement.LastChild;
if (xmlNode != null)
{
i = Convert.ToString(Convert.ToUInt32(xmlNode[“id“].InnerText) + 1);
}
return i;
}
protected void btn2_Click(object sender EventArgs e)
{
name0.Text = ““;
email0.Text = ““;
qq0.Text = ““;
comment0.Text = ““;
}
protected void btn3_Click(object sender
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4945 2007-07-18 09:38 from.gif
文件 879 2009-12-28 13:08 guestbook.xm
文件 2549 2009-12-24 20:34 guestbook.xsl
文件 1567 2009-12-28 13:10 gustbook.sln
..A..H. 12800 2009-12-28 13:24 gustbook.suo
文件 1727 2009-12-27 17:32 login.aspx
文件 1795 2009-12-27 18:36 login.aspx.cs
文件 3478 2009-12-27 17:47 ViewGuestBook.aspx
文件 1188 2009-12-28 13:10 ViewGuestBook.aspx.cs
文件 1546 2009-12-27 16:41 Web.Config
文件 1052 2009-12-27 17:14 Welcome.aspx
文件 513 2009-12-27 16:37 Welcome.aspx.cs
文件 565 2009-12-28 13:20 程序使用说明.txt
文件 125 2007-03-27 14:33 最新Asp.Net源码下载.url
文件 648 2009-12-28 13:09 ad\user.xm
文件 172160 2009-12-27 17:22 image\bg.jpg
文件 1677 2009-12-28 13:24 51aspx源码必读.txt
文件 2540 2009-12-25 18:45 Addly.aspx
文件 3100 2009-12-27 18:35 Addly.aspx.cs
文件 802 2009-12-26 14:13 back.aspx
文件 1558 2009-12-28 13:23 back.aspx.cs
文件 1630 2009-12-27 16:19 Creatuser.aspx
文件 1417 2009-12-28 13:09 Creatuser.aspx.cs
文件 1126 2009-12-26 11:36 Default.aspx
文件 440 2009-12-28 13:09 Default.aspx.cs
文件 435 2009-12-27 16:49 del.aspx
文件 1329 2009-12-28 13:23 del.aspx.cs
目录 0 2009-12-27 18:37 ad
目录 0 2009-12-27 18:37 image
----------- --------- ---------- ----- ----
............此处省略2个文件信息
相关资源
- J2EE 配置文件
-
开源tinyxm
l - 常用编码(UnicodeUTF-8GBK)转换工具
-
图片和xm
l格式互换 -
xm
l多个文件合并(delphi) -
xm
l课件及例题(xm l) -
《xm
l编程原理与实例教程》电子教 -
将数据库的表生成xm
l文件 -
简单的xm
l投票系统 -
notepad++包含xm
l tools等插件 -
Volley获取json和xm
l数据解析显示 -
李刚疯狂xm
l讲义第2版完整源码 -
maven settings.xm
l 直接使用 - Unity3D 实战视频教程 保卫萝卜 2D 游戏
-
Notepad++的xm
l格式化工具xm ltools_2 -
Notepad++的xm
l Tools插件格式化xm l文 -
map/list集合转化成xm
l字符串 xm l字 -
libxm
l2-2.9.4-rc2.tar.gz - antisamy策略文件
- 在线教学系统微信小程序
-
Tinyxm
l库文件 -
优秀xm
l程序设计(学生信息管理) - protobuf-2.4.1.zip
-
svnmaven xm
l Schema等程序员必备.7z -
xm
l基础教程-耿祥义 清华出版社 -
xm
l基础教程 第二版 PDF -
一个xm
l项目源代码 - 订单管理系统SSH框架
-
xm
l基础教程与实验指导课件PPT+源代 -
xm
l基础教程第2版教学课件
评论
共有 条评论