Unnecessary Line Break Issue

Discussion in 'ASP .Net Mobile' started by Sumantra, Aug 24, 2006.

  1. Sumantra

    Sumantra Guest

    Can you tell for the following piece of code for ASP.NET mobile application
    why everytime a <BR/> gets added before rendering the second control.
    =====================================================
    The code:
    <mobile:form id="frm1" runat="server">
    <mobile:DeviceSpecific id="Devicespecific2" Runat="server">
    <Choice Filter="isWML11">
    <HeaderTemplate>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="4" bgcolor="#FFFACC">
    <font size="2" face="Arial, Helvetica, sans-serif">
    <mobile:Link id="Link7" runat="server"
    NavigateUrl="#frmImageList">Back</mobile:Link>
    </font>
    </td>
    </tr>
    <tr>
    <td colspan="4" width="1" height="1"></td>
    </tr>
    <tr>
    <td colspan="4" bgcolor="fae796">
    <b>
    <font size="2">
    <mobile:Link id="Link9" runat="server"
    NavigateUrl="#frmLogin">Logout</mobile:Link>
    <img src="images/logout.gif" />
    </font>
    </b>
    </td>
    </tr>
    </table>
    </HeaderTemplate>
    </Choice>
    </mobile:DeviceSpecific>
    </mobile:form>
    ======================================
    The output in Openwave is like :

    <td colspan="4" bgcolor="fae796"><b><font size="2">
    <br/><p:anchor title="Link">Logout<p:go href="#__pbc2">
    <p:setvar name="mcsvt" value="_ctl2:Link1"/><p:setvar
    name="mcsva" value="frmLogin"/>
    </p:go>
    </p:anchor>

    <img src="images/logout.gif"/></font></b>
    </td>

    Can you see the unnecessary <BR> tag in the generated output. Even at the
    end of the table also it adds line break.
    Please tell me how to overcome of this line break.
    Sumantra, Aug 24, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dominik Jain
    Replies:
    9
    Views:
    8,532
    Dominik Jain
    Aug 4, 2005
  2. Steffen Beyer
    Replies:
    3
    Views:
    750
    Richard Tobin
    Nov 2, 2004
  3. Richard Clarke
    Replies:
    2
    Views:
    336
    Bob Hairgrove
    Oct 18, 2004
  4. Simon Gare

    LINE BREAK ISSUE

    Simon Gare, Mar 17, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    448
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Mar 17, 2007
  5. Replies:
    12
    Views:
    957
Loading...

Share This Page