Click here to Skip to main content
15,897,519 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: String format problem Pin
ayeleteric19-Nov-06 1:14
ayeleteric19-Nov-06 1:14 
AnswerRe: String format problem Pin
cheeken2u19-Nov-06 1:23
cheeken2u19-Nov-06 1:23 
QuestionWrite text file problem Pin
cheeken2u18-Nov-06 23:54
cheeken2u18-Nov-06 23:54 
AnswerRe: Write text file problem Pin
coolestCoder19-Nov-06 0:14
coolestCoder19-Nov-06 0:14 
AnswerRe: Write text file problem Pin
iamrashida8319-Nov-06 0:50
iamrashida8319-Nov-06 0:50 
GeneralRe: Write text file problem Pin
Colin Angus Mackay19-Nov-06 1:24
Colin Angus Mackay19-Nov-06 1:24 
GeneralRe: Write text file problem [modified] Pin
cheeken2u19-Nov-06 2:53
cheeken2u19-Nov-06 2:53 
GeneralRe: Write text file problem Pin
Justin.Jones19-Nov-06 17:54
Justin.Jones19-Nov-06 17:54 
String.PadLeft() also works.
C#
<br />
stream.WriteLine("{0}\t{1}\t{2}",EmployeeNumber.PadLeft(20),FName.PadLeft(20),LName.PadLeft(20));<br />

Assuming that you want tabs delimiting the columns, and each column to be 20 characters wide. A gotcha is that if any of these strings are more than 20 characters (or whatever length you specify) your value will be that length. PadLeft does not truncate, you'll have to do that yourself.

J-man

QuestionProblem in migration from vs.net 2003 to vs.net 2005 Pin
Thampi18-Nov-06 6:09
Thampi18-Nov-06 6:09 
AnswerRe: Problem in migration from vs.net 2003 to vs.net 2005 Pin
WillemM18-Nov-06 7:58
WillemM18-Nov-06 7:58 
QuestionHow to dynamic bind Listbox DataSource? Pin
Old Gun18-Nov-06 3:54
Old Gun18-Nov-06 3:54 
QuestionRe: How to dynamic bind Listbox DataSource? Pin
just3ala218-Nov-06 19:54
just3ala218-Nov-06 19:54 
AnswerRe: How to dynamic bind Listbox DataSource? Pin
Waseem_Kanafani18-Nov-06 22:25
Waseem_Kanafani18-Nov-06 22:25 
GeneralRe: How to dynamic bind Listbox DataSource? Pin
Old Gun19-Nov-06 17:28
Old Gun19-Nov-06 17:28 
Questionhow can i call out values from .aspc Pin
suju3118-Nov-06 1:42
suju3118-Nov-06 1:42 
QuestionRe: how can i call out values from .aspc Pin
just3ala218-Nov-06 19:56
just3ala218-Nov-06 19:56 
Questioncreating png/images from pdf file Pin
Samir NIGAM17-Nov-06 23:47
Samir NIGAM17-Nov-06 23:47 
Questionnavigating to the respective resources while clicking on the image present in the template column Pin
yuvachandra17-Nov-06 23:42
yuvachandra17-Nov-06 23:42 
QuestionHTML page inside tablecell.. Pin
KORCARI17-Nov-06 23:30
KORCARI17-Nov-06 23:30 
AnswerRe: HTML page inside tablecell.. Pin
Guffa18-Nov-06 1:35
Guffa18-Nov-06 1:35 
AnswerRe: HTML page inside tablecell.. Pin
iamrashida8319-Nov-06 1:14
iamrashida8319-Nov-06 1:14 
QuestionError sending mails Pin
abulhassan_shock17-Nov-06 22:42
abulhassan_shock17-Nov-06 22:42 
AnswerRe: Error sending mails Pin
coolestCoder18-Nov-06 22:34
coolestCoder18-Nov-06 22:34 
Questionjavascript........... Pin
hai2muru17-Nov-06 20:46
hai2muru17-Nov-06 20:46 
AnswerRe: javascript........... Pin
Guffa18-Nov-06 1:33
Guffa18-Nov-06 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.