龙须面

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

2012年9月3日

摘要: 折腾我一早上,代码: 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="userAdmin.aspx.cs" Inherits="userAdmin" %> 2: 3: <!DOCTYPE HTML"> 4: 5: <html> 6: <head runat="server"> 7: ... 阅读全文
posted @ 2012-09-03 13:43 木子小黑 阅读(1241) 评论(0) 推荐(0) 编辑

2012年9月2日

摘要: 问题出现原因: 想着下载主要用chome浏览器,就把IE卸载了(IE8),但是重启之后,提示”iertutil.dll丢失…………“ 解决办法: 1、随便下载了一iertutil.dll,直接放到c:\windows\system32中,但是提示“无法定位序数 681于动态链接库 iertutill.dll上”。 2、网上一查才知道,居然是版本不对(IE版本与这个iertutil.dl版本是对应的... 阅读全文
posted @ 2012-09-02 14:08 木子小黑 阅读(458) 评论(0) 推荐(0) 编辑

2012年8月26日

摘要: 为了测试TextBox是否为空,使用(xxxx == "")是不行的,可以使用(xxxx.length == 0)就准确的多! 阅读全文
posted @ 2012-08-26 19:47 木子小黑 阅读(155) 评论(0) 推荐(0) 编辑

2012年8月25日

摘要: 在web.config中配置一次,然户在所有的页面都可以使用这个连接字符串,做到后期维护的最小改动。 1.在web.config中加入connectionStrings节: <connectionStrings> <add name="ConnectionString" connectionString="Data Source=yldx;Persist Security Info=True;U... 阅读全文
posted @ 2012-08-25 20:49 木子小黑 阅读(158) 评论(0) 推荐(0) 编辑

2012年7月4日

摘要: 上图就是android应用程序的一个生命周期,需要明确的一点是,在stoped阶段,没有任何代码执行!通常情况下,不需要实现destroyed的方法来清理系统的垃圾以及其它操作,但是在下列情况时,要实现它: activity includes background threads that you created duringonCreate()or other other long-running resources that could potentially leak memory if not properly closed, you should kill them durin... 阅读全文
posted @ 2012-07-04 13:51 木子小黑 阅读(150) 评论(0) 推荐(0) 编辑

摘要: 1、Does not crash if the user receives a phone call or switches to another app while using your app.Does not consume valuable system resources when the user is not actively using it.Does not lose the user's progress if they leave your app and return to it at a later time.Does not crash or lose th 阅读全文
posted @ 2012-07-04 13:48 木子小黑 阅读(115) 评论(0) 推荐(0) 编辑

摘要: Build target:将来应用程序将要运行在那个系统版本上min sdk version:使用的api版本,看看google的解释:1、Select a build target. This is the platform version against which you will compile your app. We recommend that you select the latest version possible. You can still build your app to support older versions, but setting the build . 阅读全文
posted @ 2012-07-04 11:34 木子小黑 阅读(3120) 评论(0) 推荐(0) 编辑

2012年6月29日

摘要: 1 import java.io.FileInputStream; 2 import java.io.FileOutputStream; 3 import java.util.Properties; 4 5 public class Property { 6 public static void main(String[] args) { 7 Properties p = new Properties(); 8 int counter = 1; 9 try {10 p.load(new FileInputStr... 阅读全文
posted @ 2012-06-29 18:24 木子小黑 阅读(199) 评论(0) 推荐(0) 编辑

摘要: 1 import java.util.Enumeration; 2 import java.util.Hashtable; 3 4 class TT { 5 private String name = null; //name和age是作为键的 6 private Integer age = 0; 7 8 public TT(String name,int age) { //构造函数没有返回值 9 this.name = name;10 this.age = age;11 }12 /*13 * 要用对象作为键,就要... 阅读全文
posted @ 2012-06-29 15:18 木子小黑 阅读(199) 评论(0) 推荐(0) 编辑

2012年6月28日

摘要: 1 /* 2 * 在编写代码之前一定要做好类的规划 3 */ 4 class Productor implements Runnable { 5 Cache c = null; 6 Productor(Cache c) { 7 this.c = c; 8 } 9 @Override10 public void run() {11 // TODO Auto-generated method stub12 int i = 1;13 while(true) {14 i... 阅读全文
posted @ 2012-06-28 11:57 木子小黑 阅读(157) 评论(0) 推荐(0) 编辑