new line when adding control to html

M

Marko Rangel

So I've got this html block in my .aspx page (with proper declaration
import):

<td><wc1:Tabs id="Tabs" runat="server"/></td>

The .ascx file contains only this html:

<asp:panel id="pnl1" runat="server" Width="370px"><IMG height="32"
src="images\blah.gif" width="370" useMap="#Map" border="0"></asp:panel>

In theory, I should get this in my html view source of the aspx page:
<td><IMG height="32" src="images\blah.gif" width="370" useMap="#Map"
border="0"></td>

or

<td><div id="_ctl0_Tabs_pnlFeeds" style="width:368px;"><IMG height="32"
src="images\blah.gif" width="370" useMap="#Map" border="0"></div></td>

but instead I get this, and its distorting the page How can I get this all
in one line?

<td><div id="_ctl0_Tabs_pnlFeeds" style="width:368px;">
<IMG height="32" src="images\feed_on_alltabs.gif" width="370"
useMap="#tab_Map" border="0">
</div>
</td>

why does the panel add extra line spaces (the div tags)>

tia

marko
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top