【待续】常用的代码段锦集

分类:.Net知识问答| 发布:camnprbubuol| 查看: | 发表时间:2010/8/27

---------------------------------------------------常用的代码段锦集

<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’);
 

待续。。。

365据说看到好文章不转的人,服务器容易宕机
原创文章如转载,请注明:转载自郑州网建-前端开发 http://camnpr.com/
本文链接:http://camnpr.com/archives/19.html

相关文章