摘要: // 动态调用方法Type p = GetType();object o = Activator.CreateInstance(p);MethodInfo mi = p.GetMethod("方法名");object result = (mi != null) ? mi.Invoke(o, new object[] { context }) : ""; 阅读全文
posted @ 2013-02-28 10:35 厦门海之星 阅读(295) 评论(0) 推荐(0) 编辑
摘要: final WebView wv = (WebView) findViewById(R.id.main_webView1);wv.setVisibility(View.VISIBLE); // 显示这个WebViewwv.requestFocus(); // 如果不设置,则在点击网页文本输入框时,不能弹出软键盘及不响应其他的一些事件。或者给个1秒延迟也行,哈哈final WebView wv = (WebView) findViewById(R.id.main_webView1);new Handler().postDelayed(new Runnable() {public void run 阅读全文
posted @ 2013-02-26 10:35 厦门海之星 阅读(5872) 评论(0) 推荐(0) 编辑
摘要: --查看数据锁SQL语句:SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName FROM sys.dm_tran_locks WHERE resource_type='OBJECT'--解锁SQL语句:KILL spid例如:KILL 51 阅读全文
posted @ 2013-02-25 16:39 厦门海之星 阅读(260) 评论(0) 推荐(0) 编辑
摘要: android.process.media has stoppedandroid.process.media意外停止的解决方法。管理应用程序- 全部 - 媒体存储 - 清除数据管理应用程序- 全部 - 下载管理 - 清除数据参考:http://androidforums.com/g1-support/4000-android-process-media-crash-continual-rebooting.html 阅读全文
posted @ 2013-02-22 13:40 厦门海之星 阅读(1272) 评论(0) 推荐(0) 编辑
摘要: Android源码官网:https://android.googlesource.com下载方法:1、进入https://www.googlesource.com/new-password,使用Google帐号获取一个username和password。2、下载并安装TortoiseGit:https://code.google.com/p/tortoisegit/wiki/Download3、使用TortoiseGit获取Android源码例如:https://android.googlesource.com/a/platform/packages/apps/Browser.git分支:an 阅读全文
posted @ 2013-02-21 09:59 厦门海之星 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 问题描述:CSS样式display: inline-block;在IE6/IE7下无效,换成display: inline;在IE8+又显示异常。解决方案:将该CSS改为display:inline-block;*display:inline;zoom:1;新年快乐,皆大欢喜! 阅读全文
posted @ 2013-02-15 21:25 厦门海之星 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Win8的输入法太难用,实在用不来,还是喜欢Ctrl+Shfit直接切换,可Win8的中文输入法里默认没有“美式键盘”了,晕死,得找个方法给还原出来才行!将以下内容保存为注册表文件“Win8美式键盘.reg”:1 Windows Registry Editor Version 5.002 [HKEY_CURRENT_USER\Keyboard Layout]3 [HKEY_CURRENT_USER\Keyboard Layout\Preload]4 "1"="00000804"5 "2"="d0010804"6 [ 阅读全文
posted @ 2013-01-10 23:09 厦门海之星 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 项目环境:ASP.NET MVC 4部属环境:WIN2008 X64 IIS7异常详细信息:System.Web.HttpException: 请求在此上下文中不可用 解决方案一:把Response、Request、Session写全:System.Web.HttpContext.Current.ResponseSystem.Web.HttpContext.Current.RequestSystem.Web.HttpContext.Current.Session解决方案二:Application_Start代码段中不使用System.Web.HttpContext.Current比如Syste 阅读全文
posted @ 2013-01-06 11:30 厦门海之星 阅读(14716) 评论(2) 推荐(1) 编辑
摘要: 一、页面禁止缓存标签(HTML):1 <head>2 <meta http-equiv="PRAGMA" content="NO-CACHE" />3 <meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />4 <meta http-equiv="EXPIRES" content="0" />5 <meta http-equiv="X-UA-Compatible 阅读全文
posted @ 2012-12-10 14:57 厦门海之星 阅读(6121) 评论(0) 推荐(0) 编辑
摘要: 错误信息:找不到“xxx.xls”。请检查文件名的拼写,并验证文件位置是否正确。如果您正试图从最近使用的文件列表中打开该文件,请确保该文件未被重命名、移动或删除。 详细错误信息:Microsoft Excel 错误堆栈: at Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, Object IgnoreReadOnlyRecom... 阅读全文
posted @ 2012-11-29 14:35 厦门海之星 阅读(1091) 评论(1) 推荐(0) 编辑