new line when adding control to html

Discussion in 'ASP .Net Web Controls' started by Marko Rangel, Nov 22, 2003.

  1. Marko Rangel

    Marko Rangel Guest

    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
    Marko Rangel, Nov 22, 2003
    #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. Matthew Louden
    Replies:
    1
    Views:
    6,894
    Scott M.
    Oct 11, 2003
  2. Hugo
    Replies:
    10
    Views:
    1,293
    Matt Humphrey
    Oct 18, 2004
  3. kaushikshome
    Replies:
    4
    Views:
    755
    kaushikshome
    Sep 10, 2006
  4. scad
    Replies:
    23
    Views:
    1,146
    Alf P. Steinbach
    May 17, 2009
  5. Marek Stepanek
    Replies:
    12
    Views:
    403
    Peter J. Holzer
    Sep 2, 2006
Loading...

Share This Page