以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 XML基础 』 (http://bbs.xml.org.cn/list.asp?boardid=1) ---- 这样写的代码有问题吗?那位高人 能指点一下 (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=55101) |
-- 作者:liccmouse007 -- 发布时间:11/9/2007 11:21:00 AM -- 这样写的代码有问题吗?那位高人 能指点一下 高人指点一下吧,我写了段代码在.net中,并且已经有了一个xml文件blog.xml,想实现的功能是:点击button后,把 主题subject和内容content提交到xml,然后显示出来.下面是我写的代码,运行时并没出错 可是 却提交不上去,界面上只是显示了我原blog.xml中的内容。不知道是我的这种代码写法有问题吗? using System; using System.Data; using System.Configuration; using System.IO; using System.Xml; using System.Xml.XPath; using System.Data.SqlClient; 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; public partial class blog : System.Web.UI.Page } } public void Add_diary(string filename,string subject,string content) diary_child =doc.CreateElement( "subject "); diary_child =doc.CreateElement( "date "); diary_child =doc.CreateElement( "content "); XmlNode node; } } |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |