当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > 用C#读取sina天气预报到wap页面(一)(原创)

ASP.NET
为T-SQL添加intellisense功能
SQL Server 2005安装过程中出现错误的解决办法
SQL Server 2005 RTM 安装错误 :The SQL Server System Configuration Checker cannot be executed due to
有关于JSON的一些资料
不能忽略c#中的using和as操作符的用处
JavaScript系列之―同步还是异步?
获取远程网页的内容之一(downmoon原创)
获取远程网页的内容之二(downmoon原创)
ASP.Net中防止刷新自动触发事件的解决方案
asp.net下用js实现鼠标移至小图,自动显示相应大图
Asp.Net 和 AJAX.Net 的区别
提交页面的定位--scrollIntoView的用法
利用AJAX与数据岛实现无刷新绑定
asp.net下判断用户什么时候离开,以什么方式离开
DataSet 添加数据集、行、列、主键和外键等操作示例
读写xml所有节点个人小结 和 读取xml节点的数据总结
收藏的asp.net文件上传类源码
asp.net下GDI+的一些常用应用(水印,文字,圆角处理)技巧
一个可以让.net程序在非WIN平台上运行的软件Mono
使用ASP.NET 2.0 CSS 控件适配器生成CSS友好的HTML输出

ASP.NET 中的 用C#读取sina天气预报到wap页面(一)(原创)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 219 ::
收藏到网摘: n/a

页面代码:<%@ 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>