asp.net µ÷ÊÔ ÎÞ·¨ÏÔʾ¸ÃÍøÒ³
ÔÚÓÃVS2008µ÷ÊÔÍøÕ¾µÄʱºò£¬Í»È»Ò³Ãæ²»ÄÜÕý³£ÏÔʾÁË£¬IEÏÔʾ“ÎÞ·¨ÏÔʾ¸ÃÍøÒ³”¡£
Ö¢×´Ò»£º
¡¡¡¡IEµØÖ·À¸ÀïÃæÏÔʾµÄ¶Ë¿ÚºÅºÍ×ÀÃæÈÎÎñÀ¸ÓÒϽǓASP.NET Development Server”µÄ¶Ë¿Ú²»Ò»Ö£¬¶ø°ÑIEµØÖ·À¸µÄ¶Ë¿ÚºÅ¸Ä³É“ASP.NET Development Server”ÏÔʾµÄ¶Ë¿ÚºÅ£¬½á¹ûÍøÒ³¾ÍÄܳöÀ´¡£
½â¾ö·½·¨£ºÒýÓÃÔÎÄÈçÏ£º“ÊÇ·ñ°²×°ÁËNOD32 3.0ÒÔÉÏ°æ±¾£¿»òÕß»¹ÓÐÆäËüʲô·À»ðǽÀàÈí¼þ£¿Èç¹ûÄãÊÇ°²×°NOD32 3.0µÄ£¬°´ÕÕÒÔÏ·½·¨×ö£º ÒÀ´Î½øÈëNOD32µÄ¸ß¼¶ÉèÖã¨F5£©£¬Web·ÃÎʱ£»¤£¬HTTP£¬Webä¯ÀÀÆ÷£¬»á¿´µ½Ò»¸ö³ÌÐòÁбíÄãµÄdevenv.exeÓ¦¸ÃÔÚÆäÖУ¬Ë«»÷Ç°ÃæµÄ¹´£¨Ï൱ÓÚÈ¥µôÑ¡ÖÐ״̬£©£¬È·¶¨Í˳ö£¬Í£Ö¹Ò»ÇÐÔËÐеÄASP.NET Development Server£¬ÔÚVSÖдò¿ª²¢ÖØбàÒëÔËÐÐÄãµÄWeb³ÌÐò”¡£
¸öÈËʵ¼ù£º°Ù¶Èµ½Õâƪ²©ÎÄÎÒÊÇÐÀϲÈô¿ñ£¬ÎÒ°²×°µÄÕýÊÇESET Smart Security£¨NOD32 3.0µÄ»¥ÁªÍøÌ××°£©£¡°´ÕÕ²©Îĵķ½·¨Ò»Ò»Ö´ÐУ¬¹ûÈ»ÓÐЧ£¬µ÷ÊÔÒ»Çлָ´Õý³£¡£
Ö¢×´¶þ£º
¡¡¡¡IEµØÖ·À¸ÀïÃæÏÔʾµÄ¶Ë¿ÚºÅºÍ×ÀÃæÈÎÎñÀ¸ÓÒϽÇ"ASP.NET Development Server”µÄ¶Ë¿ÚÊÇÒ»Öµģ¬¶ø°ÑIEµØÖ·À¸µÄlocalhost¸Ä³É±¾»úIPµØÖ·127.0.0.1£¬½á¹ûÍøÒ³¾ÍÄܳöÀ´¡£
½â¾ö·½·¨£º
Ê×ÏÈ£¬¼ì²éC:\WINDOWS\system32\drivers\etcĿ¼ÏµÄHostsÎļþ£¬È·ÈÏÀïÃæÓÐ127.0.0.1 localhost ÐУ¬ËµÃ÷HostsÅäÖÃÓ¦¸ÃÊÇÕýÈ·µÄ¡£
Æä´Î£¬¿ÉÄÜÊÇXP hostsÎļþ²»Æð×÷ÓÃÁË£¬°´ÕÕÍøÉϵÄÆձ鷽·¨£¬ÐÞ¸Ä×¢²á±íµÄÄÚÈÝ£ºHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\ParametersÀïÃæµÄ"DataBasePath"ÀàÐÍ´Ó"REG_SZ"ÐÞ¸ÄΪ"REG_EXPAND_SZ"¡£¿ÉÊÇÎÒµÄ×¢²á±íÄÚÈݱ¾Éí¾ÍÊÇREG_EXPAND_SZ£¬ËùÒÔÕâÌõ¶ÔÎÒÎÞЧ¡£
ºóÀ´£¬¿´µ½Ò»¸öÈ˵IJ©ÎÄ£¬Ëû˵µ½¿ÉÄÜÊÇ£ºIPV6Å׳ö·ÇÊý×ֶ˿ÚÒì³£¡£ÔÚÈÎÎñÀ¸ÖÐË«»÷±¾µØÁ¬½Ó£¬ÔÚÊôÐÔ³£¹æÖмì²é×Ô¼º»úÆ÷ÍøÂçÅäÖ㬿´¿´°²×°ÁËIPV6ÐÒéûÓУ¬Èç¹ûÓоÍжÔصôIPV6ÐÒé¼´¿É£¬ÖØÐÂÆô¶¯µ÷ÊÔVS£¬±ã¿ÉÕý³£Ê¹Óá£Sun Developer NetworkÉÏÎÊÌâµØÖ·£ºhttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5042453¡£
Ïà¹ØÎĵµ£º
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º //´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)£¼/script£¾")
¡¡¡¡//½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
<connectionStrings>
<add name="qxConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Web/App_Data/db2.mdb;" providerName="System.Data.OleDb"/>
</connectionStrings> ......
¼ÇÈ¡¼Ç¼¼¯
create procedure getArticle
as
select * from Article_Content
GO
asp.net µ÷Ó÷½·¨
SqlConnection Conn = new SqlConnection();
Conn.ConnectionString = Data.Connstr();
Conn.Open();
......
ÒªÔÚVS2005ÖÐʹÓÃsqlhelperÀà,±ØÐë°ÑMicrosoft.ApplicationBlocks.Data.dllÒýÓõ½ÏîÄ¿ÖÐ.
1.ͨ¹ý´æ´¢¹ý³Ì²éѯµÄ·½·¨SqlHelper.ExecuteDataset(Êý¾Ý¿âÁ¬½Ó×Ö·û, ´æ´¢¹ý³Ì×Ö·û, ²ÎÊýÊý×é);
2.ͨ¹ý×Ö·û´®²éѯµÄ·½·¨SqlHelper.ExecuteDataset(Êý¾Ý¿âÁ¬½Ó×Ö·û, CommandType.Text , ²éѯ×Ö·û´®,²ÎÊýÊý×é);
3.ͨ¹ý´æ´¢¹ý³Ì²åÈëµ ......
.net À¬»ø»ØÊÕ»úÖÆ ¡¾×ªÌû¡¿
2009-02-13 17:44
netÄÚ´æ»ØÊÕÓëDispose﹐Close﹐Finalize·½·¨
Ò». netµÄ¶ÔÏóʹÓÃÒ»°ã·ÖΪÈýÖÖÇé¿ö﹕
1.´´½¨¶ÔÏó
2.ʹÓöÔÏó
3.ÊͷŶÔÏó
¶þ.´´½¨¶ÔÏó
1.´´½¨¶ÔÏóʵ¼Ê·ÖΪÁ½¸ö²½Öè﹕±äÁ¿ÀàÐÍÐû¸æºÍ³õʼ»¯¶ÔÏó
2.±äÁ¿ÀàÐÍÐû¸æ(declare),Èç﹕
FileStream ......