`
aaa_56234
  • 浏览: 17185 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
/// <summary> /// 将指定字符串按指定长度进行剪切, /// </summary> /// <param name="oldStr "> 需要截断的字符串 /// <param name="maxLength "> 字符串的最大长度 /// <param name="endWith "> 超过长度的后缀 /// <returns> 如果超过长度,返回截断后的新字符串加上后缀,否则,返回原字符串 </returns> public stat ...

倒计时

<script language="javascript" type="text/javascript"> var i=5; var intervalid; intervalid= setInterval("fun()",1000); function fun(){ if(i==0) { window.location.href="default.aspx"; ...
在主程序AssemblyInfo.cs中添加 //注意,一定要有 [assembly: HR.Class.Log.Config.DOMConfigurator(ConfigFileExtension = "config", Watch = true)] ======================================================= 在HR.Class.Log.WriteLog的AssemblyInfo.cs中添加 [assembly: HR.Class.Log.Config.XmlConfigurator(ConfigFile = & ...
select datediff(s,时间字段,getdate()) from 表
<script language="javascript" type="text/javascript"> function send_request(flag) { //创建XMLHttpRequest; http_request = false; if(window.XMLHttpRequest) { // 非IE 浏览器 http_r ...

系统日志共用组件

    博客分类:
  • .NET
可以直接拿来用,测试过的。可以像数据库,邮箱和本地写日志。
可以直接用! using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Data.Common;using System.Collections.Generic;namespace Maticsoft.DBUtility{    /// <summary>    /// 数据访问抽象基础类    /// Copyright ...
只适合在IE中用,大家可以修改一下就可以通用了,这里我就不作修改了,弄了一上午才弄出来。 <script language="JavaScript1.2">function move(x) {if (document.all) {object1.style.pixelLeft += x;object1.style.visibility = "visible"}else if (document.layers) {document.object1.left += x;document.object1.visibility = "sho ...
<a href="javascript:window.external.addFavorite('http://www.mingrisoft.com/about.asp','**科技有限公司');">加入收藏 </a>     <a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cxyhome.com');">设为首页</a>       <a href=& ...
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls; /// <summary>/// OperatorClass 的摘要说明/// </summary>public cla ...
---- 建立数据库 --create database newssystem ---- 建立类别表 --create table category --( -- id int identity(1,1) primary key, -- [name] varchar(20) not null --) ---- 建立新闻表 --create table news --( -- id int identity(1,1) primary key, -- title varchar(100) not null, -- [content] text not null, -- c ...
select top 10 n.id,n.title,n.createTime,c.[name],count(com.id) as comcount from news n inner join category c on n.caId=c.id inner join comment com on com.newsId=n.id group by n.id,n.title,n.createTime,c.[name] order by n.comcount desc

ref和out用法

    博客分类:
  • .NET
public static class Test() { public static void Test1(ref int t) { Console.Write(t); t = 200; Console.WriteLine(t); } public staticvoid Test2(out int t) { t = 100; } } public class Program { static void Main() { int t1 = 100; Test.Test1(ref t1); Console.WriteLine(t1); int t2 ; ...
工作中碰到的问题,记录一下,可输入形如2008、2008-9、2008-09、2008-9-9、2008-09-09.。。   ^(\d{4}|(\d{4}-\d{1,2})|(\d{4}-\d{1,2}-\d{1,2}))$
  \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
Global site tag (gtag.js) - Google Analytics