上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

2010年3月26日

TextBox 内容由弹出窗口选择返回的实现

摘要: 在项目中很多时候Textbox 需要有弹出窗口来选择返回.这里简单介绍实现方式.1.新建弹出选择窗口页面:前台:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<TABLEwidth="100%"align="center"><t... 阅读全文

posted @ 2010-03-26 14:05 AndyCai 阅读(683) 评论(0) 推荐(0) 编辑

动态生成多个DataGrid 并导出Excel

摘要: 项目中有需要动态的生成多个DataGrid,并且可以一起导出到Excel.实现如下:前台1.放置div: 用于装载DataGrid <div id="divGrid" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"runat... 阅读全文

posted @ 2010-03-26 13:45 AndyCai 阅读(618) 评论(0) 推荐(0) 编辑

两结构相同DataTable 合并

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicDataTableMergeTable(DataTableorgDt,DataTablenewDt){object[]obj=newobject[newDt.Columns.Count];... 阅读全文

posted @ 2010-03-26 13:33 AndyCai 阅读(181) 评论(0) 推荐(0) 编辑

DataView 转成DataTable

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicDataTableCreateTable(DataViewobDataView){if(null==obDataView){thrownewArgumentNullException("D... 阅读全文

posted @ 2010-03-26 13:32 AndyCai 阅读(196) 评论(0) 推荐(0) 编辑

2010年3月18日

DataGrid 增加一列全选

摘要: JS:function SelectAll(tempControl) { //将除头模板中的其它所有的CheckBox取反 var dt = document.all.; for(var i = 1; i < dt.rows.length; i++) { var checkb = dt.rows(i).cells(0).childNodes(0); if(tempControl.checke... 阅读全文

posted @ 2010-03-18 13:16 AndyCai 阅读(208) 评论(0) 推荐(0) 编辑

Div 实现滚动

摘要: 通过Div 的属性使得在它里面的控件实现垂直和水平的滚动. 例如:<div class="list" style="OVERFLOW: auto; WIDTH: 800px; HEIGHT: 200px; TEXT-ALIGN: center"><asp:datagrid id="dgdFileList" Width="888px" AutoGenerateColumns="Fa... 阅读全文

posted @ 2010-03-18 11:24 AndyCai 阅读(1012) 评论(0) 推荐(0) 编辑

2009年12月15日

上传文件

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidbtnSubmit_Click(objectsender,EventArgse){try{if(this.CheckUpload()){//文件儲存路徑stringstrDQ... 阅读全文

posted @ 2009-12-15 14:11 AndyCai 阅读(176) 评论(0) 推荐(0) 编辑

GridView 中下载文件

摘要: GridView 中每一行都有一个File Name 列,显示文件名称,点击后可下载.前台GridView :<asp:TemplateField HeaderText="File Name" SortExpression="FULLFILENAME"> <itemtemplate> <asp:LinkButton id="lbnFileName" onclick="... 阅读全文

posted @ 2009-12-15 14:04 AndyCai 阅读(695) 评论(0) 推荐(0) 编辑

2009年12月4日

GridView 双层表头

摘要: GridView 中实现双层表头的主要思路是通过GridView 的RowCreated 方法重写表头.要实现如下: NPRB表單號&基本資料 |預計出關日期| 實際出關日期|Delay差異天數 ---------------------------------------------------------------------------------------------NPRB_... 阅读全文

posted @ 2009-12-04 11:43 AndyCai 阅读(669) 评论(0) 推荐(0) 编辑

2009年11月25日

GridView 动态生成模版列

摘要: 最近项目中有用到GridView 的列是动态生成的,并且是用模版列.查找了网上的方法.作法如下:1. 写一个类.主要继承ITemplate[代码]2. GridView 模版列的添加[代码] 阅读全文

posted @ 2009-11-25 14:22 AndyCai 阅读(459) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

导航