Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerSTOP ASKING THE SAME QUESTION OVER AND OVER. Pin
leckey1-Oct-08 3:51
leckey1-Oct-08 3:51 
Questionwhat is the Difference between asynchronous and synchronous function? Pin
Tridip Bhattacharjee1-Oct-08 0:05
professionalTridip Bhattacharjee1-Oct-08 0:05 
AnswerRe: what is the Difference between asynchronous and synchronous function? Pin
DaveyM691-Oct-08 0:19
professionalDaveyM691-Oct-08 0:19 
AnswerRe: what is the Difference between asynchronous and synchronous function? Pin
Brij1-Oct-08 1:39
mentorBrij1-Oct-08 1:39 
GeneralRe: what is the Difference between asynchronous and synchronous function? Pin
nelsonpaixao1-Oct-08 12:28
nelsonpaixao1-Oct-08 12:28 
QuestionWrite DataTable To Fixed Width Text File Pin
MumbleB30-Sep-08 23:15
MumbleB30-Sep-08 23:15 
AnswerRe: Write DataTable To Fixed Width Text File Pin
Ashfield1-Oct-08 0:22
Ashfield1-Oct-08 0:22 
AnswerRe: Write DataTable To Fixed Width Text File Pin
MumbleB1-Oct-08 20:35
MumbleB1-Oct-08 20:35 
I have managed to resolve this. See below.

StreamWriter sfw = new StreamWriter(@"W:\CTS Product\Mobile_Email_Updates\mob_email_" + DateTime.Today.ToString("ddMMyyyyhhmm") + ".txt", false);
DataTable dt = m_dtMobEmail;

//Write all records in the DB
foreach (DataRow dr in dt.Rows)
{
    //Search for all Records with value 0
    if (dr["Exported"].ToString() == "0")
    {
        sfw.WriteLine(dr["HolderRef"].ToString() + dr["DateConf"].ToString() + dr["MobileNum"].ToString().PadRight(20) +
            dr["EmailAdd"].ToString().PadRight(80) + dr["Comms"].ToString() + dr["Confirmed"].ToString() + dr["Via"].ToString() +
            dr["DateConf"].ToString());
    }

}
sfw.Close();


Excellence is doing ordinary things extraordinarily well.

QuestionConfiguration - List of key/values without using custom section Pin
BillyGoatGruff30-Sep-08 22:58
BillyGoatGruff30-Sep-08 22:58 
AnswerRe: Configuration - List of key/values without using custom section Pin
Mycroft Holmes30-Sep-08 23:15
professionalMycroft Holmes30-Sep-08 23:15 
GeneralRe: Configuration - List of key/values without using custom section Pin
BillyGoatGruff1-Oct-08 0:28
BillyGoatGruff1-Oct-08 0:28 
GeneralRe: Configuration - List of key/values without using custom section Pin
BillyGoatGruff1-Oct-08 0:31
BillyGoatGruff1-Oct-08 0:31 
AnswerRe: Configuration - List of key/values without using custom section Pin
#realJSOP1-Oct-08 0:45
mve#realJSOP1-Oct-08 0:45 
AnswerRe: Configuration - List of key/values without using custom section Pin
BillyGoatGruff1-Oct-08 4:23
BillyGoatGruff1-Oct-08 4:23 
Questionsample project [modified] Pin
aspnet_2230-Sep-08 22:55
aspnet_2230-Sep-08 22:55 
AnswerRe: sample project Pin
Mycroft Holmes30-Sep-08 23:11
professionalMycroft Holmes30-Sep-08 23:11 
AnswerRe: sample project Pin
MumbleB30-Sep-08 23:18
MumbleB30-Sep-08 23:18 
GeneralRe: sample project Pin
aspnet_221-Oct-08 10:29
aspnet_221-Oct-08 10:29 
AnswerRe: sample project Pin
Ashfield1-Oct-08 0:14
Ashfield1-Oct-08 0:14 
AnswerRe: sample project Pin
leckey1-Oct-08 3:50
leckey1-Oct-08 3:50 
AnswerRe: sample project Pin
nelsonpaixao1-Oct-08 12:32
nelsonpaixao1-Oct-08 12:32 
QuestionProblem while encrypting sessionState Pin
shehezada30-Sep-08 22:51
shehezada30-Sep-08 22:51 
AnswerRe: Problem while encrypting sessionState Pin
Pete O'Hanlon1-Oct-08 1:20
mvePete O'Hanlon1-Oct-08 1:20 
Questionwhat is java's Logger.getRootLogger() in log4net? Pin
buchstaben30-Sep-08 21:00
buchstaben30-Sep-08 21:00 
Questionreposted: attach an excel fiel to an email Pin
michael_jhons30-Sep-08 20:59
michael_jhons30-Sep-08 20:59 

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.