add space between two labels in a cell

Posted on 2009-12-16
Last Modified: 2012-05-08
I have an asp table with a cell and in that are two fields supplied from a dataset. How do I put a space between the two labels. if I put a character inbetween the two it appears but not just a space alone.

<asp:Label ID="PPTProductIDLabel1" runat="server" Text='<%# Eval("PBTBrand") %>' />

**** text will appear here but not a single space *******

<asp:Label ID="PMDLTModelLabel2" runat="server" Text='<%# Bind("PMDLTModel") %>' />


Open in new window

Question by:Simon Cripps
    LVL 11

    Accepted Solution

    Try this:

    <asp:Label ID="PPTProductIDLabel1" runat="server" Text='<%# Eval("PBTBrand") %>' />
    <asp:Label ID="PMDLTModelLabel2" runat="server" Text='<%# Bind("PMDLTModel") %>' />

    Open in new window


    Author Comment

    by:Simon Cripps
    just graduated from the school for the gifted. Oops sorry for such an easy question, but thanks for responding anyway

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now