http://blog.sina.com.cn/caomingxu[订阅][手机订阅]
个人资料
分类
    内容读取中…
评论
读取中...
友情链接
我的sohu博客

我的sohu博客

我的csdn博客

我的csdn博客

访客
读取中...
好友
读取中...
博文
c# resource(2008-08-15 13:23)

网站需要注册,不过有想下载的用这个登陆就好了。用户名:hoho124     密码:123456

C# Primer Plus中文版http://download.chinaitlab.com/soft/7990.htm

C# 开发编码规范 http://download.chinaitlab.com/soft/7991.htm

从今以后C++(2008-08-14 23:26)

我的程序人生已经走到了第二个阶段,从今以后C++

 DWORD WaitForSingleObject( 
  HANDLE hHandle, 
  DWORD dwMilliseconds 
特殊贴(2008-03-29 19:58)
 士大夫
编写可读性强的代码(2008-02-27 00:43)
 以下是编写可读性强的代码的准则:
  • 使用注释描述程序或脚本,包括作者、日期和修改说明。

  • 让每个主要的 Transact-SQL 子句单独占一行,以使语句更易于阅读:
     USE pubs SELECT au_fname, au_lname FROM authors WHERE state = 'CA' 
    
  • Transact-SQL 关键字(如 SELECT 和 FROM)、函数名(如 SUM、AVG、DATEPART、CASE 和 CONVERT)以及数据类型(如 INT、CHAR、NTEXT)都用大写:
     USE pubs CREATE TABLE myauthors (  first VARCHAR(30) NOT NULL,  last VARCHAR(40) NOT NULL,  address VARCHAR(40) NOT NULL,  city VARCHAR(30) NOT NULL,  state VARCHAR(2) NOT NULL,  zip CHAR(9) NOT NULL,  phone VARCHAR(20) NULL ) 
    
  • 定义并统一使用对象名的风格约定。以下是两项典型的约定:
    • 名称的每个部分的首字母大写;名称的各部分不用下划线隔开:TableName

    • 所有的字符都小写,并用下划线 (_) 隔开名称的各部分:table_name

    即使当前的 Microsoft SQL Server' 实例不区分大小写,如果使

 
function GetCookie (name) {
var arg = name + '=';
var alen = arg.length;
var clen = window.document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (window.document.cookie.substring(i, j) == arg) return getCookieval_r(j);
i = window.document.cookie.indexOf(' ', i) + 1;
if (i == 0) break;
}
return null;
}

function getCookieval_r(offset) {
var endstr = window.document.cookie.indexOf (';', offset);
if (endstr == -1) endstr = window.document.cookie.length;
return unescape(window.document.cookie.substring(offset, endstr));
}
function SetCookie (name, value) {
var exp = new Date();
exp.setTime(exp.getTime() + (30*24*60*60*1000));
window.document.cookie = name + '=' + escape (value) + '; expires=' + exp.toGMTString()+';path=/';
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime
关于cookie(2007-12-30 23:06)
 1、因为cookie是程序写于浏览者硬盘的,所以理应是固定不变的,所以服务器端和客户端是应该通用的,所以可以共享使用,用程序去动态与数据库交互在客户端用js来读取,使用起来非常方便,同时因为cookie是客户端的东西,服务器端去读取的时候肯定是浏览器在解析的时候用反复通信的过程,在写入的时候肯定有生成的脚本去写入的操作,下面是一个例子,用服务器端写入,客户端读取。
string[] __userinfo = UserActions.GetUserInfoByLoginID(uid.ToString());
            if (__userinfo != null)
            {
                HttpCookie cookie = new HttpCookie('JJB');
                cookie.Values['userid'] = uid.ToString();
              &nbs
写两个东西(2007-12-30 18:48)
 
 写两个东西:
需求:
   1、Asp.net 类似于DataGrid的控件
   2、Js方面的类似于这个控件
要求:
   1、要求有丰富的事件
   2、丰富的接口,可以任意改变大小、样式、拖动、最小化、最大化、数据绑定

<style type='text/css'>
ul{
 margin:0px;
 padding:0px;
 width:200px;
 }
ul li{
 float:left;
 list-style-type:none;
 border-top:#000 solid 1px;
 border-left:#000 solid 1px;
 width:65px;
 }
.border-r{
               border-right:#000 solid 1px;
                }
.border-b{
               border-bottom:#000 solid 1px;
                }
.border-l{
               border-right:#000 solid 1px;
           &n

 

<style type='text/css'>
ul{
 margin:0px;
 padding:0px;
 width:200px;
 }
ul li{
 float:left;
 list-style-type:none;
 border-top:#000 solid 1px;
 border-left:#000 solid 1px;
 width:65px;
 }
.border-r{
               border-right:#000 solid 1px;
                }
.border-b{
               border-bottom:#000 solid 1px;
                }
.border-l{
               border-right:#000 solid 1px;
         &n

表格样式(2007-12-30 10:59)
 列举了表格的各种样式效果:
 <table class='style1'>
        <tr>
            <td style=' border-bottom-style:dashed;'>
                <a class='style2'
                    href='http://bbs.ourgame.com/bbs_index.asp?Subject_ID=498&amp;BBS_ID=20071228410141&amp;bPage=1'
                    target='_blank'>冬日暖阳</a></td>
            <td>
                &am