Professional ASP.NET 3.5 in C# and Visual Basic Part 154

Professional in C# and Visual Basic Part 154. 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 32 Instrumentation Using the TemplatedMailWebEventProvider Another option for e-mailing Web events is to use the TemplatedMailWebEventProvider object. This works basically the same as the SimpleMailWebEventProvider but the TemplatedMailWebEvent Provider allows you to create more handsome e-mails they might get noticed more . As with the other providers you use the add element within the providers section to add this provider. This process is illustrated in Listing 32-13. Listing 32-13 Adding a TemplatedMailWebEventProvider add name TemplatedMailProvider type Version Culture neutral PublicKeyToken b03f5f7f11d50a3a template . MailTemplates from website@ to admin@ cc adminLevel2@ bcc director@ subjectPrefix Action required. buffer false detailedTemplateErrors true maxMessagesPerNotification 1 After the provider is added you also need to add a rule that uses this provider in some fashion as you do with all the other providers . You add it by referencing the TemplatedMailWebEventProvider name within the provider attribute of the add element contained in the rules section. Be sure to set up the smtp section just as you did with the SimpleMailWebEventProvider. After these items are in place the next step is to create an page. This page construction is illustrated in Listing 32-14. Listing 32-14 Creating the page VB @ Page Language VB @ Import Namespace script runat server Protected Sub Page_Load ByVal sender As Object ByVal e As Dim meni As MailEventNotificationInfo Events Discarded By Buffer _ Events Discarded Due To Message Limit _ Events In Buffer .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.