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

asp.net ¶ÁÈ¡XmlÎļþ²¢½øÐÐDropDownListÊý¾Ý°ó¶¨

<asp:DropDownList ID="compactType" runat="server" AutoCallBack="True" Width="153px"> </asp:DropDownList>

<?xml version="1.0" encoding="utf-8" ?>
<roots>
<root>
<id>1</id>
<Culture>³õÖÐÒÔÏÂ</Culture>
</root>
<root>
<id>2</id>
<Culture>³õÖÐ</Culture>
</root>
<root>
<id>3</id>
<Culture>ÖÐר</Culture>
</root>
<root>
<id>4</id>
<Culture>¸ßÖÐ</Culture>
</root>
<root>
<id>5</id>
<Culture>´óר</Culture>
</root>
<root>
<id>6</id>
<Culture>±¾¿Æ</Culture>
</root>
</roots>

/// <summary>
/// ¶ÁÈ¡xmlÎļþ,ÓÃÊý¾ÝÌî³äDropDownList,½øÐаó¶¨
/// </summary>
/// <param name="path">xmlÎļþ·¾¶</param>
/// <param name="dp">Òª½øÐа󶨵ÄDropDownListÃû³Æ</param>
/// <param name="id">DropDownListÒªÏÔʾµÄÎı¾(xmlÎļþµÄÒ»¸ö½Úµã)</param>
/// <param name="val">DropDownListÒªÏÔʾµÄÖµ(xmlÎļþµÄÒ»¸ö½Úµã)</param>
public void ReadXml(string path,DropDownList dp,string id,string val)
{
DataSet ds = new DataSet();
ds.ReadXml(path);
dp.DataSource = ds;
dp.DataTextField = id ;
dp.DataValueField = val;
dp.DataBind();
}

SecurityFactory sf = new SecurityFactory();
//xmlÎļþ·¾¶
string path2 = Server.MapPath("./xml/XMLFile2.xml");
sf.ReadXml(path2, this.compactType, "id", "val");


Ïà¹ØÎĵµ£º

[ת]Android¶ÁдXML£¨ÖУ©——SAX


 Õª×Ô--http://www.moandroid.com/?p=821
Android¶ÁдXML£¨ÖУ©——SAX
By: º£ÊÐò×Â¥ | In: Android¿ª·¢
22 ¾Å 2009
ÔÚAndroid¶ÁдXML£¨ÉÏ£©——package˵Ã÷ÖУ¬Ïêϸ½éÉÜÁËʹÓà DOM·½·¨¶ÁÈ¡XMLÎĵµ£¬ÓÉÓÚʹÓÃDOM·½·¨ÐèÒª½«Õû¸öXMLÎĵµ¼ÓÔØÄÚ´æÖУ¬¶Ôϵͳ×ÊÔ´Õ¼ÓñȽ϶࣬Õâ¶ÔÄÚ´æ±È½Ï½ôÕŵ ......

Spring XMLÅäÖõÄ12¸ö¼¼ÇÉ

 
1 ÔÚActionʵÏÖÀà·½ÃæµÄ¶Ô±È£ºStruts 1ÒªÇóActionÀà¼Ì³ÐÒ»¸ö³éÏó»ùÀࣻStruts 1µÄÒ»¸ö¾ßÌåÎÊÌâÊÇʹÓóéÏóÀà±à³Ì¶ø²»Êǽӿڡ£Struts 2 ActionÀà¿ÉÒÔʵÏÖÒ»¸öAction½Ó¿Ú£¬Ò²¿ÉÒÔʵÏÖÆäËû½Ó¿Ú£¬Ê¹¿ÉÑ¡ºÍ¶¨ÖƵķþÎñ³ÉΪ¿ÉÄÜ¡£Struts 2Ìṩһ¸öActionSupport»ùÀàȥʵÏÖ³£ÓõĽӿڡ£¼´Ê¹Action½Ó¿Ú²»ÊDZØÐëʵÏֵģ¬Ö»ÓÐÒ» ......

asp.net ÖÐ EvalµÄʹÓÃ

<asp:TemplateField HeaderText="²âÊÔ">
<ItemTemplate>
<asp:LinkButton ID="test" runat="server" OnClick="test_Click" OnClientClick='<%# string.Format("return confirmDelete(\"{0} {1}\");", DoEscape((string)Eval( ......

Asp.netÖаÑcsÎļþ±àÒë³Édll

ÉÏ´ÎÎÒÃÇ˵µ½µÄ±àÒë³ÉµÄdllÎļþÓëcsÎļþÔÚͬһĿ¼ÖУ¬¶ø²»»á·Åµ½ÐéÄâĿ¼µÄbinĿ¼ÖУ¬ÈçºÎ×ö²ÅÄܹ»°Ñcs
Îļþ±àÒë³ÉdllÇÒ×Ô¶¯·Åµ½ÐéÄâĿ¼µÄbinÎļþ¼ÐÖÐÄØ£¿
¿ªÊ¼-------³ÌÐò-------Microsoft Visual Studio.NET 2003-------Visual Studio.NET¹¤¾ß£¬µã»÷ÆäÖеēVisual Studio.NET2003ÃüÁîÌáʾ”£¬¾Í»á½øÈëMic ......

ASP.NETµ¥ÖµºÍÁÐ±í¿Ø¼þµÄÊý¾Ý°ó¶¨

Ò»¡¢(µ¥Öµ°ó¶¨)ÔÚÒ³ÃæµÄºǫ́´úÂëÖж¨Ò幫ÓбäÁ¿,ÈçÏ£º
 public string gongYou = "ÉùÃ÷µÄ¹«ÓгÉÔ±";
¡¡¢ÙÈ»ºóÔÚÒ³ÃæµÄÔ´Öе÷Óã¬ÈçÏ£º
<asp:Label ID="lblMgs" runat="server" Text="<%#gongYou >"></asp:Label>
¡¡ ¢Úµ±È»×îºóÒª¼ÇµÃ°ó¶¨Êý¾Ý£º
 protected void Page_Load(object ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ