摘要:
========================================================== ============ ===== 阅读全文
摘要:
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... 阅读全文
摘要:
父窗口: private string strValueA = ""; public string StrValueA { get { return this.strValueA; } set ... 阅读全文
摘要:
[C#] // 取得当前单元格内容 Console.WriteLine(DataGridView1.CurrentCell.Value); // 取得当前单元格的列 Index Console.WriteLine(DataGridView1.CurrentCell.ColumnIndex); // 取得当前单元格的行 Index Console.WriteLine(DataGridView1.Cu... 阅读全文
摘要:
本代码适用于: 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... 阅读全文
摘要:
清爽配色15套 阅读全文
摘要:
我觉得动态生成DataTable在有些需要测试返回Datatable数据集函数 和一些数据绑定控件测试其效果还是挺有用的~ 贴码:( Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> protected void Page_Loa... 阅读全文
摘要:
实现效果如下图: 前台代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ... 阅读全文
摘要:
页面可以被看成各种控件组成的一个集合。在页面被初始化和加载过程中,可以遍历这些控件,找到特定的控件,或者改变某些控件的属性。 页面Controls / | \ //foreach(Cont... 阅读全文
摘要:
做大批量的数据删除时,如果有个全选按钮把多个页面上显示的记录全都选中删除那比一条条的删除要人性化得多,接下来说一说如何实现,其实网上一搜有好多文章都是说如何进行批量删除的,大体上可以分为两大类1:利用JS脚本实现全选。2:在服务器端实现全选 首先来说一说如何利用JS实现全选 往页面上拖一个GridView,设置好数据源,并为GridView添加一个模板列,往模板列里添加一个chekcbox,比... 阅读全文
摘要:
方法一: 在GridView的 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ... 阅读全文