locked
Generating WML RRS feed

  • Question

  • User-1912860187 posted
    Dear sirs! I'm trying to develop an ASP.NET Web Mobile Application. According to the information on this I've found out, i created a new project. After I placed some mobile-controls into my page. I've tried to open it with some WAP-emulators, which require a WML code. But ASP.NET does not generate WML. It sends to client HTML code only. This problem was there even if I try to open my page using a mobile-phone. How can I fix this problem? What is wrong? Please, help me!
    Monday, January 24, 2005 12:00 PM

All replies

  • User-95607119 posted
    As ASP.NET detects very few mobile devices you should use easy workaround. If browser comes to your web page then redirect browser to browsers page. For mobile pages directory put the following in your web.config, under <system.web> section: <browserCaps> preferredRenderingType = "wml11" preferredRenderingMime = "text/vnd.wap.wml" </browserCaps> In this case default out-put mark-up will be WML 1.1 and default MIME type is text/vnd.wap.wml. This works for most WAP devices.
    Tuesday, January 25, 2005 7:03 AM