首页 新增
网站
2007-7-15 7:58:51 创建 by 匿名用户 | 2008-1-15 0:58:24 最后修改 by soybean217@sina.com.cn 编辑标题 插入资源

表格样式

2008-1-7 20:24:53来自IP:218.20.X.X by soybean217@sina.com.cn

http://www.7wind.net/wytx/qt/16.htm

编辑以上内容 删除以上内容 追加资源

cookie domain set

2008-1-1 20:42:57来自IP:219.137.X.X by soybean217@sina.com.cn

      //公共域测试
      HttpCookie myCookie = new HttpCookie("customInfo");
      myCookie.Domain = "92zf.com";
      myCookie.Values.Add("Email", "1@1.com");
      Response.AppendCookie(myCookie);
      //私有域测试
      HttpCookie priCookie = new HttpCookie("customInfoPri");
      priCookie.Values.Add("Email", " 2@2.com");
      Response.AppendCookie(priCookie);

编辑以上内容 删除以上内容 追加资源

close

2007-7-17 10:52:30来自IP:218.20.X.X by 匿名用户

close&dispose

from   documentation:  
   
  "....  
  The   Close   method   rolls   back   any   pending   transactions.   It   then   releases   the   connection   to   the   connection   pool,   or   closes   the   connection   if   connection   pooling   is   disabled.  
   
  ....  
   
  The   Dispose   method   releases   the   unmanaged   resources   used   by   the   SqlConnection   and   optionally   releases   the   managed   resources.   The   Dispose   method   calls   Close,   and   removes   the   SqlConnection   from   the   connection   pool.  

编辑以上内容 删除以上内容 追加资源

网站

2007-7-15 7:58:51来自IP:58.63.X.X by 匿名用户

在还没有遇到性能问题前,静态化最大的作用是SEO。
对于不想被检索的内容来说,并没有必要实现静态化。
对于一定只会在一个地方或者一种唯一的样式被用到的信息来说,XML也许不是一个好主意。

编辑以上内容 删除以上内容 追加资源

<p><strong>水平条效果的CSS定义</strong></p> <p>  BORDER-B

2007-7-15 9:14:15来自IP:58.63.X.X by 匿名用户

水平条效果的CSS定义

  BORDER-BOTTOM-STYLE: dotted;

  BORDER-LEFT-STYLE: dotted;

  BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted;

  height:1px;

  width:100%;

 

 

 align:left;

  color:#86BCD4;

  Shade:no;

  水平条虚线效果定义

  border:1px dashed #86BCD4; height: 1px;

编辑以上内容 删除以上内容 追加资源

<p>Remote Registry</p> <p>server</p> <p>telnet</

2007-7-17 12:30:45来自IP:218.20.X.X by 匿名用户

Remote Registry

server

telnet

TCP/IP NetBIOS Helper

编辑以上内容 删除以上内容 追加资源

<p>SQL Server 2000中,有三个比较类似的功能:他们分别是:SCOPE_IDENTIT

2007-7-17 16:06:27来自IP:218.20.X.X by 匿名用户

SQL Server 2000中,有三个比较类似的功能:他们分别是:SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY,它们都返回插入到 IDENTITY 列中的值。

IDENT_CURRENT 返回为任何会话和任何作用域中的特定表最后生成的标识值。IDENT_CURRENT 不受作用域和会话的限制,而受限于指定的表。IDENT_CURRENT 返回为任何会话和作用域中的特定表所生成的值。
@@IDENTITY 返回为当前会话的所有作用域中的任何表最后生成的标识值。
SCOPE_IDENTITY 返回为当前会话和当前作用域中的任何表最后生成的标识值

SCOPE_IDENTITY 和 @@IDENTITY 返回在当前会话中的任何表内所生成的最后一个标识值。但是,SCOPE_IDENTITY 只返回插入到当前作用域中的值;@@IDENTITY 不受限于特定的作用域。


例如,有两个表 T1 和 T2,在 T1 上定义了一个 INSERT 触发器。当将某行插入 T1 时,触发器被激发,并在 T2 中插入一行。此例说明了两个作用域:一个是在 T1 上的插入,另一个是作为触发器的结果在 T2 上的插入。


假设 T1 和 T2 都有 IDENTITY 列,@@IDENTITY 和 SCOPE_IDENTITY 将在 T1 上的 INSERT 语句的最后返回不同的值。


@@IDENTITY 返回插入到当前会话中任何作用域内的最后一个 IDENTITY 列值,该值是插入 T2 中的值。


SCOPE_IDENTITY() 返回插入 T1 中的 IDENTITY 值,该值是发生在相同作用域中的最后一个 INSERT。如果在作用域中发生插入语句到标识列之前唤醒调用 SCOPE_IDENTITY() 函数,则该函数将返回 NULL 值。


而IDENT_CURRENT('T1') 和 IDENT_CURRENT('T2') 返回的值分别是这两个表最后自增的值。

编辑以上内容 删除以上内容 追加资源

去掉标签

2008-1-14 23:58:06来自IP:219.137.X.X by soybean217@sina.com.cn

去掉所有html标签
'TextStr 要去掉html标签的内容
Public FunCTion ClearHtml(Textstr)
 Dim Str,re
 Str=Textstr
 Set re=new RegExp
 re.IgnoreCase =True
 re.Global=True
 re.Pattern="<(.[^>]*)>"
 Str=re.Replace(Str, "")
 Set Re=Nothing
 ClearHtml=Str
 End Function
 
'asp去掉指定html标签
'html -- 要去掉html标签的内容
'filter -- 要去掉的标签 以,隔开
 Public Function DecodeFilter(html, filter)
  html=LCase(html)
  filter=split(filter,",")
  For Each i In filter
   Select Case i
    Case "script"  ' 去除所有客户端脚本javascipt,vbscript,jscript,js,vbs,event,...
     html = exeRE("(javascript|jscript|vbscript|vbs):", "#", html)
     html = exeRE("</?script[^>]*>", "", html)
     html = exeRE("on(mouse|exit|error|click|key)", "", html)
    Case "TABLE":  ' 去除表格<table><tr><td><th>
     html = exeRE("</?table[^>]*>", "", html)
     html = exeRE("</?tr[^>]*>", "", html)
     html = exeRE("</?th[^>]*>", "", html)
     html = exeRE("</?td[^>]*>", "", html)
     html = exeRE("</?tbody[^>]*>", "", html)
    Case "CLASS"  ' 去除样式类class=""
     html = exeRE("(<[^>]+) class=[^ |^>]*([^>]*>)", "$1 $2", html)
    Case "STYLE"  ' 去除样式style=""
     html = exeRE("(<[^>]+) style=""[^""]*""([^>]*>)", "$1 $2", html)
     html = exeRE("(<[^>]+) style='[^']*'([^>]*>)", "$1 $2", html)
    Case "IMG"  ' 去除样式style=""
     html = exeRE("</?img[^>]*>", "", html)
    Case "XML"  ' 去除XML<?xml>
     html = exeRE("<\\?xml[^>]*>", "", html)
    Case "NAMESPACE" ' 去除命名空间<o:p></o:p>
     html = exeRE("<\/?[a-z]+:[^>]*>", "", html)
    Case "FONT"  ' 去除字体<font></font>
     html = exeRE("</?font[^>]*>", "", html)
     html = exeRE("</?a[^>]*>", "", html)
     html = exeRE("</?span[^>]*>", "", html)
     html = exeRE("</?br[^>]*>", "", html)
    Case "MARQUEE"  ' 去除字幕<marquee></marquee>
     html = exeRE("</?marquee[^>]*>", "", html)
    Case "OBJECT"  ' 去除对象<object><param><embed></object>
     html = exeRE("</?object[^>]*>", "", html)
     html = exeRE("</?param[^>]*>", "", html)
     'html = exeRE("</?embed[^>]*>", "", html)
    Case "EMBED"
       html =  exeRE("</?embed[^>]*>", "", html)
    Case "DIV"  ' 去除对象<object><param><embed></object>
     html = exeRE("</?div([^>])*>", "$1", html)
     html = exeRE("</?p([^>])*>", "$1", html)
    Case "onload"  ' 去除样式style=""
     html = exeRE("(<[^>]+) onload=""[^""]*""([^>]*>)", "$1 $2", html)
     html = exeRE("(<[^>]+) onload='[^']*'([^>]*>)", "$1 $2", html)
    Case "ONCLICK"  ' 去除样式style=""
     html = exeRE("(<[^>]+) onclick=""[^""]*""([^>]*>)", "$1 $2", html)
     html = exeRE("(<[^>]+) onclick='[^']*'([^>]*>)", "$1 $2", html)
    Case "ONDBCLICK"  ' 去除样式style=""
     html = exeRE("(<[^>]+) ondbclick=""[^""]*""([^>]*>)", "$1 $2", html)
     html = exeRE("(<[^>]+) ondbclick='[^']*'([^>]*>)", "$1 $2", html)
    Case "BLOCKQUOTE"
        html = exeRE("</?blockquote[^>]*>", "", html)
   End Select
  Next

  DecodeFilter = html
 End Function
本文转自福州IT信息网(http://www.fzic.net),详细出处参考:http://www.fzic.net/srcshow.asp?src_id=522

 

编辑以上内容 删除以上内容 追加资源

access两种连接方式

2008-1-15 0:58:35来自IP:219.137.X.X by soybean217@sina.com.cn

connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath(""&datapath&""&datafile&"")
'Connstr="DBQ="&server.mappath(""&datapath&""&datafile&"")&";DRIVER={Microsoft Access Driver (*.mdb)};"

编辑以上内容 删除以上内容 追加资源

@@add_newSrcLink@@
更新记录
此处显示新 left 标签的内容