摘要: using System;using System.Data;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;namespace XXXX.Data.Helper{ public static class DatabaseExtension { /// <summary> /// 执行存储过程 /// </summary> /// <typeparam name="TElement"></ 阅读全文
posted @ 2012-03-02 16:15 baby_tao 阅读(5801) 评论(0) 推荐(0) 编辑
摘要: 1.取消按钮按下时的虚线框,在input里添加属性值 hideFocus 或者 HideFocus=true<input type="submit" value="提交" hidefocus="true" />2.只读文本框内容,在input里添加属性值 readonly<input type="text" readonly />3.防止退后清空的TEXT文档(可把style内容做做为类引用)<input type="text" style="behavi 阅读全文
posted @ 2012-02-08 10:32 baby_tao 阅读(9994) 评论(1) 推荐(2) 编辑
摘要: 脑袋不好,看完记不住,写纸上又太累,特意摘些东西下来,加深印象...也给其他懒得看大文档东西的朋友提供个方便,不对的地方,欢迎指正以下东西来自:http://www.apple.com.cn/developer/iphone/library/documentation/iPhone/Conceptual/iOs_TechOverview/Introduction/Introduction.html目前没有分类,比较凌乱==========================================iOS里的层,说是代码尽量调用Cocoa Touch层的东西会比较好一些。========== 阅读全文
posted @ 2011-10-08 16:01 baby_tao 阅读(324) 评论(0) 推荐(0) 编辑
摘要: //写cookies函数 function SetCookie(name, value)//两个参数,一个是cookie的名子,一个是值 { var Days = 30; //此 cookie 将被保存 30 天 var exp = new Date(); //new Date("December 31, 9998"); exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); document.cookie = name + "=" + escape(value) + ";expires 阅读全文
posted @ 2011-08-16 19:39 baby_tao 阅读(3350) 评论(1) 推荐(0) 编辑
摘要: 1.查询指定数据库中所有表名 use YOURDATABASENAME//你的数据库名称 SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'2.清空所有表数据 exec sp_msforeachtable @command1='truncate table ?', @whereand=' and objectproperty(o.id,''TableHasForeignRef'')=0' exec sp_msforeacht 阅读全文
posted @ 2011-07-27 11:34 baby_tao 阅读(199) 评论(0) 推荐(0) 编辑
摘要: int a = 12345678; //格式为sring输出 Label1.Text = string.Format("asdfadsf{0}adsfasdf",a); Label2.Text = "asdfadsf"+a.ToString()+"adsfasdf"; Label1.Text = string.Format("asdfadsf{0:C}adsfasdf",a);//asdfadsf¥1,234.00adsfasdf Label2.Text = "asdfadsf"+a.ToStr 阅读全文
posted @ 2011-07-26 15:57 baby_tao 阅读(1513) 评论(0) 推荐(0) 编辑
摘要: #region 验证操作系统用户名 public bool isExistUserName(string name) { List<string> nameList = GetSysUserNames(); return nameList.Contains(name); } public List<string> GetSysUserNames() { int EntriesRead; int TotalEntries; int Resume; IntPtr bufPtr; List<string> temp = new List<string> 阅读全文
posted @ 2011-05-10 14:34 baby_tao 阅读(2446) 评论(0) 推荐(1) 编辑
摘要: [转]http://www.cnblogs.com/jenry/articles/428348.htmlToolsThe only tool you need is ORCA. ORCA is a Microsoft utility for modifying and validating Windows Installer packages. It is a database tool created for setup authors and administrators who work with the Windows Installer Service. This utility i 阅读全文
posted @ 2011-04-25 14:10 baby_tao 阅读(300) 评论(0) 推荐(0) 编辑
摘要: [转]http://houke2004.blog.163.com/blog/static/2086316520090842725966/本文将着重介绍Win32 API库中涉及网络管理的函数。首先我要讲一讲在.Net框架中管理用户的两个方法,第一种是Active Directory方法,这种方法要求你安装Active Directory。如果你打算管理一个小网络上的用户,或者一个未安装Active Directory的独立工作站,为了管理用户而安装Active Directory显得有些不值得。另外一种方法则是这篇文章所要讲到的——使用Win32 API库函数。在这篇文章中,我将介绍如何使用C 阅读全文
posted @ 2011-04-12 11:49 baby_tao 阅读(534) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ZhangJing/archive/2011/04/07/lkd10zj_CSharp.html委托的相关概念委托提供了类似C++中函数指针的功能,简单地说委托类型就是面向对象函数指针,不过C++的函数指针只能够指向静态的方法,而委托除了可以指向一个静态的方法之外还可以指向对象实例的方法,并且委托是完全面向对象且使用安全的类型。也就是说:委托可以看成是一种类型安全的函数指针,它用来代理一类符合其要求的方法(包括静态方法和动态方法即实例的方法),同时它又可以作为一个方法的参数进行传。对“符合其要求”的解释:委托的 返回类型 和 参数 要与被代理的方法 阅读全文
posted @ 2011-04-07 17:21 baby_tao 阅读(364) 评论(2) 推荐(1) 编辑