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

2013年2月21日

摘要: 在绑定数据后添加了删除按钮 ' runat="server" Text="【删除】" CssClass="input-button-2 float_left" style="margin-right: 5px;" /> 可是在点击后会报错 回发或回调参数无效。在配置中使用 或在页面中... 阅读全文
posted @ 2013-02-21 11:59 alonelonly 阅读(246) 评论(0) 推荐(0) 编辑

2013年2月19日

摘要: 发现一个有趣的时间显示: 将下面代码添加到网页上: 阅读全文
posted @ 2013-02-19 10:58 alonelonly 阅读(218) 评论(0) 推荐(0) 编辑

2013年2月1日

摘要: 一下为一些基本验证,网上有很多过时的,或者没写完整的,更新一下,刚在项目中使用的 /// <summary> /// 电话号码 /// </summary> /// <param name="str_telephone"></param> /// <returns></returns> public static bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.... 阅读全文
posted @ 2013-02-01 14:29 alonelonly 阅读(245) 评论(0) 推荐(0) 编辑

2013年1月31日

摘要: 在做一项功能时,页面需要选择“社区”, 首先需要选择区域,选完区域后,再选择社区,页面会刷新,而且这个社区选择Div区域一开始不可见的,如果在一个页面操作不便,所以需要开启另外一个窗口。 所以用了window.open(); function openSelectCommunity... 阅读全文
posted @ 2013-01-31 21:07 alonelonly 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> //写入 protected void Button1_Click(object sender, EventArgs e) { HttpCookie cookie=new HttpCookie("MyCook");//初使化并设置Cookie的名称 DateTime dt=DateTime.Now; TimeSpan ts = new TimeSpan(0, 0, 1, 阅读全文
posted @ 2013-01-31 21:01 alonelonly 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1. Javascript 返回上一页 history.go(-1), 返回两个页面: history.go(-2); 2. history.back(). 3. window.history.forward()返回下一页 4. window.history.go(返回第几页,也可以使用访问过... 阅读全文
posted @ 2013-01-31 20:59 alonelonly 阅读(674) 评论(0) 推荐(0) 编辑

2013年1月18日

摘要: 1 DataSet.Table[0].Rows[ i ][ j ] 其中i 代表第 i 行数, j代表第 j 列数 2 DataSet.Table[0].Rows[ i ].ItemArray[ j ] 其中i 代表第 i 行数, j代表第 j 列数 3 DataSet.Tables[0].C... 阅读全文
posted @ 2013-01-18 14:44 alonelonly 阅读(140) 评论(0) 推荐(0) 编辑
摘要: c#读取excel的方法有不少,这里重点讲直接将excel文件读取到dataset中。在实践过程中会有不少问题,特意摘抄在此: 1.基本的代码 private DataSetimportExcelToDataSet( string FilePath){ string ... 阅读全文
posted @ 2013-01-18 09:08 alonelonly 阅读(378) 评论(0) 推荐(0) 编辑

2013年1月10日

摘要: 项目中通过jquery+ajax等技术实现数据上传,显示。当数据库中的列类型为datetime,取值到页面上的会是一个对象(Object),这个时候需要Object.Text才会显示正确的时间。 阅读全文
posted @ 2013-01-10 10:56 alonelonly 阅读(174) 评论(0) 推荐(0) 编辑

2012年12月11日

摘要: 今日碰到了这么一个异常,异常信息如下: Type:System.InvalidOperationException,mscorlib,Version=2.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089 Message:使用JSO... 阅读全文
posted @ 2012-12-11 15:49 alonelonly 阅读(4204) 评论(1) 推荐(1) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页

导航