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

ASP.NET 2.0·¢Ë͵ç×ÓÓʼþÖдæÔÚµÄÎÊÌâ

  ³ö´¦£º Ì켫yesky ×÷ÕߣºÖìÏÈÖÒ±àÒë ʱ¼ä£º2006-11-15 11:26:00
ÔÚз¢ÐеÄASP.NET 2.0°æ±¾ÖУ¬Î¢Èí²»ÔÙ½¨ÒéʹÓÃSystem.Web.MailÃüÃû¿Õ¼ä¶ø´úÖ®ÒÔеÄSystem.Net.MailÃüÃû¿Õ¼ä¡£ÔÚÕâ¸öпâÖÐÒýÈëÁËÐí¶àÐÂÌØÕ÷£¬µ«ÊÇÔÚ·¢ËÍÓʼþµÄ·½Ê½·½ÃæÒ²ÏàÓ¦µØ´øÈëÁËһЩС´íÎó¡£
Ò»¡¢ ·¢ËÍÓʼþ
ÔÚÏêϸÌÖÂÛÕâЩС´íÎó֮ǰ£¬ÈÃÎÒÃÇÏÈ¿´Ò»¶ÎʾÀý´úÂë(ÎÒÃǼٶ¨ÄãÒѾ­ÔÚÎļþ¿ªÊ¼Ìí¼ÓÁË"using System.Net.Mail")£º MailMessage msg = new MailMessage();
msg.from = new MailAddress("address@domain.com"£¬ "Person's Name");
msg.To.Add(new MailAddress("destination@domain.com"£¬ "Addressee's Name");
msg.To.Add(new MailAddress("destination2@domain.com"£¬ "Addressee 2's Name");
msg.Subject = "Message Subject";
msg.Body = "Mail body content";
msg.IsBodyHtml = true;
msg.Priority = MailPriority.High;
SmtpClient c = new SmtpClient("mailserver.domain.com");
c.Send(msg); ÉÏÃæµÄ´úÂëÓëÒÔÇ°°æ±¾ÖеÄʵÏֲ̫¶à£¬½öÊÇÔÚÖ¸¶¨ÏûϢʱ×÷ÁËһЩСµÄ¸Ä¶¯¡£²»±Ø×Ô¼ºÀ´¹¹½¨Ò»¸öµØÖ·£¬ÄãÍêÈ«¿ÉÒÔÈÃϵͳΪÄã´úÀÍ¡£Èç¹ûÄãÖ¸¶¨Ò»¸öµç×ÓÓʼþµØÖ·ºÍÒ»¸öÃû×Ö£¬Ëü½«×Ô¶¯µØÔÚÏûÏ¢ÖÐÏÔʾÈçÏÂÄÚÈÝ£º "Person's Name" ÕâÕýÊÇÒ»¸öµç×ÓÓʼþµØÖ·µÄ"ÕýÈ·"¸ñʽ¡£µ±È»£¬Äã¿ÉÒÔ½øÒ»²½°Ñ¶à¸öµØÖ·Ìí¼Óµ½To£¬CCºÍBCC¼¯ºÏÖУ¬Æ䷽ʽÓëÉÏÃæÍêÈ«Ïàͬ¡£Í¨¹ýÕâÖÖ±à³Ì·½Ê½À´ÊµÏÖ·¢ËÍ´óÁ¿ÏûÏ¢Òª±È·Ö±ð·¢ËÍÿ¸öÏûÏ¢ÒªÈÝÒ׵öàÁË-Ö»ÐèÒª°Ñ¶à¸öµØÖ·Ìí¼Óµ½BCCÊôÐÔ¼´¿ÉʵÏÖÓʼþµÄȺ·¢¡£
¶þ¡¢ ´æÔÚµÄÎÊÌâ
ÏÖÔÚ£¬ÎÒÃÇÀ´·ÖÎöÒ»ÏÂÆäÖдæÔÚµÄС´íÎó¡£
ÈçÇ°ÃæËùÌá¼°£¬Õâ¸öеÄÃüÃû¿Õ¼äÖдøÓÐһЩС´íÎó¡£µÚÒ»¸öÊÇ£¬µ±Äã·¢ËÍÒ»·âµç×ÓÓʼþʱ£¬ÓʼþµÄÍ·²¿ÐÅϢȫ²¿ÊÇÒÔСд×ÖĸÐÎʽÌí¼ÓµÄ¡£È»¶ø£¬ÔÚÕë¶ÔSMTPÓʼþRFCµÄ¹æ·¶Öв¢Ã»ÓÐÖ¸¶¨ÓʼþÍ·²¿Ó¦¸ÃÔõÑù´óд£»µ«ÊÇ£¬Ðí¶àÀ¬»øÓʼþ¹ýÂ˳ÌÐòÈ´ÏÞÖÆÁËÍ·²¿Ã»ÓÐÕýÈ·´óдµÄµç×ÓÓʼþÏûÏ¢¡£
ÁíÒ»¸ö´íÎóÓëÓÅÏÈȨÉèÖÃÓйØϵ-ͨ¹ýÓÅÏÈȨÉèÖã¬Óû§¿ÉÒÔÖ¸¶¨Ò»¸öÏûÏ¢ÔÚÓʼþ¿Í»§¶ËµÄÖØÒª³Ì¶È¡£ÓÉÓÚÓʼþÍ·²¿µÄÕâÖÖ¸ñʽ»¯·½Ê½£¨È«²¿×ª»¯ÎªÐ¡Ð´£©£¬ËùÒÔ£¬ÎÒµÄÓʼþ³ÌÐò(Eudora)ÎÞ·¨Ê¶±ðÏàÓ¦µÄÓÅÏÈȨ±êÖ¾£¬Òò¶øÒ²¾Í²»»áרÃűê¼Ç³ö´ËÓʼþµÄÖØÒª³Ì¶È¡£¾¡¹ÜÕâ¿´ÉÏÈ¥ÓÐЩËöË飬µ«ÊÇת»»µ½Ð°汾µÄSystem.Web.MailÒÔºóÕâ¿´ÉÏÈ¥²¢Ã»ÓÐÃ÷ÏÔÀíÓÉ¡£
ËùÒÔ£¬ÎÒ»¹»á¼ÌÐ


Ïà¹ØÎĵµ£º

ASP.NET ×Ô¶¨Òå TreeView Web ·þÎñÆ÷¿Ø¼þµÄÍâ¹Û


      TreeView ¿Ø¼þµÄ³ÊÏÖÊÇ¿ÉÍêÈ«×Ô¶¨ÒåµÄ£¬ÕâʹµÃ¿ÉÒÔʹÓöàÖÖ¶àÑùµÄÏÔʾÑùʽ¡£
ÈôÒª×Ô¶¨Òå TreeView ¿Ø¼þµÄÍâ¹Û£¬¿ÉÒÔÖ´ÐÐÒÔϲÙ×÷£º
      ·Ö¸¶¨Ó°Ïì¿Ø¼þÏÔʾºÍ³ÊÏÖµÄ TreeView ¿Ø¼þÊôÐÔ¡£
·Ö¸¶¨Ò»¸ö ImageSet ÊôÐÔ£¬¸ÃÊôÐÔÑ¡ÔñÒ»×éÔÚÔËÐÐʱͬ¿ ......

ASP.NET ½«Êý¾Ý°ó¶¨µ½ TreeView Web ·þÎñÆ÷¿Ø¼þ


      ʹÓà ASP.NET TreeView ¿Ø¼þ¿ÉÒÔÇáËɵذ󶨵½Ö§³Ö IHierarchicalDataSource ½Ó¿ÚµÄÊý¾ÝÔ´£¬ÀýÈ磺XmlDataSource ÀàºÍ SiteMapDataSource Àà¡£´ËÍ⣬Äú»¹¿ÉÒÔÍêÈ«¿ØÖƽ«Êý¾ÝÔ´µÄÄÄЩ×Ö¶ÎÓÃÓÚ Text¡¢Value ºÍÆäËû TreeNode ÊôÐÔ¡£
 
Ò»¡¢°ó¶¨µ½ XML Îļþ
TreeView ¿Ø¼þÖ§³Öµ½ XML ......

ASP.NET AJAX ÖÐ UpdateProgress µÄ覴ü°Æä½â¾ö·½·¨


... Ç°ÑÔ
  ÔÚWebÓ¦ÓóÌÐòÖУ¬ÒýÈëAJAX£¬²»½ö¿ÉÒÔÌá¸ßÓû§ÌåÑ飨ҳÃæ¾Ö²¿Ë¢Ð£©£¬¶øÇÒ¿ÉÒÔÔÚÒ»¶¨³Ì¶ÈÉÏ£¬½µµÍWeb·þÎñÆ÷µÄ¹¤×÷¸ºÔغÍÏìӦʱ¼ä¡£
  AJAX ʹÓÃJavascript£¬ÔÚ¿Í»§¶Ë£¨ä¯ÀÀÆ÷¶Ë£©£¬Í¨¹ýHttp(s)ЭÒ飬Ïò·þÎñÆ÷¶Ë £¨Web Server£©·¢ÆðÇëÇó£»·þÎñÆ÷¸ù¾ÝÇëÇóµÄURI£¬
Íê³ÉÏàÓ¦µÄÂß¼­²Ù×÷£¬¶ûºó½«Ö´ÐÐµÄ ......

asp.net C# ÅÅÁÐ×éºÏ ·ÇµÝ¹é

using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("/*\n------Êä³ö½á¹û------------");
getSplit("ABCDEFG"); ......

asp.netÖдò¿ªExcelÉÏ´«Îļþ,¶ÁÈ¡Êý¾ÝµÄ·½·¨

 
´úÂë:
/// <summary>
    /// ´ò¿ªExcelÎļþ
    /// </summary>
    /// <param name="ExcelFileName">ÎļþÃû</param>
    private void OpenExcelFile(string ExcelFileName)
    {
  &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ