Later Today: ASP.NET Tutorial 2: Introduction to C#

(C#) Sending an Email with an Attachment (via Form)

This article explains how to send an email that includes an attachment from a web form. This is particularly useful if you need to create a web form that allows users to upload their own file attachments. The examples in this article assume that you already have a form with a FileUpload element in it, named “fuAttachment”. This particular method is especially useful since it does not require you to save any files to the server before sending the email. The posted data is instead handled directly.

You should already by familiar with sending emails from ASP.NET before reading this article.

Continue Reading this Article >>

(C#) Sending an Email (Plain-Text & HTML)

This article covers the various methods of sending an email using C#, either in plain text or HTML.

Continue Reading this Article >>

(C#) DateTimes: Finding the last day of a month

Since we know that all months have at least one day, setting an existing DateTime to the first day of a month is a cinch… but finding the last day of a month is a wee bit more complicated since months tend to have a variable number of days from year to year.

Fortunately, there is a relatively simple (if roundabout) way to calculate the last day in a month.

Continue Reading this Article >>
RSS Twitter LinkedIn Facebook
Doing neato things with JavaScript, please wait...