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

ASP.Net 2.0 ·¢ËÍÓʼþµÄ´úÂë

ÕâÁ½ÌìÒòΪҪ×öÒ»¸ö¿ÉÒÔÊÕ¼¯Óû§Ìá½»ÐÅÏ¢£¬È»ºó·¢ËÍÓʼþµ½Ö¸¶¨ÓÊÏäµÄÍøÒ³¡£ÔÚ asp.net 2.0 ÀïÃæ·¢ËÍÓʼþ¿ÉÒÔʹÓà System.Net.Mail ÏÂÃæµÄÀà¡£http://www.systemnetmail.com/faq/2.1.aspx Õâ¸öµØÖ·ÓÐ System.Net.Mail µÄ×÷ÕßдµÄ·Â·ðÊÇ MSDN ÀàËÆµÄ Faq£¬¿´´úÂëµÄʱºò¿ÉÒԲο¼ÒÔÏ¡£Ê²Ã´¶¼²»ËµÁË£¬ÏÂÃæÌù³öÀ´´úÂë°É£¬±Ï¾¹´úÂëÊÇ×îÖØÒªµÄ£º     
 1protected void btnSend_Click(object sender, EventArgs e)
 2        {
 3            MailMessage mailMessage = new MailMessage();
 4            string strBody;
 5
 6            mailMessage.from = new MailAddress("XX@gmail.com");
 7            mailMessage.To.Add("XXX@gmail.com");
 8            mailMessage.Subject = "Ô¶ù";
 9
10            strBody = "<h2>" + ddlMainTag.SelectedItem.Text + "</h2><br>";
11            strBody += "<h4>" + tbTag.Text + "</h4><br><hr><br>";
12            strBody += "·" + tbAdv.Text;
13
14            sendMail(mailMessage);
15        }
16
17        //SendMail
18        private void sendMail(MailMessage mail)
19        {
20            SmtpClient smtpClient = new SmtpClient();
21            smtpClient.EnableSsl = true;
2


Ïà¹ØÎĵµ£º

ʲôÊÇAsp.NetÓ¦ÓóÌÐò

ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order" virt ......

XPÏÂasp.netÓû§µÄÉèÖÃÎÊÌâ

 1.    ÔÚXPÏ£¬IIS·¢²¼asp.net³ÌÐòʱ£¬ÓÐʱ»áÓöµ½±¨´í“µ±Ç°Óû§ÎÞ·¨·ÃÎÊIISÔªÊý¾Ý¿â”»ò“ASP.NETÓû§ÎÞ·¨·ÃÎÊÖ¸¶¨Ä¿Â¼”£¬ÎÊÌâµÄ½â¾ö·½·¨ÈçÏ£º
       1.ÔÚÄãËùÐèÒª·ÃÎʵÄ×ÊԴĿ¼ÉÏÓÒ¼üÑ¡Ôñ “¹²ÏíºÍ°²È«”£¬È»ºóµã»÷“°²È«”ҳǩ¡ ......

asp.netÎļþºÍÎļþ¼ÐѹËõ

·¨Ò»£ºµ÷ÓÃwinrar
using Microsoft.Win32;
using System.Diagnostics;
protected void Button1_Click(object sender, EventArgs e)
    {
        RAR(@"E:\95413594531\GIS", "tmptest", @"E:\95413594531\");
    }
    /// ......

Ìá¸ßASP.NETÐÔÄܵķ½·¨

 
 Ò»¡¢ÐÔÄܲÎÊý£º
¡¡¡¡1¡¢ ÍÌÍÂÁ¿
¡¡¡¡2¡¢ ÏìӦʱ¼ä
¡¡¡¡3¡¢ Ö´ÐÐʱ¼ä
¡¡¡¡4¡¢ ¿ÉÉìËõÐÔ
¡¡¡¡¶þ¡¢ÐÔÄÜÒòËØ£º
¡¡¡¡1¡¢ASPXÖ´Ðл·¾³
¡¡¡¡2¡¢±àд´úÂëÂß¼­
¡¡¡¡Èý¡¢Ìá¸ßÐÔÄܵķ½·¨£º
¡¡¡¡1¡¢ ±ÜÃâ²»±ØÒªµÄ²Ù×÷.ÀýÈç:ÔÚPage_LoadÖÐʹÓÃIsPostBack;
¡¡¡¡2¡¢ ¾¡Á¿¼õÉÙʹÓ÷þÎñÆ÷¶Ë¿Ø¼þ
¡¡¡¡3¡¢ ¹Ø±Õ²»±ØÒª ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ