随笔:56 文章:0 评论:23 引用:0
博客园 首页 发新随笔
发新文章 联系 订阅订阅管理

12 2009 档案

 
当GridView没有数据时显示Header或Footer
摘要: 方法:只要在要绑定的DataTable中加入一个空行即可注意:如果模版行中有类似Button等控件,空行就会显示出来;可以将Button的Visiable设置为false,或将整行Visiable设置为false就可以了HTML代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHigh...阅读全文
posted @ 2009-12-25 23:43 andy65007 阅读(277) | 评论 (0) 编辑
关于iframe.document
摘要: 无意中将JS代码中的iframe.Document改为了iframe.document(小写D),结果也面的iframe高度自动控制的就失效了,iframe高度变的很高,后来比较TFS上文件历史才发现是由于修改了上述部分code所导致,放狗找了找得到的结果是:iframe.Document指是iframe内部文档的对象而iframe.document指的是iframe所在文档的对象乖乖~~原文见h...阅读全文
posted @ 2009-12-24 13:20 andy65007 阅读(38) | 评论 (0) 编辑
C++基本错误:
摘要: C++常见错误:1. C2146错误通常原因是变量定义前的类型说明符找不到,可能因为拼写错误或未加入需要的头文件引用导致2. Error1fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your...阅读全文
posted @ 2009-12-24 00:41 andy65007 阅读(27) | 评论 (0) 编辑
用来验证字符串的规则引擎
摘要: 规则引擎:用来验证字符串是否符合预配置的规则,可以通过配置文件动态定义不同的字符串验证条件规则引擎主代码(RuleEngine.cs )Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Text.Regul...阅读全文
posted @ 2009-12-23 23:56 andy65007 阅读(110) | 评论 (0) 编辑
.NET下转换日期格式为中文大写
摘要: 今天在写代码时遇到一个需要将日期转换为中文大写日期的问题,网上找了找,示例不是很多,只有javascript代码的,以下是这个链接(http://www.cnblogs.com/isme/articles/267043.html),把它转换为C#版贴出来与大家分享C#版Code highlighting produced by Actipro CodeHighlighter (freeware)h...阅读全文
posted @ 2009-12-23 16:23 andy65007 阅读(79) | 评论 (0) 编辑
html代码实现同时上传多个文件
摘要: 注意问题:1. 使用document.createElement动态创建HTML元素,name属性在IE下无法直接设置,需要使用以下方法(参见http://www.thunderguy.com/semicolon/2005/05/23/setting-the-name-attribute-in-internet-explorer/)设置name属性Code highlighting produce...阅读全文
posted @ 2009-12-17 20:50 andy65007 阅读(265) | 评论 (1) 编辑
asp.net文件上传需要注意的问题
摘要: 以下是使用html控件<input type="file">上传文件时遇到的一些问题总结,方便大家查阅:1. 如果直接用<input type="file"...></input>html客户端控件选择文件,必须要在<input type="file">控件中加入name属性,否则服务端无法获取控件值(即文件)2. asp.net默认设置对上传文件有...阅读全文
posted @ 2009-12-17 03:00 andy65007 阅读(89) | 评论 (0) 编辑

公告


Powered By: 博客园
模板提供沪江博客