Asp.net mvcÓëspring.netÕûºÏ
»ù±¾½á¹¹£º
µÚÒ»²½×¼±¸ÊµÌåÀࣺ
[Serializable]
public class Person
{
/// <summary>
/// 񅧏
/// </summary>
public int Id { get; set; }
/// <summary>
/// ÐÕÃû
/// </summary>
public string Name { get; set; }
/// <summary>
/// ÐÔ±ð
/// </summary>
public string Sex { get; set; }
/// <summary>
/// ÄêÁä
/// </summary>
public int Age { get; set; }
/// <summary>
/// °®ºÃ
/// </summary>
public string Like { get; set; }
}
µÚ¶þ²½£º×¼±¸²âÊÔÒµÎñÀà
public class PersonManager
{
private List<Person> list = new List<Person>();
/// <summary>
/// ³õʼ»¯
/// </summary>
public void Init()
{
Ïà¹ØÎĵµ£º
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±ÕÊ ......
Ò»¡¢ÈÏʶWeb.configÎļþ
Web.config ÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ý.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄWeb.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖã ......
asp.netºÍajax䲶»ñÒì³£´¦Àí»úÖÆ
ÕâÀïµÄÒì³£´¦ÀíÖ÷ÒªÊÇÖ¸¿ª·¢ÈËÔ±ÔÚÒµÎñ´úÂëÖÐ䲶»ñµÄÒì³£¡£Î´²¶»ñÒì³£´¦ÀíµÄÄ¿µÄ£º
1£ºÔÚÓ¦ÓóÌÐòÓò¼¶±ð¶ÔÒì³£ÀàÐͽøÐд¦Àí£»
2£ºÔÚ´¦ÀíµÄ»ù´¡ÉÏ£¬¿ÉÒÔ½«´íÎóÐÅÏ¢¼Ç¼ÈÕÖ¾£»
3£ºÒÔÓѺõķ½Ê½Ìáʾ×îÖÕÓà ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
¡¡¡¡Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õ ......