博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2006年9月23日

摘要: GridView 事件GridView 控件可公开分页事件和排序事件,以及在创建当前行或将当前行绑定至数据时发生的事件。单击一个命令控件(例如,包含在 GridView 控件中作为其中的一部分的 Button 控件)时也会引发事件。下表描述了由 GridView 控件公开的事件。RowCommand 在 GridView 控件中单击某个按钮时发生。此事件通常用于在该控件中单击某个按钮时执行某项任务... 阅读全文

posted @ 2006-09-23 22:11 张明 阅读(513) 评论(0) 推荐(0) 编辑

摘要: 数据库添加/删除字段为数据库Categories添加一个字段zm235并且指定类型为:varchar,长度30ALTER TABLE [test] ADD zm235 varchar(50) Null将数据库test中的zm235这个字段删除ALTER TABLE [test] DROP COLUMN zm235为数据test添加主键(主键ID)ALTER TABLE [test] ADD ID... 阅读全文

posted @ 2006-09-23 17:28 张明 阅读(3224) 评论(0) 推荐(0) 编辑

摘要: 方案一:TryCatch(执行效率不高)private bool IsNumberic(string oText){ try { int var1=Convert.ToInt32 (oText); return true; } catch { ... 阅读全文

posted @ 2006-09-23 17:00 张明 阅读(5084) 评论(3) 推荐(0) 编辑

摘要: 1.为按钮添加确认对话框Button1.Attributes.Add("onclick","return confirm(’确认?’)");button.attributes.add("onclick","if(confirm(’are you sure?’)){return true;}else{return false;}")2.删除表格选定记录//获得DataGrid主键int intEmp... 阅读全文

posted @ 2006-09-23 16:51 张明 阅读(288) 评论(0) 推荐(0) 编辑

摘要: 1.在需要的地方调用下面的方法:CommonScript.MessageBox("100006",this) ; 2.上面用到的CommonScript类里的MessageBox方法:public static void MessageBox(string str_ErrCode, Page page) { IDataReader Err... 阅读全文

posted @ 2006-09-23 16:48 张明 阅读(659) 评论(0) 推荐(0) 编辑

摘要: 1、理解document.all[] 从IE4开始IE的object model才增加了document.all[],来看看document.all[]的Description:Array of all HTML tags in the document.Collection of all elements contained by the object. 也就是说document.all[]... 阅读全文

posted @ 2006-09-23 16:45 张明 阅读(1590) 评论(0) 推荐(0) 编辑

摘要: Shift+Alt+Enter: 切换全屏编辑Ctrl+B,T / Ctrl+K,K: 切换书签开关Ctrl+B,N / Ctrl+K,N: 移动到下一书签 Ctrl+B,P: 移动到上一书签 Ctrl+B,C: 清除全部标签Ctrl+I: 渐进式搜索 Ctrl+Shift+I: 反向渐进式搜索 Ctrl+F: 查找 Ctrl+Shift+F: 在文件中查找 F3: 查找下一个 Shift+F3:... 阅读全文

posted @ 2006-09-23 15:48 张明 阅读(1087) 评论(1) 推荐(0) 编辑

摘要: //1.DateTimeDateTime now = System.DateTime.Now;now.ToString(); now.ToString("yyyy-mm-dd hh:MM:ss"); //显示: 2006-08-30 05:39:11now.ToString("yyyy-mm-dd HH:mm:ss");//显示: 2006-08-30 17:40:50System.DateTi... 阅读全文

posted @ 2006-09-23 15:39 张明 阅读(610) 评论(0) 推荐(0) 编辑

摘要: 云南音乐台:mms://220.163.44.116:8080台北音乐电台:mms://203.187.31.160/fm917/澳门广播电台:mms://202.175.80.10/liveaudio/北京音乐频率:mms://202.108.248.145/fm974昆明都市调频:mms://www.radiokm.com/live2昆明阳光调频:mms://www.radiokm.com/l... 阅读全文

posted @ 2006-09-23 15:33 张明 阅读(314) 评论(1) 推荐(0) 编辑

摘要: //前台代码/**//*当需要在一个列表中显示主从表(例如部门-人员的信息),在asp.net1.1中我们可能会使用DataGrid模版列嵌套DataGrid的方法实现,然而,处理模版列里的DataGrid的翻页、排序、编辑等功能时都比较麻烦。在asp.net2.0中,配合DataSource控件的使用让这个问题变得非常简单!*/ 无标题页 ... 阅读全文

posted @ 2006-09-23 15:23 张明 阅读(3968) 评论(13) 推荐(0) 编辑

摘要: (原创)上传图片并为用户创建相应文件夹 阅读全文

posted @ 2006-09-23 15:13 张明 阅读(2263) 评论(6) 推荐(0) 编辑

摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre... 阅读全文

posted @ 2006-09-23 14:49 张明 阅读(1126) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2006-09-23 14:41 张明 阅读(3698) 评论(4) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2006-09-23 14:32 张明 阅读(1239) 评论(2) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2006-09-23 14:31 张明 阅读(654) 评论(1) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2006-09-23 14:24 张明 阅读(2999) 评论(60) 推荐(0) 编辑

摘要: 简单验证码的产生 阅读全文

posted @ 2006-09-23 14:10 张明 阅读(213) 评论(0) 推荐(0) 编辑

摘要: GridView 批量删除,自定义分页,定位页码 阅读全文

posted @ 2006-09-23 13:57 张明 阅读(5795) 评论(17) 推荐(0) 编辑