20071110 vs2003 wap
http://www.yippeesoft.com

web.config
<browserCaps>
            <result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            <use var="HTTP_USER_AGENT"/>
                    preferredRenderingType = "wml11"
                    preferredRenderingMime = "text/vnd.wap.wml"
                    preferredImageMime = "image/vnd.wap.wbmp"
</browserCaps>

页面源码
  <?xml version="1.0" ?>
  <!DOCTYPE wml (View Source for full doctype…)>
- <wml>
- <head>
  <meta http-equiv="Cache-Control" content="max-age=0" />
  </head>
- <card newcontext="false" ordered="true">
- <onevent type="onenterforward">
- <refresh>
  <setvar name="TextBox1" value="" />
  </refresh>
  </onevent>
- <p align="left">
  <input name="TextBox1" type="text" emptyok="false" />
  <br />
  Label
  </p>
  </card>
  </wml>

VS2003源码
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<%@ Page language="c#" Codebehind="MobileWebForm1.aspx.cs" Inherits="MobileWebApplication2.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 id="Form1" runat="server">
  <FONT face="宋体">
   <mobile:List id="List1" runat="server">
    <DeviceSpecific>
     <Choice Filter="isWML11" Xmlns="http://schemas.microsoft.com/mobile/chtml10template"></Choice>
    </DeviceSpecific>
   </mobile:List>
   <mobile:TextBox id="TextBox1" runat="server"></mobile:TextBox>
   <mobile:Panel id="Panel1" runat="server">
    <mobile:Label id="Label1" runat="server">Label</mobile:Label>
   </mobile:Panel>
  </FONT>
 </mobile:Form>
</body>

Warning: this WML page uses a construct \’onevent\’ with type
              \’onenterforward\’ not supported by wmlbrowser

Label

Issue 9 – Installing on non-English Locales
Web Application Projects are shipped in two parts: a Visual Studio 2005 addin which adds Web Application Projects and a GDR which makes small changes to Visual Studio 2005 to allow the Web Application Projects addin to work better.

The GDR contains a check to make sure you are installing on an English locale version of Visual Studio 2005. If you are running Visual Studio 2005 in another locale the install will fail. The addin has a check to make sure the GDR is installed.

The following workaround should allow you to install an English version of Web Application Projects on your localized version of Visual Studio 2005. Please note this is not a tested scenario and is only provided for testing purposes on your localized system.

Please note you will have to have an English version of Visual Studio 2005 installed on your localized version of Windows. You can run different localized versions of Visual Studio 2005 side-by-side.

Under Tools/Options/International Settings in Visual Studio 2005, set the language to "English"
Install the Web Application Projects GDR — http://go.microsoft.com/fwlink/?LinkId=63636
Install the Web Application Projects Addin — http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx
Under Tools/Options/International Settings, set the language back to your normal language.

历史博文

标签:,
八月 15, 2008 at 5:34 下午 by yippee 1,012 次
Category: Dev
Tags: ,