locked
HTML tag not rendered with my Mobile Web Form RRS feed

  • Question

  • User1000268131 posted

    Sorry for my english.

    1. I'm create Mobile Web Form

     <%@ Page language="c#" Codebehind="login.aspx.cs" Inherits="mobile.MobileWebForm1" AutoEventWireup="false" contentType="text/html"%>
    <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
    <HEAD>
     <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
     <meta content="C#" name="CODE_LANGUAGE">
     <meta content="http://schemas.microsoft.com/Mobile/Page" name="vs_targetSchema">
    </HEAD>
    <body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
     <mobile:form id="frmLogin" BackColor="#E0E0E0" runat="server" Paginate="True">
      <P>
       <mobile:Label id="Label1" runat="server">Number</mobile:Label>
       <mobile:TextBox id="TextBox1" runat="server"></mobile:TextBox>
       <mobile:Label id="Label2" runat="server">PIN</mobile:Label>
       <mobile:TextBox id="TextBox2" runat="server" Password="True"></mobile:TextBox>
       <BR>
       <BR>
       <mobile:Command id="Command1" runat="server">Command</mobile:Command>
      </P>
     </mobile:form>
    </body>

    2. web.config
       <browserCaps>   
         preferredRenderingType="html32"
         preferredRenderingMime="text/html"
       </browserCaps>

    3. I'm having trouble displaying (ignored by MME) an <BR> tag on a mobile web form (use Microsoft Mobile Explorer 3.0)

    Help, me!

    Thanks.

    Saturday, July 23, 2005 5:18 AM

All replies

  • User-95607119 posted
    Use <br /> on mobile forms.
    Saturday, July 23, 2005 8:08 PM
  • User1000268131 posted
    no effect ;(
    if enter <br />&nbsp;<br /> - OK! (show one line break).
    if enter <br /><br /> - MME not show(ignored) two line break (IE - Ok)
               
    Sunday, July 24, 2005 2:02 PM
  • User-95607119 posted
    I read somewhere suggestion from MS: when dealing with line-breaks play with <br /> and non-breaking spaces. So, <br />&nbsp;<br /> has to work for you perfectly.
    Monday, July 25, 2005 2:24 AM