. Net WAP force output WML

Source: Internet
Author: User
Force Output WML:
In web. config
Add the following content under <system. Web> < 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 >

If you define other attributes, you can complete the settings: < 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
ECS mascriptversion = 0.0
Ms domversion = 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"
Requiredlanguagnamevalue = ""
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"
Supportscachecontrol1_ag = "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 >

BelowCodeThis will solve the problem of simultaneous height of IE and simulator (also add the following code to the system. Web node)

< Browsercaps >
< Result Type = "System. Web. Mobile. mobilecapabilities, system. Web. Mobile, version = 1.0.5000.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" />
< Use VaR = "Http_user_agent" />
< Filter >
< Case Match = "Unknown" With = "% {Browser }" >
Preferredrenderingtype = "wml11"
Preferredrenderingmime = "text/vnd. WAP. WML"
Preferredimagemime = "image/vnd. WAP. wbmp"
Type = unknown
</ Case >
</ Filter >  
</ Browsercaps >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.