1¡£Éî²ã´ÎÀ´ËµÕâ²»ÊÇasp.net µÄÎÊÌ⣬¶øÊÇhtml form µÄsubmit °´Å¥¾ÍÊÇÈçºÎÉè¼Æ¡£
µ±ÄãµÄ¹â±ê½¹µã½øÈëij¸ö±íµ¥ÔªËصÄʱºò£¬»á¼¤»î¸Ã±íµ¥µÄµÚÒ»¸ö£¨
Á÷²¼¾Ö˳´Ó×óµ½ÓÒ£¬´ÓÉÏÖÁÏ£©
type=submit µÄ°´Å¥£¨¼ÙÈçÓУ©£¬µÈ´ýÏìÓ¦»Ø³µÊ¼þ£¬²¢Ìá½»¸Ãform
Äã¿ÉÒÔ²âÊÔһϴúÂë
<form action="">
<input type ="text" />
<input type ="submit" value ="submit" />
</form>
<form action="">
<input type ="text" />
<input type ="button" value ="submit"/>
</form>
2.ÔÚasp.net 2.0 ÖÐbutton ĬÈϳÊÏÖΪ<input type=submit>
´Ëʱ²»Òª¶îÍâ½Å±¾Ìá½»form£¬submit °´Å¥¾ÍÊÇÉè¼ÆÓÃÀ´Ìá½»form
¶øÔÚ1¡£xÖгÊÏÖΪ<input type =button onclick =_doPostBack()/>
´ËÆÕͨbutton²»¾ß±¸submit µÄÉÏÊöĬÈÏÐÐΪ¡£
3¡£½ûÓôËĬÈÏÐÐΪÓз¨¶þ
1.ÉèÖÃformÔªËصÄdefaultButtonΪÄãÏ£ÍûÏìÓ¦»Ø³µµÄÕæÕý°´Å¥ÈçÏ¡£
<form id ="form1" runat="server" defaultbutton="Button1">
×¢Òâ defaultButton = < <TargetButtonID>> Òò´ËÕâ¶Ô·ûºÏ¿Ø¼þ»ã×ܱÈÈçÄ£°åµÄbutton¿ÉÄÜÎÞЧ¡£
2 ÐÞ¸ ......
Dim FilePath,FileName
Set ObjFileStream = Server.CreateObject("ADODB.Stream")
ObjFileStream.Type = 1
ObjFileStream.Mode = 3
ObjFileStream.open
ObjFileStream.LoadfromFile FilePath&"\"&FileName&".doc"
ObjFileStream.Position = 0
response.binarywrite ObjFileStream.Read ......
Adodb.StreamÊÇADOµÄStream¶ÔÏó,Ìṩ´æÈ¡¶þ½øÖÆÊý¾Ý»òÕßÎı¾Á÷,´Ó¶øʵÏÖ¶ÔÁ÷µÄ¶Á¡¢Ð´ºÍ¹ÜÀíµÈ²Ù×÷.
ÓÐÏÂÁз½·¨£º
Cancel ·½·¨
ʹÓ÷½·¨ÈçÏÂ
Object.Cancel
˵Ã÷£ºÈ¡ÏûÖ´ÐйÒÆðµÄÒì²½ Execute »ò Open ·½·¨µÄµ÷Óá£
Close ·½·¨
ʹÓ÷½·¨ÈçÏÂ
Object.Close
£º¹Ø±Õ¶ÔÏñ
CopyTo ·½·¨
ʹÓ÷½·¨ÈçÏÂ
Object.CopyTo(destStream,[CharNumber])
˵Ã÷£º½«¶ÔÏñµÄÊý¾Ý¸´ÖÆ£¬destStreamÖ¸ÏòÒª¸´ÖƵĶÔÏñ£¬CharNumberΪ¿ÉÑ¡²ÎÊý£¬Ö¸Òª¸´ÖƵÄ×Ö½ÚÊý£¬²»Ñ¡ÎªÈ«²¿¸´ÖÆ¡£
Flush
·½·¨
ʹÓ÷½·¨ÈçÏÂ
Object.Flush
˵Ã÷£º
LoadfromFile ·½·¨
ʹÓ÷½·¨ÈçÏÂ
Object.LoadfromFile(FileName)
˵Ã÷:½«FileNameÖ¸¶¨µÄÎļþ×°Èë¶ÔÏñÖÐ,²ÎÊýFileNameΪָ¶ ......
×î½üдվÄÚËÑË÷£¬ËùÒÔÑо¿ÁËÒ»ÏÂËã·¨£¬¸ÃËã·¨µÄÔÀíÈçͼÏÔʾ¡£
ÒÔÏÂÊÇÒ»¸öÓÃaspдµÄ¼òµ¥µÄ·Ö´Ê³ÌÐòÖ÷ÒªµÄ´úÂ룬´Ê¿âÎÒÒѾÓÃaccess½¨Á¢ºÃÁË¡£
Èç¹ûҪעÖØЧÂÊ£¬MarLenµÄÑ¡È¡ºÜÊÇÖØÒª£¬·ñÔòЧÂÊ»áÊ®·ÖµÍÏ£¬ÕâÀïMarLenÎÒÑ¡È¡µÄÊÇ5¡£
dim faword : faword = ""
do while (len(fword) > 0)
tword = left(fword,5)
'response.write "tword--->" & tword & "<br />"
tlen = len(tword)
do while (tlen > 0)
fw = left(tword,tlen)
'response.write "fw--->" & fw & "<br />"
sql = "select fword from dict where fword='" & fw & "'"
set rsfff = connf.execute(sql)
if not rsfff.eof or tlen=1 then
faword = faword & fw & ","
'response.write fw & "<br />"
exit do
end if
tlen = tlen - 1
loop
'response.write "tlen--->" & tlen & "<br />"
fword = mid(fword,tlen+1)
'response.write "fword--->" & fword & "<br />"
loop
connf.close
dim querywords : querywords = split(faword,",")
que ......
ʹÓÃDreamweaver²âÊÔÁ¬½Ó³É¹¦£¬µ«ÊÇIISÀïÃæÔËÐÐÈ´×ÜÊÇ´íÎó°Ù³ö£¬¿´ÁËÏÂÃæÕâƪ²©ÎÄÎÊÌâ²ÅµÃÒÔ½â¾ö¡¢¡¢¡¢
Ò»°ãÇé¿öÏÂasp¿ÉÒÔÕý³£ÔËÐÐ,µ«Ö»ÒªÁ¬½ÓÊý¾Ý¿â¾ÍÌáʾ,Microsoft JET Database Engine ´íÎó
'80004005',ÎҵĵçÄÔÒòΪÓÃÅú´¦ÀíÇåÀíÎļþ,ËùÒÔ²»ÄÜÔËÐÐÁË£¬ Ö»
1.²é¿´Êý¾Ý¿âÁ¬½ÓÓï¾äûÓз¢ÏÖ´íÎó£»
2.²é¿´Îļþ¼ÐµÄȨÏÞÒѾȫ²¿¸øÁËeveryone£»
3.´ò¿ªÊý¾Ý¿âµÄͬʱ£¬ÏµÍ³»áÔÚÁÙʱÎļþ¼Ð %SystemRoot%/temp/ Ï´´½¨ÁÙʱÎļþ£¬¶ø %
SystemRoot%/temp/ µÄȨÏÞ²»¹»
½â¾ö£º%SystemRoot%/temp/ µÄȨÏÞ¼ÓÉÏ(IUSER_µçÄÔÃûµÄ¶Áд)
2¡¢Èç¹ûÒ»°ãδָ¶¨µÄ´íÎ󣬻¹Óиö°ì·¨£¬ÏÈ
ÆäʵֻҪºÜ¼òµ¥µÄ¼¸²½¡££º
¿ªÊ¼¡£¡£¡£ÔËÐС£¡£¡£regsvr32 jscript.dll
¿ªÊ¼¡£¡£¡£ÔËÐС£¡£¡£regsvr32 vbscript.dll
¿ªÊ¼¡£¡£¡£ÔËÐС£¡£¡£iisreset
Microsoft JET Database Engine (0x80004005)δָ¶¨µÄ´íÎó½â¾ö
1¡¢ÏµÍ³¿ÉÄÜûÓÐ×¢²ámsjetoledb40.dll£¬½â¾ö°ì·¨ÊÇ
µã ¿ªÊ¼--->ÔËÐУ¬ ÊäÈë regsvr32 msjetoledb40.dll£¬ »Ø³µ¼´¿É£»
2¡¢Êý¾Ý¿âËùÔÚÎļþ¼ÐȨÏÞ
´ò¿ª°ì·¨ÊÇ£º´ò¿ªÎҵĵçÄÔ£¬È»ºóµã²Ëµ¥ÉϵēÎļþ¼ÐÑ¡Ïî”--->²é¿´£¬È»ºó°Ñ“ʹÓüòµ¥ÎÄ
¼ ......
´úÂ룺
<%@ LANGUAGE=VBScript CodePage=65001%>
<%
private function decodeBase64(base64)
dim DM, EL
Set DM = CreateObject("Microsoft.XMLDOM")
Set EL = DM.createElement("tmp")
EL.DataType = "bin.base64"
EL.Text = base64
decodeBase64 = EL.NodeTypedValue
end function
dim data
data=decodeBase64(request.Form("pic_data"))
set stm=Server.CreateObject("ADODB.Stream")
'stm.Mode=adSaveCreateOverWrite 'adModeReadWrite
stm.type=1
stm.open
stm.Write(data)
stm.SaveToFile Server.MapPath("./") & "/" & request.Form("desc") & ".jpg",2
stm.Close
set stm=nothing
response.write "<img src='" & request.Form("desc") & ".jpg" & "'/>"
response.write "desc:" & request.Form("desc")
response.end
%>
»ªÀöµÄ·Ö¸îÏßÒÔÏÂΪǰ̨²Ù×÷ÉãÏñÍ·ÅÄÕÕµÄhtmlÒ³ÃæÔ´´úÂë
--------------------------------------------------------------------- ......
×ܼǼÊý:617; ×ÜÒ³Êý:103; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] 2
[3] [4] [5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ