Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netµÄXMLͨÓòÙ×÷Àà

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Xml;
/// <summary>
///Xml µÄժҪ˵Ã÷
/// </summary>
public class Xml
{
    public Xml()
    {
        //
        //TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼­
        //
    }
    /// <summary>
    /// XML×ÊÔ´ÀàÐÍ
    /// </summary>
    public enum XmlType
    {
        File,
        String
    };
    #region ¶ÁÈ¡XML×ÊÔ´µ½DataSetÖÐ
    /// <summary>
    /// ¶ÁÈ¡XML×ÊÔ´µ½DataSetÖÐ
    /// </summary>
    /// <param name="source">XML×ÊÔ´£¬ÎļþΪ·¾¶£¬·ñÔòΪXML×Ö·û´®</param>
    /// <param name="xmlType">XML×ÊÔ´ÀàÐÍ</param>
    /// <returns>DataSet</returns>
    public static DataSet GetDataSet(string source, XmlType xmlType)
    {
        DataSet ds = new DataSet();
        if (xmlType == XmlType.File)
        {
            ds.ReadXml(source);
        }
        else
        {
            XmlDocument xd = new XmlDocument();
 &


Ïà¹ØÎĵµ£º

ASP.netÒ³ÃæʵÏÖMSSQLÊý¾Ý¿âµÄ´´½¨ºÍ²Ù×÷£¬ÊÇ¿â´´½¨£¡

///   <summary>  
        ///   ´´½¨Êý¾Ý¿â¡£  
        ///   </summary>
        ///   <param name="srvName">±íÊ ......

ASP.NetÖеļ¸ÖÖÎļþÏÂÔØ·½·¨

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
         ΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
& ......

XMLÈëÃż¶...

Input.xml-----------
 <?xml version="1.0" encoding="gb2312"?>
<studentList>
<student sex="man">
<name>wgy</name>
<age>23</age>
<tel>12345678</tel>
</student>
<student sex="female">
<name>lemon</name&g ......

Asp.netµ¯³ö´°¿Ú´óÈ«

 
Dim strScript As String = "<Script Language='VBScript'>" &vbCrLf
strScript &= "opener.parent.document.location.href=""" &"../Individual/UserJobs.aspx?EntityTableID=" &Request("EntityTableID") &"&ListID=" &BLL.TableType.Entity &"&OrgID=" &Request ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ