用C#读取sina天气预报到wap页面(一)

Tags: .net
页面代码:
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %><%@ Page language="c#" Codebehind="weather.aspx.cs" Inherits="goodwap.life.weather" AutoEventWireup="false" %><mobile:form id="Form1" runat="server">
<FONT face="宋体">
<mobile:Label id="Label3" runat="server" Font-Bold="True">【生活资讯】</mobile:Label>
<mobile:Label id="Label1" runat="server" Font-Italic="True">==天气预报==</mobile:Label>
<mobile:Label id="l_date" runat="server"></mobile:Label>
<mobile:Label id="l_city" runat="server"></mobile:Label>
<mobile:Label id="l_wea" runat="server"></mobile:Label>
<mobile:Label id="l_sky" runat="server"></mobile:Label>
<mobile:Label id="l_w1" runat="server"></mobile:Label>
<mobile:Label id="l_w2" runat="server"></mobile:Label>
<mobile:Label id="l_w3" runat="server"></mobile:Label>
<mobile:Label id="Label2" runat="server">【请选择城市名】:</mobile:Label>
<mobile:SelectionList id="s_weather" runat="server">
<Item Value="深圳" Text="深圳" Selected="True"></Item>
<Item Value="广州" Text="广州"></Item>
<Item Value="上海" Text="上海"></Item>
<Item Value="北京" Text="北京"></Item>
<Item Value="天津" Text="天津"></Item>
<Item Value="武汉" Text="武汉"></Item>
<Item Value="重庆" Text="重庆"></Item>
<Item Value="成都" Text="成都"></Item>
<Item Value="南京" Text="南京"></Item>
<Item Value="香港" Text="香港"></Item>
<Item Value="澳门" Text="澳门"></Item>
</mobile:SelectionList>
<mobile:Command id="Command1" runat="server">查 询</mobile:Command>
<mobile:Link id="Link1" runat="server" NavigateUrl="../default.aspx#Goodview">首 页</mobile:Link></FONT></mobile:form>


本文链接:http://www.4byte.cn/learning/87001.html