tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 124

Professional in C# and Visual Basic Part 124. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 25 File I O and Streams Listing 25-29 Sending mail from a Web page VB Dim message As _ New webmaster@ webmaster@ Sending Mail with _ This is a sample email which demonstrates sending email using Dim smtp As New localhost message C message new webmaster@ webmaster@ Sending Mail with This is a sample email which demonstrates sending email using smtp new localhost message In this sample you first create a MailMessage object which is the class that contains the actual message you want to send. The MailMessage class requires the To and From address be provided to its constructor and you can either provide the parameters as strings or you can use the MailAddressCollection class to provide multiple recipients e-mail addresses. After you create the Message you use the SmtpClient class to actually send the message to your local SMTP server. The SmtpClient class allows you to specify the SMTP Server from which you want to relay your e-mail. Summary In this chapter you looked at some of the other classes in the .NET Framework. You looked at managing the local file system by using classes in the namespace such as DirectoryInfo and the FileInfo and you learned how to enumerate the local file system and manipulate both directory and file properties and directory and file Access Control Lists. Additionally the chapter discussed the rich functionality .NET provides for working with paths. The chapter also covered how the .NET Framework enables you to read and write data to a multitude of data locations including the local file system network file system and even system memory through a common Stream architecture. The Framework provides you .

TỪ KHÓA LIÊN QUAN