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

ASP.NET Tutorial 6: Outputting Data to the Webpage

This article explains the three primary methods of outputting data onto a webpage from the code-behind class: Labels, Literals, and the Response.Write() method. This article is also useful for gaining a basic understanding of how .NET handles communication between elements on the ASPX webpage and the C# code-behind class.

Continue Reading this Article >>

(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 >>

ASP.NET Tutorial 5: Conditionals 2 ( switch constructs )

This article explains the use of switch constructs. Switch constructs are a conditional, like if/else constructs discussed in the previous ASP.NET Tutorial 4. In all honesty, you won’t use switch blocks nearly as often as you will use if… but there are times when they just plain make more sense.

A switch block compares a single variable or value to any number of other values, and when it finds a match, it executes some code. What really makes switch blocks handy is that after it finds a match, it will keep checking conditions until you tell it to stop (by using the break keyword).

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 >>
RSS Twitter LinkedIn Facebook
Doing neato things with JavaScript, please wait...