摘要: ASPX 优点: 通过上面小小的对比,不难看出,与ASP.NET MVC紧密集成,对于以往ASP.NET开发人员有更好体验。其实它还有其他几优点: ●智能感应 ●能选择其它语言的 CodeDom provider (例如: C#, VB.NET, F#, Boo, Nemerle) ●立即编译或预编 阅读全文
posted @ 2016-08-04 11:23 注定likeyou 阅读(4350) 评论(0) 推荐(1) 编辑
摘要: 可见(visible)XML文件:android:visibility="visible"Java代码:view.setVisibility(View.VISIBLE);不可见(invisible)XML文件:android:visibility="invisible"Java代码:view.set... 阅读全文
posted @ 2016-01-26 15:01 注定likeyou 阅读(247) 评论(0) 推荐(0) 编辑
摘要: //获取应用程序的当前工作目录。 String path1 = System.IO.Directory.GetCurrentDirectory();//获取程序的基目录。String path2 = System.AppDomain.CurrentDomain.BaseDirectory;//获取和... 阅读全文
posted @ 2016-01-11 15:09 注定likeyou 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 判断两个String是否相等不能直接用== 或!=,需要用equals()判断,若相等,则返回1判断TextView中文字是否相等:TextView A,B;if (A.getText().toString.equals(B.getText().toString())) { //A=B;}else... 阅读全文
posted @ 2015-11-26 10:06 注定likeyou 阅读(21977) 评论(1) 推荐(1) 编辑
摘要: SQLite特点1.轻量级使用 SQLite 只需要带一个动态库,就可以享受它的全部功能,而且那个动态库的尺寸想当小。2.独立性SQLite 数据库的核心引擎不需要依赖第三方软件,也不需要所谓的“安装”。3.隔离性SQLite 数据库中所有的信息(比如表、视图、触发器等)都包含在一个文件夹内,方便管... 阅读全文
posted @ 2015-10-24 10:07 注定likeyou 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 图片资源图片资源是简单的Drawable资源,目前Android支持的图片格式有:gif、png、jpg等。我们只需要把图片资源放置到\res\drawable目中,那么在编译后的R.java类中就会生成图片资源的资源ID注:Android中drawable中的资源名称有约束,必须是: [a-z0-... 阅读全文
posted @ 2015-10-24 09:37 注定likeyou 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 前台代码 ListView 中较简单但又非常方便的ArrayAdapter private ListView list1; private ArrayAdapter adapter; adapter = new Arra... 阅读全文
posted @ 2015-10-23 10:44 注定likeyou 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1、解决方法:An error occurred on the server when processing the URL. Please contact the system administrator在WINDOWS7或SERVER2008上安装了IIS7.5,调试ASP程序时出现以下错误: ... 阅读全文
posted @ 2015-10-21 13:51 注定likeyou 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 解中文乱码string str1 = "ÖлªÈËÃñ¹²ºÍ¹ú";//文字自己的编码Encoding ecSelf = Encoding.GetEncoding("Unicode");byte[] btArr = ecSelf.GetBytes(name);//需要转成了编码Encoding ... 阅读全文
posted @ 2015-09-02 10:07 注定likeyou 阅读(306) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-08-21 13:48 注定likeyou 阅读(270) 评论(0) 推荐(0) 编辑