首页 新闻 会员 周边 捐助

WAP 开发

0
悬赏园豆:10 [已关闭问题] 关闭于 2011-05-04 10:43

如题:如何制作一个简单的hellow worid!!!  wap网站?

本地已经安装了windows mobile form ,并在一个页面中写了如下代码。

View Code
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Wap_VS2008.Mobile_Web_Test" Codebehind="Mobile_Web_Test.aspx.cs" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<mobile:Form id="Form1" runat="server" Title="一线">
<mobile:Image ID="Img_test" Runat="server" ImageUrl="~/Images/logo.png"></mobile:Image>
<mobile:Link ID="lk_test" Runat="server" BreakAfter="False" NavigateUrl="Default.aspx">Test</mobile:Link>
<mobile:Label ID="lb_test" Runat="server" ForeColor="Red" Wrapping="Wrap">Hellow World!</mobile:Label>
</mobile:Form>
</body>
</html>

config 文件加了如下代码(网上copy 下来的):

View Code
<browserCaps>
<result type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<use var="HTTP_USER_AGENT"/>

browser
=Unknown
version
=0.0
majorversion
=0
minorversion
=0
frames
=false
tables
=false
cookies
=false
backgroundsounds
=false
vbscript
=false
javascript
=false
javaapplets
=false
activexcontrols
=false
win16
=false
win32
=false
beta
=false
ak
=false
sk
=false
aol
=false
crawler
=false
cdf
=false
gold
=false
authenticodeupdate
=false
tagwriter
=System.Web.UI.Html32TextWriter
ecmascriptversion
=0.0
msdomversion
=0.0
w3cdomversion
=0.0
platform
=Unknown
css1
=false
css2
=false
xml
=false

mobileDeviceManufacturer
= "Unknown"
mobileDeviceModel
= "Unknown"

gatewayVersion
= "None"
gatewayMajorVersion
= "0"
gatewayMinorVersion
= "0"

preferredRenderingType
= "wml11"
preferredRenderingMime
= "text/vnd.wap.wml"
preferredImageMime
= "image/vnd.wap.wbmp"

defaultScreenCharactersWidth
= "12"
defaultScreenCharactersHeight
= "6"
defaultScreenPixelsWidth
= "96"
defaultScreenPixelsHeight
= "72"
defaultCharacterWidth
= "8"
defaultCharacterHeight
= "12"
screenBitDepth
= "1"
isColor
= "false"
inputType
= "telephoneKeypad"

numberOfSoftkeys
= "0"
maximumSoftkeyLabelLength
= "5"

canInitiateVoiceCall
= "false"

canSendMail
= "true"
hasBackButton
= "true"
rendersWmlDoAcceptsInline
= "true"
rendersWmlSelectsAsMenuCards
= "true"
rendersBreaksAfterWmlAnchor
= "false"
rendersBreaksAfterWmlInput
= "false"
rendersBreakBeforeWmlSelectAndInput
= "true"
requiresAttributeColonSubstitution
= "true"
requiresPhoneNumbersAsPlainText
= "false"
requiresUrlEncodedPostfieldValues
= "false"
requiredMetaTagNameValue
= ""
rendersBreaksAfterHtmlLists
= "true"
requiresUniqueHtmlCheckboxNames
= "true"
requiresUniqueHtmlInputNames
= "true"
requiresUniqueFilePathSuffix
= "true"
supportsCss
= "false"
hidesRightAlignedMultiselectScrollbars
= "false"
canRenderAfterInputOrSelectElement
= "true"
canRenderInputAndSelectElementsTogether
= "true"
canRenderOneventAndPrevElementsTogether
= "true"
canCombineFormsInDeck
= "true"
canRenderMixedSelects
= "true"
canRenderPostBackCards
= "true"
canRenderSetvarZeroWithMultiSelectionList
= "true"
supportsImageSubmit
= "true"
supportsSelectMultiple
= "true"
requiresHtmlAdaptiveErrorReporting
= "false"
requiresContentTypeMetaTag
= "false"
requiresDBCSCharacter
= "false"
requiresOutputOptimization
= "false"
supportsAccesskeyAttribute
= "false"
supportsInputIStyle
= "false"
supportsInputMode
= "false"
supportsIModeSymbols
= "false"
supportsJPhoneSymbols
= "false"
supportsJPhoneMultiMediaAttributes
= "false"
maximumRenderedPageSize
= "2000"
requiresSpecialViewStateEncoding
= "false"
requiresNoBreakInFormatting
= "false"
requiresLeadingPageBreak
= "false"
supportsQueryStringInFormAction
= "true"
supportsCacheControlMetaTag
= "true"
supportsUncheck
= "true"
canRenderEmptySelects
= "true"
supportsRedirectWithCookie
= "true"
supportsEmptyStringInCookieValue
= "true"
cachesAllResponsesWithExpires
= "false"
requiresNoSoftkeyLabels
= "false"
defaultSubmitButtonLimit
= "1"

supportsBold
= "false"
supportsItalic
= "false"
supportsFontSize
= "false"
supportsFontName
= "false"
supportsFontColor
= "true"
supportsBodyColor
= "true"
supportsDivAlign
= "true"
supportsDivNoWrap
= "false"
supportsCharacterEntityEncoding
= "true"

isMobileDevice
="false"

</browserCaps>

请问,我该如何看到效果? 如何操作?(网上说安装wap模拟浏览器,但是我没发布,我直接是在项目中调试的)

like%'远远'%的主页 like%'远远'% | 小虾三级 | 园豆:635
提问于:2011-04-29 14:22
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册