Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

tempÎļþ¼ÐȨÏÞ¶ÔASPÍøÕ¾ÒÔ¼°ASP.NETÍøÕ¾µÄÓ°Ïì

 ×öÍøÕ¾Óë¸ã°²È«Ò»°ã¶¼Àë²»¿ªÈ¨ÏÞ·ÖÅä,ÍøվȨÏÞÒ»°ã¶¼Ö±½ÓÉèÖÃÕ¾µãËùÔÚµÄÐéÄâĿ¼µÄ,Ò²¾ÍÊÇÔÚÐéÄâĿ¼µÄ°²È«ÀïÌí¼ÓinternetÀ´±öÕË»§,²¢·ÖÅä³ýÍêÈ«¿ØÖÆÍâµÄËùÓÐȨÏÞ;Èç¹ûÊÇ.NET,»¹±ØÐë¸øASP.NETÓû§ÅäÖóýÍêÈ«¿ØÖÆÒÔÍâµÄȨÏÞ! 
Ò»°ãÇé¿öÏÂ,ÕâÑù¾ÍOKÁË,·þÎñÆ÷ÉϵÄÒ»°ãÍøÕ¾¶¼¿ÉÒÔÕý³£ÔËÐÐÁË!µ«ÏÖÔÚÎÒ·¢ÏÖ:C\WINDOWS\TEMPÁÙʱÎļþ¼ÐµÄȨÏÞ·ÖÅä¶ÔÍøÕ¾ÄÜ·ñ³É¹¦ÔËÐÐÒ²ÓÐÓ°Ïì! 
µ«Ç°¼¸ÌìÓöµ½2¸öÇé¿ö: 
Ò»¡¢ASPÕ¾µã: 
×ö°æ¾ÛÍøÕ¾,µ¾²Ý¸øµÄÔ´´úÂë,ÎÒ¹ýÀ´²âÊÔʱºò,Ôõô¶¼Á¬²»ÉÏÊý¾Ý¿â;ÎÒÒÔΪÊý¾Ý¿âÁ¬½Ó´úÂë³ö´í,ÓÚÊÇÒ»µãÒ»µãµÄ²âÊÔ,½á¹ûÔõô¶¼²»ÐÐ,ÔËÐе½×îºó,»¹ÊÇû·¢ÏÖ´íÎó!´úÂëÈçÏÂ: 
<% 
db="inc/xxx.asp" 
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"") 
On Error Resume Next 
Set conn = Server.CreateObject("ADODB.Connection") 
Conn.ConnectionTimeout = 10 
Conn.Open connstr 
If Conn.Errors.Count <> 0 Then 
Conn.Close 
Set Conn = Nothing 
Response.Write "<font size=2 color=red>Êý¾Ý¿âÁ¬½Ó³ö´í£¬Çë¼ì²éÁ¬½Ó×Ö´®¡£</font>" 
Response.End 
End If 
%> 
¿ÉÊÇ×ÜÊÇÏÔʾ:Êý¾Ý¿âÁ¬½Ó³ö´í,Çë¼ì²éÁ¬½Ó×Ö´®.¶øÎÒ³¢ÊÔÁË2¸ö¶àСʱ,û·¢ÏÖÈκδíÎó!ºóÀ´ÎÒÏëÆðÒÔÇ°ÒòΪtempµÄȨÏÞû¸øµ¼Öºǫ́½ø²»È¥µÄ,ÓÚÊÇÎÒ³¢ÊÔ¸øeveryoneµÄ¶ÁдÊôÐÔ!ÓÚÊÇÒ»ÏÂ×ÓOKÁË~ 
¶þ¡¢ASP.NETÕ¾µã: 
×ö±ÏÒµÉè¼Æ,ͻȻ³öÏÖÈçϵĴíÎó: 
CS0016:δÄÜдÈëÊä³öÎļþ"c:\WINDOWS\xxxĿ¼\xxx.dll"--"¾Ü¾ø·ÃÎÊ." 
ÒýÓà
Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\80940643\9a3d5a0a\App_Web_index.aspx.cdcab7d2.p7p862zk.dll' -- '¾Ü¾ø·ÃÎÊ¡£ ' 
ºÜÓôÃƵļì²é´íÎó,¼ì²éweb.configÎļþ,¸Ð¾õ²»»á³öÎÊÌâ°¡!ºóÀ´ÔÚCSDNÉÏ¿´µ½ÆªÎÄÕÂ,˵½â¾ö·½·¨¾ÍÊÇ:¸øWindowsĿ¼ÏµÄÁÙʱÎļþ¼ÐTempµÄ°²È«Ñ¡ÏÖмÓÈëNetWork ServiceÓû§²¢¸³ÓèÈ


Ïà¹ØÎĵµ£º

asp.netÖÐʱ¼ä¸ñʽ»¯µÄ¼¸ÖÖ·½·¨

Çмǣ¬ÇÐ¼Ç DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ"); //MM Òª´óд£¬·ñÔò»áÊÇ00,²»ÊÇÕæʵµÄÔÂ·Ý private void getDate()
{
date.Text = DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ"); //Õâ¸öËæÒâµÄ£ºyyyy-MM-dd Ò²¿ÉÒÔ
string Temp="";
switch (DateTime.Now.DayOfWeek)
{
case DayO ......

asp²Ù×÷Êý¾Ý¿âµÄui

 <!--#include file="conn.asp"-->
<!--#include file="inc/head.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" xmlns:q ......

ASP.NET(c#)³£ÓÃÀຯÊý

 
³£Óú¯ÊýϵÁÐ:
public static string Get_ClientIP() µÃµ½¿Í»§¶ËIP
public static string Get_CMac(string IP) µÃµ½¿Í»§¶Ë CMac µØÖ·
public static string RequestF(string xPName,string xPType,int xLenDef) °²È«½ÓÊÕÊý¾ÝϵÁÐ
public static string Show_Cont(string xStr) ¹ýÂËÏÔʾ×Ö´®
public static str ......

ASP.NETµÄ״̬¹ÜÀí

 
ΪʲôҪ״̬¹ÜÀí
     B/SÓëC/SÁ½Öּܹ¹µÄÓÐ×ÅÍêÈ«²»Í¬µÄÔËÐлúÖÆ¡£C/S»ù±¾ÉÏËùÓеÄÈí¼þ¹¦Äܶ¼ÔÚ¿Í»§¶Ë(Client)ÖÐʵÏÖ£¨ËùÒÔC/SÒ²³ÆΪÅÖ¿Í»§¶Ë¼Ü¹¹£©£¬·þÎñÆ÷¶Ë(Server)Ö»Ìṩ»ù´¡·þÎñ£¬×îΪµäÐ͵ÄÊÇÊý¾Ý¿â·þÎñÌṩÊý¾Ý·þÎñ¡£¶øB/S¼Ü¹¹Ö÷ÒªµÄ¹¦ÄÜÔÚ·þÎñ¶Ë(Server)ʵÏÖ£¬¿Í»§¶ËµÄä¯ÀÀÆ÷( ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ