上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 35 下一页
摘要: //动态链接库中PvsApiIfCtrl.Cls.Cls_Public类有一变量 private static string key="abcd";//下面通过反射的技术修改和获取值//设置key public static void updatePalmKey(string key = "1234567890123456") { BindingFlags flag = BindingFlags.Static | BindingFlags.NonPublic; FieldInfo f_key = typeof(PvsApiIfCtrl.... 阅读全文
posted @ 2013-08-21 12:01 kuailewangzi1212 阅读(4291) 评论(2) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Runtime.InteropServices;usingSystem.Windows.Forms;namespaceYL.Code{publicclassutil{[DllImport("user32.dll",EntryPoint="FindWindow",CharSet=CharSet.Auto)]privateexternstaticIntPtrFindWindow(s 阅读全文
posted @ 2013-08-20 17:59 kuailewangzi1212 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure go--插入 insert into opendatasource('Microsoft.jet.oledb.4.0','data source=E:\temp\test.mdb;user id=admin;password=;')...[test](name) select 'mxh' 阅读全文
posted @ 2013-08-19 09:39 kuailewangzi1212 阅读(349) 评论(0) 推荐(0) 编辑
摘要: //自定义视图引擎的实质是把数据模型(moudle)和模板(View)转换成html页面,输出到客户端public class MyView:IView { string _viewPath; public MyView(string viewPath) { this._viewPath = viewPath; } public void Render(ViewContext viewContext, System.IO.TextWriter writer) { ... 阅读全文
posted @ 2013-08-18 18:56 kuailewangzi1212 阅读(253) 评论(0) 推荐(0) 编辑
摘要: public class CustomerRoute : RouteBase { //从路径中解析出controller、action以及其他参数,创建RouteData(其中包括HttpHandler),然后调用HttpHandler处理请求 public override RouteData GetRouteData(System.Web.HttpContextBase httpContext) { var virtualPath = httpContext.Request.AppRelativeCurrentExecutio... 阅读全文
posted @ 2013-08-18 18:43 kuailewangzi1212 阅读(420) 评论(0) 推荐(0) 编辑
摘要: alter procedure pro_restoredatabase(@fname varchar(1000)) as /* execute pro_restoredatabase 'd:\admin2013817-0人.bak' */ begin--RESTORE FILELISTONLY from disk=@fname if db_id('YLBXTemp') is null begin create database YLBXTemp end restore database YLBXTemp from disk=@fname with replace 阅读全文
posted @ 2013-08-17 20:22 kuailewangzi1212 阅读(143) 评论(0) 推荐(0) 编辑
摘要: string[] names = { "aa","bb","cc","dd"}; /* IEnumerable query = from s in names where s.Length == 2 orderby s select s.ToUpper(); */ IEnum... 阅读全文
posted @ 2013-08-11 17:01 kuailewangzi1212 阅读(243) 评论(0) 推荐(0) 编辑
摘要: //.net 1.0写法 /*delegate bool MyMethod(string s); bool myMethod(string s) { return s.IndexOf("abc") >= 0; } MyMethod m1 = new MyMethod(myMethod); List l1 = l.FindAll(m1); */ ... 阅读全文
posted @ 2013-08-11 16:24 kuailewangzi1212 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 在List中方法FindAll方法,反编译后的代码如下:public List FindAll(Predicate match) { if (match == null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match); } List list = new List(); for (int i = 0; i l = new List();l.Add("abc... 阅读全文
posted @ 2013-08-11 15:25 kuailewangzi1212 阅读(407) 评论(0) 推荐(0) 编辑
摘要: use [你的数据库名]EXEC sp_changedbowner 'sa' 阅读全文
posted @ 2013-08-09 13:04 kuailewangzi1212 阅读(462) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 35 下一页