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¶ÔÇëÇó´¦ÀíµÄ¹ý³Ì£º
µ±ÇëÇóÒ»¸ö*.aspxÎļþµÄʱºò£¬Õâ¸öÇëÇó»á±»inetinfo.exe½ø³Ì½Ø»ñ£¬ËüÅжÏÎļþµÄºó׺£¨aspx£©Ö®ºó£¬½«Õâ¸öÇëÇóת½»¸øASPNET_ISAPI.dll£¬ASPNET_ISAPI.dll»áͨ¹ýhttp¹ÜµÀ£¨Http PipeLine£©½«ÇëÇó·¢Ë͸øASPNET_WP.exe½ø³Ì£¬ÔÚASPNET_WP.exe½ø³ÌÖÐͨ¹ýHttpRuntimeÀ´´¦ÀíÕâ¸öÇëÇ󣬴¦ÀíÍê±Ï½«½á¹û·µ» ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
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 ......
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 ......