
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x501F;&#x7528;&#x44;&#x61;&#x74;&#x61;&#x53;&#x65;&#x74;&#x5C06;&#x58;&#x4D;&#x4C;&#x8BFB;&#x53D6;&#x5230;&#x44;&#x72;&#x6F;&#x26;&#x23;&#x31;&#x31;&#x32;&#x3B;&#x44;&#x6F;&#x77;&#x6E;&#x4C;&#x69;&#x73;&#x74;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x38;&#x2D;&#x30;&#x36;&#x2D;&#x31;&#x30;&#x20;&#x30;&#x30;&#x3A;&#x30;&#x33;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=5">&#x57;&#x65;&#x62;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x5B9E;&#x73B0;&#x539F;&#x7406;&#x5F88;&#x7B80;&#x5355;&#xFF1A;&#x5148;&#x5C06;XML&#x4E2D;&#x7684;&#x5185;&#x5BB9;&#x586B;&#x5145;&#x5230;DataSet&#x865A;&#x62DF;&#x8868;&#x4E2D;&#xFF0C;&#x7136;&#x540E;&#x628A;Dro&#112;DownList&#x548C;&#x865A;&#x62DF;&#x8868;&#x7ED1;&#x5B9A;&#x5373;&#x53EF;&#x3002;<br/>city.xml:<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34; ?&gt;<br/>&lt;xml&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;1&#34;&gt;&#x5E7F;&#x4E1C;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;2&#34;&gt;&#x5E7F;&#x897F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;3&#34;&gt;&#x6E56;&#x5317;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;4&#34;&gt;&#x6E56;&#x5357;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;5&#34;&gt;&#x6CB3;&#x5317;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;6&#34;&gt;&#x6CB3;&#x5357;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;7&#34;&gt;&#x5C71;&#x4E1C;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;8&#34;&gt;&#x5C71;&#x897F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;9&#34;&gt;&#x65B0;&#x7586;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;10&#34;&gt;&#x6D59;&#x6C5F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;11&#34;&gt;&#x6C5F;&#x897F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;12&#34;&gt;&#x6C5F;&#x82CF;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;13&#34;&gt;&#x5B81;&#x590F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;14&#34;&gt;&#x8FBD;&#x5B81;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;15&#34;&gt;&#x9752;&#x6D77;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;16&#34;&gt;&#x9655;&#x897F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;17&#34;&gt;&#x7518;&#x8083;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;18&#34;&gt;&#x4E91;&#x5357;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;19&#34;&gt;&#x8D35;&#x5DDE;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;20&#34;&gt;&#x897F;&#x85CF;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;21&#34;&gt;&#x56DB;&#x5DDD;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;22&#34;&gt;&#x5317;&#x4EAC;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;23&#34;&gt;&#x4E0A;&#x6D77;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;24&#34;&gt;&#x5929;&#x6D25;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;25&#34;&gt;&#x53F0;&#x6E7E;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;26&#34;&gt;&#x6D77;&#x5357;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;27&#34;&gt;&#x798F;&#x5EFA;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;28&#34;&gt;&#x5409;&#x6797;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;29&#34;&gt;&#x5B89;&#x5FBD;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;30&#34;&gt;&#x91CD;&#x5E86;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;31&#34;&gt;&#x9999;&#x6E2F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;32&#34;&gt;&#x6FB3;&#x95E8;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;33&#34;&gt;&#x9ED1;&#x9F99;&#x6C5F;&lt;/city&gt;<br/>&nbsp;&nbsp;&lt;city value=&#34;34&#34;&gt;&#x5185;&#x8499;&#x53E4;&lt;/city&gt;<br/>&lt;/xml&gt;<br/>Default.aspx:<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%@ Page Language=&#34;C#&#34; AutoEventWireup=&#34;true&#34; CodeFile=&#34;Default.aspx.cs&#34; Inherits=&#34;_Default&#34; %&gt;<br/>&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt;<br/>&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; &gt;<br/>&lt;head runat=&#34;server&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;&#x501F;&#x7528;DataSet&#x5C06;XML&#x8BFB;&#x53D6;&#x5230;Dro&#112;DownList-Mzwu.Com&lt;/title&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:Dro&#112;DownList ID=&#34;Dro&#112;DownList1&#34; runat=&#34;server&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/asp:Dro&#112;DownList&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/form&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/>Default.aspx.cs:<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;using System;<br/>using System.Data;<br/>using System.Configuration;<br/>using System.Collections;<br/>using System.Web;<br/>using System.Web.Security;<br/>using System.Web.UI;<br/>using System.Web.UI.WebControls;<br/>using System.Web.UI.WebControls.WebParts;<br/>using System.Web.UI.HtmlControls;<br/>using System.Data.SqlClient;<br/>public partial class _Default : System.Web.UI.Page<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;protected void Page_Load(object sender, EventArgs e)<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DataSet ds = new DataSet();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ds.ReadXml(Server.MapPath(&#34;city.xml&#34;));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dro&#112;DownList1.DataTextField = &#34;city_text&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dro&#112;DownList1.DataValueField = &#34;value&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dro&#112;DownList1.DataSource = ds.Tables[0].DefaultView;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dro&#112;DownList1.DataBind();<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x501F;&#x7528;&#x44;&#x61;&#x74;&#x61;&#x53;&#x65;&#x74;&#x5C06;&#x58;&#x4D;&#x4C;&#x8BFB;&#x53D6;&#x5230;&#x44;&#x72;&#x6F;&#x26;&#x23;&#x31;&#x31;&#x32;&#x3B;&#x44;&#x6F;&#x77;&#x6E;&#x4C;&#x69;&#x73;&#x74;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
