需引入命名空间:using System.Net;using System.Management; 1 /// 2 /// 获取本地IP 3 /// 4 /// 5 public static string Get_UserIP() 6 { 7 s...
public class WeatherAsyncTask extends AsyncTask { public TextView t1=null; public WeatherAsyncTask(TextView t) { t1=t; } @Override protected String...
分类:
移动开发 时间:
2014-12-18 18:25:16
阅读次数:
168
1 小结:1)int-->NSNumber:numberWithInt2)NSNumber-->nsinteger:integerValue3)string -->double:initWithString4)CGFloat --> dobule:initWithFloat,decimalobj d...
分类:
移动开发 时间:
2014-12-18 18:19:02
阅读次数:
234
/**
* Word导出
* @throws DocumentException
*/
public void exeportWord() throws DocumentException{
//放到tomcat下
String formName="word";
String pathName=Servlet...
分类:
数据库 时间:
2014-12-18 17:03:21
阅读次数:
210
/// /// 拼接xml结构 /// /// public XElement GetListXml(string id) { try { //判断客户端传输过来的是否是int型 int te...
分类:
其他好文 时间:
2014-12-18 16:54:00
阅读次数:
139
1.使用marginWidth,marginHeight设置边距这两个属性用来设置容器的左边距和上边距(单位:像素).下面给出一个具体的实例: 1 public class FormLayout1 { 2 public static void main(String[] args) { 3 ...
分类:
其他好文 时间:
2014-12-18 16:50:12
阅读次数:
242
主要是这段代码,使用DataView查出一个DATATABLE想要的字段,如果使用LINQ可以很容易做到,但是.NET2.0以下版本就不能用LINQ了,所以还是用这种最好! DataView myDataView = new DataView(table); string[] strComuns =...
原理,过滤所有请求中含有非法的字符,例如:, & invalidsql = new ArrayList(); private static String error = "/error.jsp"; private static boolean debug = false; ...
分类:
数据库 时间:
2014-12-18 16:44:52
阅读次数:
242
public void clearFeedTable(){ String sql = "DELETE FROM " + FEED_TABLE_NAME +";"; SQLiteDatabase db =dbHelper.getSQLiteDatabase(); db.execSQL(sql);...
分类:
移动开发 时间:
2014-12-18 16:37:36
阅读次数:
208
新增 删除 保存后台:public class TestInfo { public string ID { get; set; } public string BrcName { get; set; } public string BrcComment { get; set; }}public J....
分类:
Web程序 时间:
2014-12-18 16:33:28
阅读次数:
255