ASP.NET - space between DataBinder.Eval - Asked By Neethu on 01-Sep-12 07:23 AM

hi all,

how to give more space between TELEPHONE and MobileNo. Only one space i could give.

 <td align="left" >
            Contact :
            <%#DataBinder.Eval(Container.DataItem, "ContactPerson")%> -  <%#DataBinder.Eval(Container.DataItem, "TELEPHONE")+ "  " +DataBinder.Eval(Container.DataItem, "MobileNo")%>
           
           
           </td>


Peter Bromberg replied to Neethu on 01-Sep-12 11:48 AM
Use &nbsp;
That's the code for a non-breaking space in HTML.
Rohan Dave replied to Neethu on 01-Sep-12 02:51 PM
Try bye below code.. user &nbsp; to provide continuous space in html..


<td align="left" >
        Contact :
        <%#DataBinder.Eval(Container.DataItem, "ContactPerson")%> -  <%#DataBinder.Eval(Container.DataItem, "TELEPHONE")+ &nbsp;&nbsp;&nbsp; +DataBinder.Eval(Container.DataItem, "MobileNo")%>
       
       
       </td>