码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
在Winform获取机器信息IP、MAC、机器名、CPU编号、主硬盘编号
需引入命名空间:using System.Net;using System.Management; 1 /// 2 /// 获取本地IP 3 /// 4 /// 5 public static string Get_UserIP() 6 { 7 s...
分类:Windows程序   时间:2014-12-18 18:25:24    阅读次数:430
android AsyncTask的简单用法
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
IOS Number 处理(int-->NSNumber,NSNumber-->nsinteger,string -->double,CGFloat --> dobule)
1 小结:1)int-->NSNumber:numberWithInt2)NSNumber-->nsinteger:integerValue3)string -->double:initWithString4)CGFloat --> dobule:initWithFloat,decimalobj d...
分类:移动开发   时间:2014-12-18 18:19:02    阅读次数:234
word 进行数据库 获取数据
/**      * Word导出      * @throws DocumentException       */       public void exeportWord() throws DocumentException{     //放到tomcat下       String formName="word";       String pathName=Servlet...
分类:数据库   时间:2014-12-18 17:03:21    阅读次数:210
linq to xml 操作实例
/// /// 拼接xml结构 /// /// public XElement GetListXml(string id) { try { //判断客户端传输过来的是否是int型 int te...
分类:其他好文   时间:2014-12-18 16:54:00    阅读次数:139
SWT中的布局之-----FormLayout(表格式布局)
1.使用marginWidth,marginHeight设置边距这两个属性用来设置容器的左边距和上边距(单位:像素).下面给出一个具体的实例: 1 public class FormLayout1 { 2 public static void main(String[] args) { 3 ...
分类:其他好文   时间:2014-12-18 16:50:12    阅读次数:242
C#-DataView及其用法
主要是这段代码,使用DataView查出一个DATATABLE想要的字段,如果使用LINQ可以很容易做到,但是.NET2.0以下版本就不能用LINQ了,所以还是用这种最好! DataView myDataView = new DataView(table); string[] strComuns =...
分类:Windows程序   时间:2014-12-18 16:47:10    阅读次数:373
Java Filter防止sql注入攻击
原理,过滤所有请求中含有非法的字符,例如:, & invalidsql = new ArrayList(); private static String error = "/error.jsp"; private static boolean debug = false; ...
分类:数据库   时间:2014-12-18 16:44:52    阅读次数:242
android中清空一个表---类似truncate table 表名 这样的功能 android sqlite 清空数据库的某个表
public void clearFeedTable(){ String sql = "DELETE FROM " + FEED_TABLE_NAME +";"; SQLiteDatabase db =dbHelper.getSQLiteDatabase(); db.execSQL(sql);...
分类:移动开发   时间:2014-12-18 16:37:36    阅读次数:208
Jquery easyui datagrid增改删批量处理
新增 删除 保存后台: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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!