求教VS2008开发WAP VS2008里开发WAP的模版已经装了 求一个开发实例(包含如何连接数据库,显示数据,控件的运用)分不多 求大大们指教下 ORZ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <% Response.ContentType ="text/vnd.wap.wml"%>< xml version="1.0" encoding="gb2312" ><!DOCTYPE wml PUBLIC "-//OPENWAVE.COM//DTD WML 1.3//EN" "http://www.openwave.com/dtd/wml13.dtd"><wml><card title="Wap-Asp例子"><p align="center"><img src="test.png" alt=""/></p><p> <%Response.Write("welcome")%><br/><a href="http:// wap.uni-wise.com " title="确定">返回上级</a><br/></p><do type="options" label="回首页"><go href="http://wap.uni-wise.com"/></do></card></wml>1.3.2. Asp.Net<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Test_Wap.WebForm1" ContentType="text/vnd.wap.wml"%>< xml version="1.0" encoding="gb2312" ><!DOCTYPE wml PUBLIC "-//OPENWAVE.COM//DTD WML 1.3//EN" "http://www.openwave.com/dtd/wml13.dtd"><wml><card title="<%=name%>"><p align="center" mode="nowrap"><%Display();%></p> <do type="options" label="回首页"><go href="http://wap.uni-wise.com"/></do></card></wml>1.3.3. WebForm1.aspx.cs文件using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;namespace Test_Wap{/// <summary>/// WebForm1 的摘要说明。/// </summary>public class WebForm1 : System.Web.UI.Page{protected string name="Wap-Asp.Net例子";private void Page_Load(object sender, System.EventArgs e){// 在此处放置用户代码以初始化页面}protected void Display(){Response.Write("Welcome");}#region Web 窗体设计器生成的代码override protected void OnInit(EventArgs e){//// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。//InitializeComponent();base.OnInit(e);}/// <summary>/// 设计器支持所需的方法 - 不要使用代码编辑器修改/// 此方法的内容。/// </summary>private void InitializeComponent(){ this.Load += new System.EventHandler(this.Page_Load);}#endregion}}Wap上的业务,图铃下载类占了大部分,而且这两种业务的收入也占中国联通和中国移动Wap总收入80%还多 <mobile:Label ID ="lblname" Runat="server" BreakAfter="True"><%#Eval("name") %></mobile:Label>谢谢2L 但是我不是用XML做的(不熟=。=、) 如果以<mobile:....></mobile:...>形式开发 应该怎么做 ds与ds.Tables[0]有什么区别? ### 捕捉控件问题 ### 有3个关于主题的问题要问 数据库写入问题 什么控件可以选择文件夹路径? 请问这是什么错误,该如何解决? 帮看一段,用户验证的代码 gridview分页时,如何只有一页也显示页码 如何取得WebpartZone内控件的数目 请帮我看看这个异常怎么解决? 如何对两个数字组成的字符串进行相减操作 Asp.net MVC 2.0 缺点
< xml version="1.0" encoding="gb2312" >
<!DOCTYPE wml PUBLIC "-//OPENWAVE.COM//DTD WML 1.3//EN" "http://www.openwave.com/dtd/wml13.dtd">
<wml>
<card title="Wap-Asp例子">
<p align="center"><img src="test.png" alt=""/></p>
<p>
<%
Response.Write("welcome")
%>
<br/>
<a href="http:// wap.uni-wise.com " title="确定">返回上级</a><br/>
</p>
<do type="options" label="回首页">
<go href="http://wap.uni-wise.com"/>
</do>
</card>
</wml>1.3.2. Asp.Net<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Test_Wap.WebForm1" ContentType="text/vnd.wap.wml"%>
< xml version="1.0" encoding="gb2312" >
<!DOCTYPE wml PUBLIC "-//OPENWAVE.COM//DTD WML 1.3//EN" "http://www.openwave.com/dtd/wml13.dtd">
<wml>
<card title="<%=name%>">
<p align="center" mode="nowrap">
<%
Display();
%>
</p>
<do type="options" label="回首页">
<go href="http://wap.uni-wise.com"/>
</do>
</card>
</wml>1.3.3. WebForm1.aspx.cs文件using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace Test_Wap
{
/// <summary>
/// WebForm1 的摘要说明。
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected string name="Wap-Asp.Net例子";
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
}
protected void Display()
{
Response.Write("Welcome");
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
Wap上的业务,图铃下载类占了大部分,而且这两种业务的收入也占中国联通和中国移动Wap总收入80%还多