locked
Developing Wap Pages RRS feed

  • Question

  • User-168828762 posted

    hi

     Every one

        I want to develop a wap page in .net which will be accessed from modile device, i am unable to get start my code

    Can any one tell me which application template to use to develop a WAP page

    Is any other installation is required

     Thank's In advance

    Chandrakant

    Thursday, January 18, 2007 4:55 AM

All replies

  • User361543027 posted

    Hello there!

    Try to replace this statement

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    from the standard default aspx page with the statement below

     <?xml version="1.0"?>  
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> 

    the rest just keep it plain as below

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="default.aspx.vb" Inherits="xhtml_default" %>
    <html>
    <head runat="server">
        <title></title>
    </head>
    <body>

    </body>
    </html>

    Hope it helps! 

    cheers,

    Eric

    Thursday, January 18, 2007 11:39 PM
  • User-525215917 posted

    If you want to make your output to be WML 1.1 then you should add these directives to your web.config file:

    <browserCaps>
        preferredRenderingType = "wml11"
        preferredRenderingMine = "text/wnd.wap.wml"
    </browserCaps>

    It worked nice on ASP.NET 1.1 for me.  

    Saturday, January 20, 2007 9:03 PM