游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1806|回复: 0

用.net开发移动wap程序wxh zt

[复制链接]

1367

主题

1993

帖子

2118

积分

金牌会员

Rank: 6Rank: 6

积分
2118
发表于 2005-7-2 20:21:00 | 显示全部楼层 |阅读模式
我用了microsoft自身的例子:
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<%@ Page language="c#" Codebehind="MobileWebForm1.aspx.cs" Inherits="MobileWebApplication.MobileWebForm1" AutoEventWireup="false" %>
<HEAD>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="C#">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/Mobile/Page">
</HEAD>
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:Form runat="server" Wrapping="NoWrap" Paginate="true" ID="Form1">
<mobileist id=&quotrimes" runat="server"></mobile:List>
</mobile:Form>
</body>
然后在页面的Page_Load事件里加入:
if (!IsPostBack)
{
// Find all primes between 1 and 500, using a sieve and
// ignoring even numbers greater than 2.

Primes.Items.Add(new MobileListItem("2"));

bool[] isCounted = new bool[501];
int i = 3;
while (i <= 500)
{
if (!isCounted)
{
Primes.Items.Add(new MobileListItem(i.ToString()));
for (int multiple = i * 3; multiple <= 500; multiple += i * 2)
{
isCounted[multiple] = true;
}
}

i += 2;
}
}
最后用openwave622调试程序,为什么在我点击下一页时,总提示error:malformed server response错误。
而在ie和mme3上调试都正确。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-26 07:01

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表