Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net C# ·¢ËÍ Óʼþ ºÍ ¸½¼þ ´úÂë

˵µ½·¢ËÍÓʼþ·¢ËÍ£¬ÏÈÌáÒ»ÏÂSMTP(ºÇºÇ£¬¸ßÊÖ¾ÍÌø¹ýÕâÒ»¶Î°É£¡)¡£ SMTPµÄÈ«³ÆÊÇ“Simple Mail Transfer Protocol”£¬¼´¼òµ¥Óʼþ´«ÊäЭÒé¡£ËüÊÇÒ»×éÓÃÓÚ´ÓÔ´µØÖ·µ½Ä¿µÄµØÖ·´«ÊäÓʼþµÄ¹æ·¶£¬Í¨¹ýËüÀ´¿ØÖÆÓʼþµÄÖÐת·½Ê½¡£SMTP ЭÒéÊôÓÚ TCP/IP ЭÒé´Ø£¬Ëü°ïÖúÿ̨¼ÆËã»úÔÚ·¢ËÍ»òÖÐתÐżþʱÕÒµ½ÏÂÒ»¸öÄ¿µÄµØ¡£SMTP ·þÎñÆ÷¾ÍÊÇ×ñÑ­ SMTP ЭÒéµÄ·¢ËÍÓʼþ·þÎñÆ÷¡£
         ÔÙ¼òµ¥½éÉÜÒ»ÏÂÃû³Æ¿Õ¼ä£¨NameSpace£©System.Web.MailÀà¿âÀïËùÌṩµÄÓʼþ·¢Ë͵ĶÔÏó¡¢ÊôÐԺͷ½·¨
         (1)ËüÓÐÈý¸öÀࣺSmtpMail¡¢MailMessageºÍMailAttachment¡£ÕâÈý¸ö¶ÔÏó±¾ÎĵÄʾÀý³ÌÐò´úÂëÖж¼Ó¦Óõ½ÁË£¡
         1. MailMessage ,ÌṩÊôÐԺͷ½·¨À´´´½¨Ò»¸öÓʼþÏûÏ¢¶ÔÏó¡£(Provides properties and methods for constructing an e-mail message.)
         2. MailAttachments – ÌṩÊôÐԺͷ½·¨À´´´½¨Ò»¸öÓʼþ¸½¼þ¶ÔÏó¡£(Provides properties and methods for constructing an e-mail attachment.)
         3. SmtpMail – ÌṩÊôÐԺͷ½·¨Í¨¹ýʹÓÃwindows 2000 CDOSYS µÄÏûÏ¢×é¼þµÄÁªºÏÊý¾Ý¶ÔÏóÀ´·¢ËÍÓʼþÏûÏ¢£©¡£(Provides properties and methods for sending messages using the Collaboration Data Objects for Windows 2000 (CDOSYS) message component)
        (2)¸÷¸öÀàµÄÊôÐÔ¡£
        1.Ïȼòµ¥½éÉÜSmtpMailµÄÊôÐÔ£º SmtpServer -- SMTPµÄµØÖ·¡£
        2.Ö÷ÒªÀ´½éÉÜMailMessage¶ÔÏóµÄÊôÐÔ
         from -- ·¢ËÍÓʼþµÄµØÖ·
         To -- ½ÓÊÜÓʼþµÄµØÖ·
         Subject -- ÓʼþµÄ±êÌâ
         Priority -- ÓʼþµÄÓÅÏȼ¶£¨ÓÐЧֵΪHigh,Low,Normal£©
         Attachments -- ·µ»ØÒ»¸ö¼¯ºÏ£¬´ú±í¸½¼þ
         Bcc -- ÃÜË͵


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄASP.NET +ACCESS µÇ¼

Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......

C#: ÌáÈ¡ÍøÒ³ÖеÄjavascript´úÂë

public static void Main()
        {
            WebRequest req = WebRequest.Create("http://blog.csdn.net/xiaofengsheng");
            try
  & ......

How postback works in ASP.NET

Introduction
In this article, we will take a closer look at how ASP.NET pages post back to themselves, and how to customize this feature in our web applications.
function __doPostBack(eventTarget, eventArgument)
One of the most important features of the ASP.NET environment is the ability to decla ......

C#ʵÏÖÏóASPÖеÄÊý¾ÝÌí¼Ó

ÎÒÏëÓÃC#ʵÏÖÏóASPÖеÄ
rs.addnew
rs( "a ")   =   "aaa "
rs( "b ")   =   123
rs.update
ÕâÑù·½·¨Ìí¼ÓÊý¾Ý£¬ÎÊһϣ¬ÒªÔõô×ö°¡£¿
¾ßÌå·½·¨ÈçÏÂ
              string   dbPath   =   "../App_data/We ......

ÔÚASP.NETÖУ¬ÈçºÎʵÏÖµã»÷°´Å¥µ¯³öд°¿Ú.ˢи¸´°¿Ú

 a.aspx
//ÏÔʾij¸ö¶©µ¥µÄÏêϸÐÅÏ¢£¬Í¨¹ýÒ»¸öģ̬¶Ô»°¿ò£¬¶øÇÒÆÁÄ»»á±äÑÕÉ«
        function ShowOrderDetails(orderId) {
            var url = "AddMenu.aspx?ID=" + orderId;
     &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ