[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Sumantra

8/24/2006 12:15:00 PM

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.