ÈçºÎ´ò¿ª±ðÈ˵ÄASP.netÏîÄ¿
[תÔØ]ÈçºÎ´ò¿ª±ðÈ˵ÄASP.netÏîÄ¿
ÈçºÎ´ò¿ª±ðÈ˵ÄASP.netÏîÄ¿2006-2-24 21:51:00
£¨1£©½«ÏîÄ¿Îļþ¼Ð¿½±´µ½Äã»úÆ÷µÄwwwrootĿ¼
£¨2£©ÔÚIIS½¨Á¢Ò»¸öÃû³ÆΪWebApplicationµÄÐéÄâĿ¼£¬Ö÷Ŀ¼É趨Ϊ C:\Inetpub\wwwroot
(3)ÓüÇʱ¾´ò¿ªÀ©Õ¹ÃûΪ.webinfoµÄÎļþ £¬°ÑÀïÃæµÄweb urlpath¸ÄÕýΪ
<VisualStudioUNCWeb>
<Web URLPath = "http://localhost/WebApplication1/WebApplication.csproj" />
</VisualStudioUNCWeb>
×öÁËÕâÈý²½Öè¾Í¿ÉÒÔ´ò¿ª´ÓÍøÉÏÏÂÔصÄasp.netÔ´´úÂëÁË
http://www.cnblogs.com/anytao/archive/2006/05/16/401298.html
Ïà¹ØÎĵµ£º
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
StartClientCaching();
......
Ö÷Ìå¼Ü¹¹
¡¡¡¡¸÷ƵµÀ·Ö±ðλÓÚ²»Í¬µÄWeb Project(¾ßÓжÀÁ¢µÄ¶þ¼¶ÓòÃû)£¬²¢½«ËùÓеÄÒµÎñÂß¼ÒÔ¼°Êý¾Ý·ÃÎʹ¦ÄÜ·â×°³ÉClass Library£¬ËùÓÐƵµÀ¹²ÓÃÕâ¸öClass Library¡£
¡¡¡¡ÏÂÃæÏêϸ½éÉÜʵÏÖ·½·¨¡£
¡¡¡¡¼ÙÉèÍøÕ¾ÓÐÈý¸öƵµÀ£¬ÐÂÎÅ¡¢ÂÛ̳ÒÔ¼°²©¿Í£¬¶ÔÓ¦µÄ¶þ¼¶ÓòÃûΪ"news"¡¢"forum"¡¢"blog"¡£³ ......
Ò»£®Code Behind¼ò½é
¡¡¡¡Code Behind¾ÍÊÇËùνµÄ´úÂë·ÖÀ룬×Ô´ÓMicrosoft¹«Ë¾ÍƳöÁËASP.NETÒÔºó£¬Code
Behind¾ÍÊÇÒ»¸öÈÈÃŵĻ°Ìâ¡£ÔÚÒ»°ãµÄASP.NETÎļþÖУ¬Code
BehindÖ÷ÒªÊÇÓöþ¸öÎļþÀ´´´½¨Ò»¸öASP.NETµÄÒ³Ã棬ÆäÖÐÒ»¸öÊÇÉè¼ÆÎļþ£¬Ò»°ãÒÔ.aspx»òÕß.ascx×öΪÀ©Õ¹Ãû£¬¶øÁíÍâÒ»¸öÊdzÌÐò´úÂëÎÄ
¼þ£¬Ò»°ãÒÔ.vb»òÕß.cs×öΪ ......
Ò»¡¢Ò³Êä³ö»º´æ
1.ÉèÖà ASP.NET Ò³»º´æµÄÁ½ÖÖ·½Ê½
1.1 ÒÔÉùÃ÷·½Ê½ÉèÖà ASP.NET Ò³µÄ»º´æ
ÒÔÉùÃ÷·½Ê½ÉèÖà ASP.NET Ò³µÄ»º´æµÄ·½·¨ÊÇÔÚÒ³ÖÐʹÓà @ OutputCache Ö¸ÁËüµÄ³£ÓÃÊôÐÔÈçÏ£º
³ÌÐò´úÂë
<%@ OutputCache Duration="" VaryByParam="" VaryByControl="" VaryByHeader="" VaryByCustom="" CacheProfi ......
c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖÐ ......