vs2008ÖÐasp.netµÄwebÓ¦ÓóÌÐò¸ÄwebÍøÕ¾
vs2008ÖÐн¨b/s½á¹¹µÄÏîÄ¿ÓÐÁ½ÖÖÀàÐÍ£¬Ò»ÖÖÊÇweb application,¼´webÓ¦ÓóÌÐò£¬ÁíÍâÒ»ÖÖÊÇwebÍøÕ¾£¬Ð½¨ÏîĿʱÈç¹ûÑ¡ÔñµÄ²»ÕýÈ·£¬ÔÚºóÐøµÄ¿ª·¢¹ý³ÌÖоͲ»¿É±ÜÃâµÄ»áÓöµ½ÒªÐÞ¸ÄÏîÄ¿ÀàÐ͵ÄÇé¿ö¡£¾¹ýÔÚÍøÉϱ¬×ßÒÔ¼°²âÊÔ£¬ÒÔÏÂÊǽâ¾öasp.netÓ¦ÓóÌÐò¸ÄÍøÕ¾ÏîÄ¿µÄ·½·¨¼°±³¾°ÖªÊ¶£º
1.vs2008µÄÏîÄ¿ÀàÐÍÊÇͨ¹ýguidÀ´È·¶¨µÄ
ÔÚ½â¾ö·½°¸ÎļþÖÐ(.sln)£¬ÓüÇʱ¾´ò¿ª¿´µÄ»°¿ÉÒÔ¿´µ½Project("ºóÃæ¸úµÄÊÇguidÖµ£¬ÍøÕ¾ÀàÏîÄ¿µÄguidºÍÓ¦ÓóÌÐòÀàÏîÄ¿µÄguidÖµÊDz»Ò»ÑùµÄ£¬ÎÒÃÇ¿ÉÒÔËæ±ãн¨Ò»¸öÍøÕ¾£¬È»ºó°Ñproject("ºóÃæµÄguidÖµ¸´ÖƳöÀ´±¸Óá£
Èç¹ûÄãµÄ½â¾ö·½°¸ÎļþÖеÄÖµÊÇProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"),ÄÇôÕâ¾ÍÊÇÒ»¸öÓ¦ÓóÌÐòÀàÐ͵ÄÏîÄ¿£¬ÍøÕ¾ÀàÏîÄ¿µÄÖµÓ¦¸ÃÊÇ£ºProject("{E24C65DC-7377-472B-9ABA-BC803B73C61A}")£¬ÎÒÃÇÒª×öµÄ¾ÍÊÇÒª°ÑÏîÄ¿ÀàÐ͸ijÉÕâ¸öÍøÕ¾µÄguidÖµ¡£
2.ÍøÕ¾ÀàÏîÄ¿±Èasp.netÓ¦ÓóÌÐòÏîÄ¿¶à³öÀ´Ò»Ð©²ÎÊýÖµ
ÍøÕ¾ÀàÏîÄ¿ÔÚ½â¾ö·½°¸ÎļþÖжà³öÀ´Ò»Ð©ÐéÄâ·¾¶ÒÔ¼°±àÒë·½ÃæµÄ²ÎÊýÐÅÏ¢£¬Ó¦ÓóÌÐòÀàÏîĿûÓÐÕâЩÄÚÈÝ£¬ËùÒÔÎÒÃÇ»¹ÊÇҪн¨Ò»¸ö¿ÕµÄÍøÕ¾ÏîÄ¿£¬½«ÒÔÏÂÄÚÈݸ´ÖƵ½ÔÀ´µÄÓ¦ÓóÌÐòÏîÄ¿µÄ²ÎÊýÏ£º
ProjectSection(WebsiteProperties) = preProject
TargetFramework = "3.5"
Debug.AspNetCompiler.VirtualPath = "/WebSite1" ----------------------->ÕâÀïÐèÒª¸Ä
Debug.AspNetCompiler.PhysicalPath = ".\XinRong_Steel_Tube\" ----------------------->ÕâÀïÐèÒª¸Ä
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\WebSite1\" ----------------------->ÕâÀïÐèÒª¸Ä
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/WebSite1" &nbs
Ïà¹ØÎĵµ£º
ËäȻ˵ASP.NETÊôÓÚ°²È«ÐԸߵĽű¾ÓïÑÔ,µ«ÊÇÒ²¾³£¿´µ½ASP.NETÍøÕ¾ÓÉÓÚ¹ýÂ˲»ÑÏÔì³É×¢Éä.ÓÉÓÚASP.NET»ù±¾ÉÏÅäºÏMMSQLÊý¾Ý¿â¼ÜÉè Èç¹ûȨÏÞ¹ý´óµÄ»°ºÜÈÝÒ×±»¹¥»÷. ÔÙÕßÔÚÍøÂçÉÏÕÒ²»µ½ºÃµÄASP.NET·À×¢Éä½Å±¾,ËùÒÔ¾Í×Ô¼ºÐ´Á˸ö. ÔÚÕâÀï¹²Ïí³öÀ´Ö¼ÔÚÈóÌÐòÔ±Ãâ³ýSQL×¢ÈëµÄÀ§ÈÅ.
ÎÒдÁËÁ½¸ö°æ±¾,VB.NETºÍC#°æ±¾·½±ã²»Í¬³ÌÐò¼äʹÓà ......
Stephen Walther
Superexpert
ÊÊÓÃÓÚ£º
Microsoft ASP.NET 2.0
Microsoft Visual Studio 2005
¼ò½é
ÔÚ Microsoft ASP.NET 2.0 Framework ÖУ¬Êý¾Ý¿â·ÃÎʵõ½Á˼«´óµÄ¼ò»¯¡£ÀûÓÃÈ«Ð嵀 SqlDataSource ¿Ø¼þ£¬ÄúÎÞÐè±àдһÐдúÂë¾Í¿ÉÒÔÑ¡Ôñ¡¢¸üС¢²åÈëºÍɾ³ýÊý¾Ý¿âÊý¾Ý¡£
Éú³É¼òµ¥µÄÓ¦ÓóÌÐòʱ£¬SqlDataSource ¿ ......
asp.netÖеÄhtml¿Ø¼þrunat=serverʱµÄÓ³Éä 1¡¢±ê×¼xhtml±êÇ©£ºhttp://blog.csdn.net/TangZhongxin/archive/2009/07/31/4398487.aspx 2¡¢¾ø´ó¶àÊý±êÇ©¶¼Ó³Éäµ½¡°System.Web.UI.HtmlControls.HtmlGenericControl¡±£¬ËüÃǵĹ²Í¬ÌØÐÔÊÇ¡°ÐÅÏ¢Ö»¶Á£¬½ö¹©ÏÔʾµÄ±ê¼Ç¡±£º
div,span,p,h1,h2,h3,h4,h5,h6,ul,li,dl,dt,dd, ......
¼ÙÉèÔÚ·þÎñÆ÷µÄ¸ùĿ¼ÏÂÓиöÃûΪDownloadµÄÎļþ¼Ð,Õâ¸öÎļþ¼Ð´æ·ÅһЩÌṩ¸øÒýÓóÌÐòÏÂÔØµÄÎļþ..
public void DownloadFile(string path, string name)
{
try
{
......
ÔÎĵØÖ·£ºhttp://www.codeproject.com/KB/aspnet/AspDotNetCache.aspx
½éÉÜ
»º´æÊÇÔÚÄÚ´æ´æ´¢Êý¾ÝµÄÒ»Ïî¼¼Êõ£¬Ò²ÊÇASP.NETÖÐÌṩµÄÖØÒªÌØÐÔÖ®Ò»¡£ÀýÈçÄã¿ÉÒÔÔÚ¸´ÔÓ²éѯµÄʱºò»º´æÊý¾Ý£¬ÕâÑùºóÀ´µÄÇëÇó¾Í²»ÐèÒª´ÓÊý¾Ý¿âÖÐÈ¡Êý¾Ý£¬¶øÊÇÖ±½Ó´Ó»º´æÖлñÈ¡¡£Í¨¹ýʹÓûº´æ¿ÉÒÔÌá¸ßÓ¦ÓóÌÐòµÄÐÔÄÜ¡£
Ö÷ÒªÓÐÁ½ÖÖÀàÐ͵Ļº´æ£º
1 ......