10 2008 档案
网页禁止复制,鼠标右键,鼠标左键,选择等
摘要: 阅读全文
posted @ 2008-10-29 09:52 原始部落 阅读(257) 评论(0) 推荐(0)
去掉网页上的图片工具栏
摘要:网页上的图片当把鼠标移上去后,会出现一排按纽:打印,保存,... 要去掉有两种方法:HTTP-EQUIV="imagetoolbar" 或 GALLERYIMG="no" ... 阅读全文
posted @ 2008-10-29 09:51 原始部落 阅读(171) 评论(0) 推荐(0)
返回INSERT 的ID值
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CREATE TABLE [Role] ( [RoleID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED , [CategoryID] [int... 阅读全文
posted @ 2008-10-28 10:37 原始部落 阅读(274) 评论(0) 推荐(0)
参数查询的like
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public DataSet GetList(Hashtable hs) { if (Object.Equals(hs, null) || hs.Coun... 阅读全文
posted @ 2008-10-28 10:29 原始部落 阅读(162) 评论(0) 推荐(0)
生成验证码图片
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Data; using System.Configuration; using System.Collections; using System.... 阅读全文
posted @ 2008-10-17 23:10 原始部落 阅读(217) 评论(0) 推荐(0)
DataTable.Compute 方法
摘要:注:文章摘自MSDN DataTable.Compute 方法 计算用来传递筛选条件的当前行上的给定表达式。 public Object Compute ( string expression, string filter ) 参数 expression 要计算的表达式。 filter 要限制在表达式中进行计算的行的筛选器。 返回值 Object,设置为... 阅读全文
posted @ 2008-10-12 01:08 原始部落 阅读(453) 评论(1) 推荐(0)
任务栏闪烁
摘要:using System.Runtime.InteropServices; -------------------------- [DllImport("user32.dll")] public static extern bool FlashWindow( IntPtr hWnd, // handle to window bool bInvert // flash... 阅读全文
posted @ 2008-10-12 01:02 原始部落 阅读(449) 评论(0) 推荐(0)
TextBox只允许输入数字
摘要:public class NumericTextBox : TextBox protected override void OnKeyPress(KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled = true; } if (!Char.IsDigit(e.KeyChar... 阅读全文
posted @ 2008-10-12 00:58 原始部落 阅读(217) 评论(0) 推荐(0)