I have one label control and Text property set by combining two two fields. i need tab space between the fields instead giving one space. becuase with one space format look silly. so i want equal spacing in the text here is my code. but its not give the
tab space.
HTML doesn't have the notion of tabs. Browsers will ignore them or convert them to a single space. You'd have to use multiple non-breaking spaces - - but that doesn't have the same semantic meaning as a tab, in that it doesn't hand;e alignment. There's
no real way to achieve what youw ant with single controls; probably the simplest solution would be to return these as separate columns and use a grid, since the grid is designed for columns.
shahid.majee...
Member
624 Points
567 Posts
how to add tab spacing in asp.net controls
Mar 29, 2012 09:33 PM|LINK
hi
I have one label control and Text property set by combining two two fields. i need tab space between the fields instead giving one space. becuase with one space format look silly. so i want equal spacing in the text here is my code. but its not give the tab space.
Shahid Majeed
Email: shahid.majeed@gmail.com
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: how to add tab spacing in asp.net controls
Mar 30, 2012 08:35 AM|LINK
HTML doesn't have the notion of tabs. Browsers will ignore them or convert them to a single space. You'd have to use multiple non-breaking spaces - - but that doesn't have the same semantic meaning as a tab, in that it doesn't hand;e alignment. There's no real way to achieve what youw ant with single controls; probably the simplest solution would be to return these as separate columns and use a grid, since the grid is designed for columns.