---------------------------------------------------常用的代码段锦集
<add name="HeartWsDB" connectionString="Data Source=SKYBOX-DEEBD184;Initial Catalog=HeartWS;Integrated Security=True" providerName="System.Data.SqlClient"/>
-----------------------------------------------------------------
<add key ="DBConnectionString" value ="provider=Microsoft.jet.oledb.4.0;data source=F:\MyChatRoom\HeartDB.mdb"/>
-----------------------------------------------------------------文件类型
text/html,text/xml,
text/javascript, text/css,
text/plain,application/xhtml+xml,
application/x-javascript,application/javascript,
text/xhtml
___________________________________________________
ContentType="application/vnd.ms-excel";
application/octet-stream.
application/x-cpio.image/vnd.djvu.
application/x-troff-man.
application/x-troff-me.
application/vnd.mif.audio/mpeg.
application/x-troff-ms.
application/vnd.ms-powerpoint.
application/x-troff.
application/x-koan.application/x-sv4cpio.
application/x-sv4crc.
application/x-texinfo.image/vnd.wap.wbmp.
application/vnd.wap.wbxml.text/vnd.wap.wml.
application/vnd.wap.wmlc.text/vnd.wap.wmlscript.
application/vnd.wap.wmlscriptc.
application/vnd.
application/x-json
_________________________________html背景音乐。目前html5已经有新的表示形式
<bgsound src ="ge/古灵精怪.wma" loop =-1 enableviewstate = true volume =100 runat =server />
-------------------------------------------------------------------------
<script language =javascript >
<!-- Begin
self.moveTo(0,0)
self.resizeTo (screen.availWidth ,screen.availHeight )
//End -->
</script><!--最大化窗口-->
new RegExp(’`|~|!|@|#|\\$|%|\\^|\&|\\*|\\(|\\)|-|_|=|\\+|\\[|\\{|\\]|\\}|;|:|\’|"|\\\\|\\||,|<|\\.|>|/|\\?|。|,|《|》|、|?|;|‘|’|:|“|”|【|】|『|』|—|)|(|×|…|¥|!|~|·’,’gi’);
待续。。。