Friday, April 30, 2010

Microsoft ASP.NET: Taking AJAX to the Next Level

Hear how ASP.NET AJAX 4.0 makes building pure client-side AJAX Web applications even easier, and watch us build an entire data-driven ASP.NET AJAX application from start to finish by taking advantage of only JavaScript, HTML pages, and Windows Communication Foundation (WCF) services. Also learn about new ASP.NET AJAX features including the DataView control, declarative templates, live client-side data binding, WCF, and REST integration.
 >> Go Diego Go >>

Thursday, April 29, 2010

SMTP Standards

Saturday, April 24, 2010

Tracking messages using the message-id headeer

I am looking for ways to track email messages using some sort of heading which should be reported in each smtp-log entry. Below is a possible method I plan on experimenting with.
// The Message-ID email header field is treated somewhat specially by the
// Chilkat email component.
// Many SMTP servers will consider emails as duplicates if the Message-ID is identical,
// even if the other parts (subject, body, etc.) are different.  These SMTP servers
// may silently drop duplicates.
// The Chilkat mailman's SendEmail method automatically replaces the Message-ID header
// field in the outgoing email with a unique value.  This behavior can be turned off
// by setting the MailMan.AutoGenMessageId property = false.
// Your program may set a custom Message-ID by calling the Email.AddHeaderField method.

private void custom_message_id()
{
    // Create an instance of the mailman for the purpose of unlocking.
    Chilkat.MailMan mailman = new Chilkat.MailMan();
    mailman.UnlockComponent("Anything for 30-day trial");

    // Turn off the auto-generate message-id feature.
    mailman.AutoGenMessageId = false;

    // Create a new email object...
    Chilkat.Email email = new Chilkat.Email();
    email.Subject = "This is a test";
    email.Body = "This is the mail body";
    email.AddTo("Chilkat Support", "support@chilkatsoft.com");
    email.From = "Chilkat Sales ";

    // Set our own Message-ID
    // The AddHeaderField method will replace a header field if it already exists.
    email.AddHeaderField("Message-ID", "4387ty6wer7g8745e8rtg");

    // Send the email.
    mailman.SmtpHost = "smtp.comcast.net";

    bool success = mailman.SendEmail(email);
    if (!success)
    {
        MessageBox.Show(mailman.LastErrorText);
    }
    else
    {
        MessageBox.Show("Mail Sent!");
    }

}

Kudos to http://www.example-code.com/csharp/message-id-header.asp

Thursday, April 22, 2010

Design Patterns

Design Patterns: Elements of Reusable Object-Oriented Software (ISBN 0-201-63361-2) is a software engineering book describing recurring solutions to common problems in software design. The book's authors are Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides with a foreword by Grady Booch. They are often referred to as the Gang of Four, or GoF[1]. The book is divided into two parts, with the first two chapters exploring the capabilities and pitfalls of object-oriented programming, and the remaining chapters describing 23 classic software design patterns. The book includes examples in C++ and Smalltalk. It won a Jolt productivity award, and Software Development productivity award in 1994.[2]

More...

Wednesday, April 21, 2010

Friday, April 16, 2010

Refresh All Views in Database with T-SQL


To refresh all view definitions in SQLServer, see this article.

"Why - o why will I ever need this," you might say. 

You will know when the time is right.