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();
&
Ïà¹ØÎĵµ£º
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 ......
µ±ÎÒÃÇÓÃWINDOWSËÑË÷ij°üº¬Ä³ÎÄ×ÖµÄÎļþʱ£¬¿ÉÒÔÔÚ“°üº¬ÎÄ×Ö”´¦ÌîÉÏËÑË÷´Ê¡£µ«ÊÇһЩ²»³£¼ûµÄºó׺ÃûÎļþWINDOWS²»»áËÑË÷£¬È磺£¬.log¡¢.dll¡¢.js¡¢.asp¡¢.xml¡¢.xsl¡¢.hta¡¢.css¡¢.wsh¡¢.cpp¡¢.c »ò .hµÈ¼°ÎÞºó׺ÃûµÄÎļþ¡£¶ÔÓÚÎҵȳÌÐò°®ºÃÕßÀ´ËµÊµÔÚÌ«²»·½±ãÁË£¬ËäÈ»ÓГÎı¾Ìæ»»´óʦ”µÈÈí¼þÄÜ×öÕ ......
/*
* history
*
* Created on 2003-5-26
*
* 2003-06-05
* 1.Ôö¼ÓÁËLogµÄ´¦ÀíÐÅÏ¢¡£
* 2.Å׳öµÄÒì³£ÓÉÔÀ´UtilExceptionµÄ¸Ä±ä³ÉXMLException£¬ºóÕ߼̳ÐǰÕß¡£
*
* 2003-09-02 by David Yu
* 1.Ôö¼ÓÁ˸ıäÒ»¸ö ......
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 ......