Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > new line when adding control to html

Thread Tools

new line when adding control to html

Marko Rangel
Posts: n/a
So I've got this html block in my .aspx page (with proper declaration

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

The .ascx file contains only this html:

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

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"


<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">

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



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read a file line by line and write each line to a file based on the5th byte scad C++ 23 05-17-2009 06:11 PM
How to read a text file line by line and remove some line kaushikshome C++ 4 09-10-2006 10:12 PM
Beginner: read $array with line breaks line by line Marek Stepanek Perl Misc 12 09-02-2006 10:27 AM
Read a file line by line with a maximum number of characters per line Hugo Java 10 10-18-2004 11:42 AM
HTML Client Control versus. HTML Server Control versus. Web Server Control Matthew Louden ASP .Net 1 10-11-2003 07:09 PM