摘要: ========================================================== ============ ===== 阅读全文
posted @ 2012-02-22 16:47 williamwindy 阅读(181) 评论(0) 推荐(0) 编辑
摘要: create procedure select_procedure(@ID int,@num int output)asdeclare @n intset @n = 0select @n = count(*) from Employee where oid=@IDset @num = @nreturn @numgodeclare @value intdeclare @res intset @val... 阅读全文
posted @ 2009-11-15 20:53 williamwindy 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 父窗口: private string strValueA = ""; public string StrValueA { get { return this.strValueA; } set ... 阅读全文
posted @ 2009-01-20 17:45 williamwindy 阅读(392) 评论(0) 推荐(0) 编辑
摘要: [C#] // 取得当前单元格内容 Console.WriteLine(DataGridView1.CurrentCell.Value); // 取得当前单元格的列 Index Console.WriteLine(DataGridView1.CurrentCell.ColumnIndex); // 取得当前单元格的行 Index Console.WriteLine(DataGridView1.Cu... 阅读全文
posted @ 2009-01-19 15:15 williamwindy 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 本代码适用于: SQLSERVER2000/2005 SQL语句如下: select c.name, t.name as type, c.length ,(case t.name when 'nvarchar' then c.length/2 when 'nchar' then c.length/2 else c.length end) as reallen... 阅读全文
posted @ 2009-01-19 12:00 williamwindy 阅读(1650) 评论(2) 推荐(1) 编辑
摘要: 清爽配色15套 阅读全文
posted @ 2009-01-14 19:28 williamwindy 阅读(647) 评论(1) 推荐(0) 编辑
摘要: 我觉得动态生成DataTable在有些需要测试返回Datatable数据集函数 和一些数据绑定控件测试其效果还是挺有用的~ 贴码:( Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> protected void Page_Loa... 阅读全文
posted @ 2009-01-10 10:12 williamwindy 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 实现效果如下图: 前台代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ... 阅读全文
posted @ 2009-01-06 23:03 williamwindy 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 页面可以被看成各种控件组成的一个集合。在页面被初始化和加载过程中,可以遍历这些控件,找到特定的控件,或者改变某些控件的属性。 页面Controls / | \ //foreach(Cont... 阅读全文
posted @ 2009-01-06 15:57 williamwindy 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 做大批量的数据删除时,如果有个全选按钮把多个页面上显示的记录全都选中删除那比一条条的删除要人性化得多,接下来说一说如何实现,其实网上一搜有好多文章都是说如何进行批量删除的,大体上可以分为两大类1:利用JS脚本实现全选。2:在服务器端实现全选 首先来说一说如何利用JS实现全选 往页面上拖一个GridView,设置好数据源,并为GridView添加一个模板列,往模板列里添加一个chekcbox,比... 阅读全文
posted @ 2009-01-05 14:45 williamwindy 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 方法一: 在GridView的 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ... 阅读全文
posted @ 2009-01-04 15:43 williamwindy 阅读(282) 评论(0) 推荐(0) 编辑