xmlдÈë·½·¨ - .NET¼¼Êõ / ASP.NET
C# code:
/// <summary>
/// ½«·¢ÌûÄÚÈݱ£´æµ½XMLÎļþÖеķ½·¨
/// </summary>
/// <param name="filename">XMLÎļþ·¾¶È«Ãû</param>
/// <param name="title">XMLÎļþ·¾¶È«Ãû</param>
/// <param name="content">XMLÎļþ·¾¶È«Ãû</param>
/// <param name="user">XMLÎļþ·¾¶È«Ãû</param>
public void AddXML(string filename,string title,string content,string user)
{
//³õʼ»¯XMLÎĵµ²Ù×÷Àà
XmlDocument mydoc = new XmlDocument();
//¼ÓÔØÖ¸¶¨µÄXMLÎļþ
mydoc.Load(filename);
//Ìí¼ÓÔªËØ-Ìû×ÓÖ÷Ìâ
XmlElement ele = mydoc.CreateElement("title");
XmlText text = mydoc.CreateTextNode(title);
//Ìí¼ÓÔªËØ-·¢Ìûʱ¼ä
XmlElement ele1 = mydoc.CreateElement("posttime");
XmlText text1 = mydoc.CreateTextNode(DateTime.Now.ToString());
//Ìí¼ÓÔªËØ-ÄÚÈÝ
XmlElement ele2 = mydoc.CreateElement("content");
XmlText text2 = mydoc.CreateTextNode(content);
//Ìí¼ÓÔªËØ-·¢ÌûÈË
XmlElement ele3 = mydoc.CreateElement("postuser");
XmlText text3 = mydoc.CreateTextNode(user);
//Ìí¼ÓÎļþµÄ½Úµã-msgrecord
XmlNode newElem = mydoc.CreateNode("element", "xmlrecord", "&qu
Ïà¹ØÎÊ´ð£º
DataSetµ¼³öxml Åú´¦Àí(Ñ»·)µÃÔõô´¦Àí
XMLÎļþ
<A>
<B>
<C>
</C>
&nb ......
ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
asp ·Ò³ÔõôʵÏÖ£¿
·ÖÒ³¿ÉʹÓ÷ÖÒ³¿Ø¼þÈçaspnetpager
ûÕÒµ½´Ë¿Ø¼þ£¡£¡£¡£¡£¡
µÚÈý·½×é¼þ ÐèÒªÔÚÍøÉÏÈ¥ÏÂÔØ http://www.webdiyer.com/Controls/AspNetPager/Downloads
²»Óÿؼþ Ôõô×ö°¡£¡
hehe
²» ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøվͼƬ¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......
O O O O O O
|.......| |........| |.......|
| | |
O O ......