XmlÎļþ²Ù×÷ºÍÎļþ²Ù×÷(FileInfoÀà)
XmlÎļþ²Ù×÷ºÍÎļþ²Ù×÷(FileInfoÀà)
1. ÉÏ´«Îļþ
¡¡2. дXmlÎļþ
3. Îļþ¿½±´
¡¡1.¡¡//ÉÏ´«
protected void picUp_Click(object sender, EventArgs e)
{
BLL.tblCase bCase = new BLL.tblCase();
Model.tblCase mCase = new Model.tblCase();
if (picFile.PostedFile.ContentLength != 0)
{
//°¸ÀýÎļþ¼Ð
string strTitle = "";
if (ddltitle.SelectedItem.Text == "ÇëÑ¡Ôñ")
{
ClientScript.RegisterStartupScript(GetType(), "", "<script type='text/javascript'>alert('ÇëÑ¡Ôñ°¸ÀýÃû³Æ');</script>");
return;
// if (txtTitle.Text.Trim() == "")
// { }
//else
 
Ïà¹ØÎĵµ£º
Ò»¡¢±¾ÕÂÖ÷Òª½éÉÜ.NET XMLÐòÁл¯£¬¹¹½¨XMLÐòÁл¯µÄ¿ò¼ÜÀ࣬Ö÷Òª·ÅÔÚÄãµÄ¿ò¼ÜÏîÄ¿ÀïÃ棬ÀàÃû×ÖÃüÃûΪSerialiser£¬ÎҵĿò¼ÜÏîÄ¿Ãû³ÆÊÇMingXu.FrameWork£¬ÎÒ½«Serialiser·Åµ½ËüÏÂÃ棬MingXu.FrameWorkÀàÐÍΪClass Library
¶þ¡¢ÐòÁл¯ÀàÓõ½ÁË2¸ödll£¬·Ö±ðΪ£º
System.Xml.Serialization£ºX ......
ÎÄÕÂÀ´Ô´£ºIT¹¤³Ì¼¼ÊõÍø http://www.systhinker.com/html/43/n-11643.html
ÓõÄÊÇÒ»Öֺܱ¿µÄ·½·¨£¬µ«¿ÉÒÔ°ïÖú³õѧÕßÁ˽â·ÃÎÊXML½ÚµãµÄ¹ý³Ì¡£
ÒÑÖªÓÐÒ»¸öXMLÎļþ£¨bookstore.xml£©ÈçÏÂ:
<?xml version="1.0" encoding="gb2312"?>
<bookstore>
<book genre="fantasy" ISBN="2-3631-4">
......
Ajax(Asynchronous JavaScript and XML)˵µ½µ×¾ÍÊÇÒ»ÖÖä¯ÀÀÆ÷Òì²½¶ÁÈ¡·þÎñÆ÷ÉÏXMLÄÚÈݵļ¼Êõ¡£ÏÖÔڵļ¼Êõ·²ÊǸúXML³¶ÉϹØϵ£¬ÔÙ¼ÓÉϸö¸ÅÄî×ö»Ï×Ó£¬¾ÍÏñ½ð×°ÁËÒ»Ñù£¬×§µÃ²»ÐС£ÃÅÍâ µÄÈË¿´µÃºÜÊÇÈÈÄÖ£¬ÃÅÀïµÄÈËÒ¡Ò¡Í·²»ÍâÈçÊÇ¡£XMLÄØ£¬¿çƽ̨µÄг±ÓïÑÔ£¿ÆäʵXML£½TXT¡£
XMLÖ»ÊÇ·ûºÏºÜ¶à¹æ·¶µÄÎı¾¡£Ëü±¾Éíʲô¶¼²»ÊÇ£¬Ö ......
xmlpost by HttpWebRequest:
protected string PostXmlToURL(string url,string data)
{
HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create(url);
hwr.Method = "POST";
Stream stream = hwr.GetRequestStream();
StreamWri ......