Home All Groups Group Topic Archive Search About

User Control Renders on Separate Line

Author
4 Aug 2006 1:01 PM
jdp
I've created a user control that I then place in a panel.  The reason
it's in a panel is that it's part of search criteria that I hide/show
panels based on the type of search begin done.  I can place a label
next to this control in the IDE and it looks fine but when I run the
app, the label is on the line above the control.  I've tried placing
the label INSIDE the control, placing the user control inside a <div>
and allowing objects on either side and the same effect occurred.

Any help would be greatly appreciated.

Thanks.

Author
11 Aug 2006 8:25 PM
Ken Cox [Microsoft MVP]
Hi Jason,

Is the user control generating a Table that might be creating a new block?
You might try using <span> instead of <div>.

Ken
Microsoft MVP [ASP.NET]

Show quoteHide quote
"jdp" <jason.pile***@pacourts.us> wrote in message
news:1154696478.180072.240100@m79g2000cwm.googlegroups.com...
> I've created a user control that I then place in a panel.  The reason
> it's in a panel is that it's part of search criteria that I hide/show
> panels based on the type of search begin done.  I can place a label
> next to this control in the IDE and it looks fine but when I run the
> app, the label is on the line above the control.  I've tried placing
> the label INSIDE the control, placing the user control inside a <div>
> and allowing objects on either side and the same effect occurred.
>
> Any help would be greatly appreciated.
>
> Thanks.
>