¹ØÓÚ ASP.NET Èý²ã¼Ü¹¹
Ò»°ã¶ÔÓÚÓùý ¶¯Èí.net´úÂëÉú³ÉÆ÷µÄÈËÀ´Ëµ£¬Ê¡Á˺öàÊÂÇé¡£ model £¨ÊµÌå²ã£©, dal£¨Êý¾Ý·ÃÎʲ㣩, bll£¨ÒµÎñÂß¼²ã£©
model ¾Í²»ÓÃ˵ÁË dalÊý¾Ý·ÃÎʲãÓеÄʱºòÒªµ÷Óô洢¹ý³Ì£¬ÒÔÇ°ºÜÉÙд£¬¾õµÃ²ÎÊýµÄµ÷ÓÃͦ·Ñ¾¢µÄ£¬´ó¼ÒÓÐʲôºÃµÄ°ì·¨ÄÜÌá¸ß´æ´¢¹ý³ÌÂ𣡣¡£¡£¡£¡£¡£¡£¡£¡£¡
Ïà¹ØÎĵµ£º
×î½üÔÚ¹úÍâµÄÍøÕ¾ÂÒ×ßһͨ£¬·¢ÏÖһЩ±È½ÏºÃµÄÎÄÕ£¬ÊÕ¼¯ÕûÀí¼ÓÓÚ×Ô¼ºµÄÀí½â£¬×÷Ϊ±Ê¼ÇÐÎʽ¼Ç¼ÏÂÀ´£¬ÈÃÒÔºó×Ô¼ºÓиö»ØÒä¡£
¡¡¡¡ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓõÄƽ̨,ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦ÓÃ.¾ø´ó¶àÊýµÄÈËÖ»ÊìϤ¸ß²ãµÄ¿ò¼ÜÈçWebFormsºÍWebS ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Xml;
using System.Text; ......
1¡¢<%=%> ÀïÃæ·ÅµÄ±äÁ¿Ãû£¬È磺
<div>
<h1>Hello World</h1>
<p>Welcome to Beginning ASP.NET 3.5 on <%=
DateTime.Now.ToString() %></p>
</div>
Êä³ö½á¹ûΪ£º
Hello World
Welcome to Beginning ASP.NET 3.5 on 2009-11-10 15:53:08
2¡¢ <%#%> ÕâÀïÊÇÊ ......
//ʵÀý»¯Ò»¸öSmtpClientsmtp.DeliveryMethod = SmtpDeliveryMethod.Network;
SmtpClient smtp = new SmtpClient();
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
//½«smtpµÄ³öÕ¾·½Ê½ÉèΪ Networksmtp.EnableSsl = false;
//smtp·þÎñÆ÷ÊÇ·ñÆôÓÃSSL¼ÓÃÜ
smtp ......