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();
&
Ïà¹ØÎĵµ£º
Ò»¡¢ÔÀí£º
ҪʵÏÖ½ø¶ÈÌõµÄʵʱ·´Ó³£¬ºËÐĵļ¼Êõ¾ÍÊǶÔÉÏ´«µÄÊý¾Ý½øÐГ·Ö¿é”¶ÁÈ¡£¬ÔÚ¶Áȡÿ¿éÊý¾Ýʱ¼Ç¼µ±Ç°ÒÑÉÏ´«µÄ¿éÊý£¬¸ù¾Ý
·Ö¿éµÄ´óС£¬¼´¿ÉÖªµÀÒÑÉÏ´«µÄ´óС£¬¸ù¾Ý×Ü´óС£¬¼´¿ÉÖªµÀµ±Ç°ÉÏ´«µÄ½ø¶È¡£¾ßÌåµÄ¼¼Êõ»¹ÊÇÀûÓÃÒþº¬µÄHttpWorkerRequest
£¬ÓÃËüµÄGetPreloadedEn ......
Êý¾Ý²ã: Linq to sql
ÒµÎñÂß¼²ã:×Ô¼ºÊµÏÖ£¬·â×°ÒµÎñ¶ÔÏó¶ÔÊý¾Ý¿âµÄ·ÃÎÊ£¬ÎÒµÄÂß¼²ã±ÈÄãµÄ×öµÄ¹¤×÷Òª¶à£¬ÎÒ¼õÉÙÁËUI²ãµÄ´úÂëÁ¿¡£
Model²ã:ÓÃÓÚUI²ãչʾʹÓõÄModel£¬Êý¾Ý¿ÉÄÜÀ´Ô´ÓÚ¶àÕÅ±í£¬¾ßÌåÊý¾ÝÌî³äÔÚÂß¼²ãÖиºÔð
UI²ã:¸ºÔð´«µÝÊý¾Ý£¬Õ¹Ê¾Êý¾Ý
SQLµÄÖÊÁ¿ÆäʵºÍ³ÌÐòÔ±µÄˮƽÓйØ
ÕâÒ²ÊÇΪʲô΢ÈíһֱŬÁ¦Èôó ......
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µÈ¼°ÎÞºó׺ÃûµÄÎļþ¡£¶ÔÓÚÎҵȳÌÐò°®ºÃÕßÀ´ËµÊµÔÚÌ«²»·½±ãÁË£¬ËäÈ»ÓГÎı¾Ìæ»»´óʦ”µÈÈí¼þÄÜ×öÕ ......
ƽʱ×öÓÎÏ·¿ª·¢µÄʱºò£¬ºÜ´ó³Ì¶ÈÉ϶¼»á²ÉÓÃxmlÀ´×öÅäÖÃÎļþ¡£ÓÐʱºòÐèҪдºÜ¶à£¬È»ºóÓÖÐèÒªÒÀ´ÎÈ¥½âÎö¡£Èç¹ûÓÐÒ»¸ö¹¤¾ßÀ´×Ô¶¯½âÎöÿһ¸öxml£¬²¢ÇÒÌáÈ¡³ö×Ô¼ºÐèÒªµÄÊý¾Ý£¬¶àºÃѽ¡£ËùÒÔ͵Á˸öÀÁ£¬Ð´ÁËÒ»¸ö½âÎöÒ»¶¨¸ñʽµÄxmlºÍ½âÎöÀ࣬°ÑÕâ¸ö¸ñʽ¶ª¸ø²ß»®×Ô¼ºÈ¥µ÷ÕûÊý¾ÝÀ²¡£Í¬Ê±×Ô¼ºÕâ±ßÖ»ÐèÒª½ÓÊÜÏֳɵÄÀà
×¢Ò⣬ÕâÀïµÄÖ¸µÄÀ ......