HTML Îļþ´«ÊäÒ³Ãæ
<!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">
<head>
<meta NAME="Copyright" CONTENT="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>É豸¹ÜÀí</title>
<link href="images/basic.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" >
function myjudge()
{
var keystr = "update.tar.gz"
var str = document.getElementById("updatefile").value;
var len = str.length;
var thesubstring = str.substring(len-13,len);
if(thesubstring == keystr)
{
Update.action="cgi-bin/update.cgi";
Update.submit();
}
else
{
alert("Éý¼¶ÎļþÎÞЧ!");
return false;
}
}
</script>
</head>
<body id="sysdevmng">
<table height="80" border="0"><tr><td></td></tr></table>
<table width="30%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr><td height="30" align="left" valign="middle">
<h3 class="STYLE5" ><font color="#000000">µ¼ÈëÉý¼¶Îļþ</font></h3>
</td></tr>
<tr><td>
<form action="cgi-bin/update.cgi" method="post" name="Update" enctype="multipart/form-data">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
<tr>
<td width="91%"><div align="left">
<input type="file" class="btn" name="file" id="updatefile"/>
<font color=red></font></div>
<div id="newPreview"></div></td>
<td></td>
</tr>
<tr>
<td>
<br>
<div align="left">
<input type="reset" name="Reset" class="b
Ïà¹ØÎĵµ£º
1. ³¬Á´½ÓµÄͼƬȥµô±ß¿òµÄ·½·¨£º
ÔÚ Óï¾äÀï¼ÓÉÏ border=0
È磺<img border=0
src="sadf.jpg">
2.Êó±ê·ÅÉÏȥͼƬ±äÉ«µÄ·½·¨£º
Óõ½Á˱êÇ©µÄʼþ¹¦ÄÜ£¬µ÷Ó÷½·¨ÊÇ function="this.src='asdf.jpg'"
鍣 ......
IISÅäÖÃ.htmlµÄÓ³ÉäÎÊÌ⣬ÆäʵÕâ¸öÎÊÌâ¿ÉÒÔ˵ÊÇHttpHandlerFactoryµÄÔÚweb.configÖÐ×¢²áµÄÎÊÌâ
ÎÊÌâÃèÊö£º
Ò»Ì×ÍøÕ¾³ÌÐòʹÓÃURLÖØÐ´£¬ÅäÖÃÁËISAPIÓ³Éä.html ¶¯×÷È«²¿£¬¼ì²éÎļþÊÇ·ñ´æÔÚ ²»´ò¹´ ÈçÏÂͼ
ÎÊÌ⣺ ²»¶ÔIISÅäÖÃ.htmlµÄÓ³É䣬IISÕ¾µãĿ¼ÏÂ.htmlÒ³Ãæ¶¼ÄÜÏÔʾ¡£µ±ÅäÖÃÁË.htmlµÄÓ³Éä ......
´úÂëÈçÏ£º
Function RemoveHTML(strText)
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
RemoveHTML = RegEx.Replace(strText, "")
RemoveHTML = replace(RemoveHTML," "," ")
End Function
ÕâÊÇ×î»ù±¾µÄÕýÔòÌæ»»£¬ÓÐÄ³Ð©ÌØÊâ×Ö·û»¹Ã»¹ýÂË£¬¿É×ÔÐÐÌí¼Ó ......
´Ë´¦Ç¶ÈëµÄflashÀïÃæµÄͼƬÊÇ¿ÉÒÔËæÊ±·¢Éú¸Ä±äµÄͼƬ£¨¶¯Ì¬Í¼Æ¬£©
×¢ÒâÀ¶É«×ÖÌåµÄµØ·½£¬ÕâЩµØ·½¶¼ÒªÍ³Ò»
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="${ctx}/ui/Login/AC_RunActiveContent.js"
language="javascript"></script& ......
1. web.config
<connectionStrings>
<add name ="myconn" connectionString="Data Source=who\SQLEXPRESS; Initial Catalog=dbname;Integrated Security=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
2.
string htmlPath = "D:\\htmlFiles";
......