Unnecessary Line Break Issue

S

Sumantra

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top