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Óû§²¢¸³ÓèÈ
Ïà¹ØÎĵµ£º
<!--#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 ͼƬÊý¾Ý¿â´æ´¢Ïê½â£¨Àý×ÓÍêÕû°æ£©
asp.net ͼƬÊý¾Ý¿â´æ´¢Ïê½â£¨Àý×ÓÍêÕû°æ£©
°´ÕÕÒÔϵijÌÐò´úÂ룬¾¹ý±¾ÈËÔÚvs2005ÉϵIJâÊÔ£¬ÐÞ¸Äʵ¼Ê¿ÉÒÔÔËÐеĴúÂëÈçÏ£º
6¸öÎļþ
ÊÇÔÚÒ»¸ö·¢²¼¸ùĿ¼ÏµÄtestÎļþ¼ÐÖвâÊÔͨ¹ýµÄ¡£
SQL½Å±¾ÈçÏ£º
CREATE TABLE [dbo].[image] (
[image_id] [bigint] IDENTITY ......
<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace ="System.Text" %>
<%@ Import Namespace="System.Data" %>
<%
for (int i = 0; i <= 10; i++)
......
Asp.net ÖÐÔÚ¿Í»§¶Ë´¥·¢·þÎñÆ÷¶Ëʼþ·ÖΪÁ½ÖÖÇé¿ö£º
Ò». WebControlsÖеÄButton ºÍHtmlControlsÖеÄTypeΪsubmitµÄHtmlInputButton
ÕâÁ½ÖÖ°´Å¥×îÖÕµ½¿Í»§¶ËµÄ±íÏÖÐÎʽΪ£º<input type="submit" value="Submit">£¬ÕâÊÇForm±íµ¥µÄÌá½»°´Å¥£¬µã»÷ÒÔºó»á×÷Ϊ²ÎÊý·¢Ë͵½·þÎñ¶Ë£¬²ÎÊýÊÇÕâÑùµÄ£º
¿Ø¼ ......