上一页 1 ··· 3 4 5 6 7
摘要: 再增加一个删除按钮要做以下工作:1.将两个删除按钮列改为模板列2.将两个删除按钮的CommandName的属性设置为Delete3.将两个删除按钮的CommandArgument属性分别设置为"0"和"1",这是区分这两个按钮的关键!!4.在GridView的RowCommand事件下打入代码,(RowCommand事件先于RowDeleting事件) protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if(e.CommandName==&qu 阅读全文
posted @ 2012-10-25 09:02 sirili 阅读(312) 评论(0) 推荐(0) 编辑
摘要: http://www.asp.net/http://stackoverflow.comhttp://www.codeproject.comhttp://www.c-sharpcorner.com/http://www.daniweb.com/software-development/csharp/61 阅读全文
posted @ 2012-10-24 08:38 sirili 阅读(214) 评论(0) 推荐(1) 编辑
摘要: Problem with gettinglastlogonforaccount- C#.NET /ADHi guys!I have a code:StringLastlogon(string username,string domain){try{{DirectoryContext context =newDirectoryContext(DirectoryContextType.Domain,domain);DateTime latestLogon =DateTime.MinValue;string servername =null;DomainControllerCollection dc 阅读全文
posted @ 2012-10-24 08:24 sirili 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 这里记录一下telnet上后的命令:3550-1>en \进入特权模式password:3550-1#show ip inter brif \查看端口状态3550-1#configure terminal \配置3550-1<config>#interface fastethernet 0/19 \端口193550-1<config>#no shutdown \重启3550-1<config>#end3550-1#show interface status3550-1#exit 阅读全文
posted @ 2012-10-16 08:36 sirili 阅读(7943) 评论(0) 推荐(0) 编辑
摘要: 这个方法确实可以解决:首先打开一个空白的excel工具-->选项-->常规-->将"忽略其它应用程序"这个复选项前的勾去除 (用这一步就把问题解决了) 如果只是偶然这样打不开,那是因为进程中已经存在Excel的进程,也就是说,Excel已经启动了[Excel是一个MDI的程序,子窗体(文档)可以多次创建或打开,但是程序本身(Excel)只能启动一次]。 在这种情况下你只要关闭Excel进程,重新打开就可以了。 结束进程的方法: Ctrl+Alt+Del-->任务管理器-->进程-->选中Excel.exe-->结束进程参考:http 阅读全文
posted @ 2012-10-15 19:46 sirili 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: 1,Excel 需是.xls 格式2,添加引用Microsoft.Office.Interop.Excel.dllusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;using Excel = Microsoft.Office.Interop.Excel;using System.Diagnostics;namespace ReadExcel{ class Program { ... 阅读全文
posted @ 2012-10-13 20:58 sirili 阅读(1815) 评论(6) 推荐(0) 编辑
摘要: 1,尽量不要去修改现有的表,这样会对目前的程式造成影响 阅读全文
posted @ 2012-10-13 16:58 sirili 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 看微博玩Win7 学用Win7屏幕键盘2012-03-20 10:07 来源:天极网软件频道 作者:Shiny 责任编辑:杨玲·yesky 评论(1) 小勇最近买了一台预装Win7系统的电脑,除了经常在IT网站学习一些Win7系统的教程和小技巧之外,他还关注了一个特别贴心的“Win7伙伴”,那就是Win7官方微博。 Win7官方微博上有很多关于Win7系统的新闻、实用的小知识小技巧、丰富的Win7桌面主题壁纸、Win7每月的安全更新等等,还有一些轻松的娱乐和游戏信息,有很多使用Win7的朋友在这里交流心得,关注了它就等于多了一个Win7贴身助手。 图示:Win7官网微博 最近小勇在微 阅读全文
posted @ 2012-10-07 16:25 sirili 阅读(505) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7