Loading

摘要: ORACLE:除去回车符,换行符replace(fa,chr(13),'') ; --- 除去回车符replace(fa,chr(10),'') ; --- 除去换行符 阅读全文
posted @ 2014-03-20 12:03 The Mechanic 阅读(409) 评论(0) 推荐(0) 编辑
摘要: http://walttoney.blog.163.com/blog/static/127685797201051112839328/错误 类型“System.Web.UI.ScriptManager”同时存在于“c:\WINDOWS\assembly\GAC_MSIL \System.Web.Extensions\3.5.0.0__31bf3856ad364e35 \System.Web.Extensions.dll”和“c:\WINDOWS\assembly\GAC_MSIL \System.Web.Extensions\1.0.61025.0__31bf3856ad364e35 \Sys 阅读全文
posted @ 2014-03-13 15:01 The Mechanic 阅读(2202) 评论(0) 推荐(0) 编辑
摘要: 网站开发中,为了保存用户的信息,有时候需要使用session。如果我们在aspx页面中使用Session,只需要Session["key"]=value就可以,获取时使用int userid=Session["userid"],但是在赋值时,我们可能需要判断Session是否为空,是否能转换成int类型。如果只在一处使用Session,那么我们可以直接在aspx页面中操作,修改也只需修改一处。但在操作Session时,可能会在多个页面,如果修改Session,可能需要修改多个页面,这样会非常的繁琐。解决的办法主要有两个,一个是基类页面,添加一个基类页面, 阅读全文
posted @ 2013-12-25 16:17 The Mechanic 阅读(4450) 评论(0) 推荐(0) 编辑
摘要: 1.将字典Dictionary 改为Dictionary,如果是object[] 在调用时某些转换不了2.将OracleDbType类型判断改为数组型 public class BatchHelper { private static readonly string ConnString = System.Configuration.ConfigurationManager.ConnectionStrings["MDBSConnString"].ConnectionString; /// /// 批量插入数据 /// ... 阅读全文
posted @ 2013-12-20 12:18 The Mechanic 阅读(418) 评论(0) 推荐(0) 编辑
摘要: public class BatchHelper { private static readonly string ConnString = System.Configuration.ConfigurationManager.ConnectionStrings["MDBSConnString"].ConnectionString; /// /// 批量插入数据 /// /// 表名称 /// 键-值存储的批量数据:键是列名称,值是该列对应的数据集合 /// pu... 阅读全文
posted @ 2013-12-20 09:53 The Mechanic 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 无论是if($("#id").attr("checked")=="true") 还是 if($("#id").attr("checked")==true)在实际判断的时候都是不可用的,判断不出来,目前就发现if ($("#id").is(":checked"))这个方法判断checkbox是否被选中是行的通的。if ($("#id").is(":checked")) 阅读全文
posted @ 2013-12-15 16:55 The Mechanic 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //调用的方法string action = context.Request.Params["action"];Assembly assembly = Assembly.GetExecutingAssembly();Type type1 = typeof(className);MethodInfo method = type1.GetMethod(action);object obj = Activator.CreateInstance(type1); //参数object[] nums = { context };method.Invoke(obj, nums); 阅读全文
posted @ 2013-12-08 09:50 The Mechanic 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1>页面布局 2>MainActivitypackage com.dail;import android.net.Uri;import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.view.Menu;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget... 阅读全文
posted @ 2013-12-07 16:31 The Mechanic 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 编辑器加载中... 阅读全文
posted @ 2013-05-09 11:20 The Mechanic 阅读(184) 评论(0) 推荐(0) 编辑
摘要: //按照UTF-8进行编码 string tempSearchString1 = System.Web.HttpUtility.UrlEncode("C#中国"); Response.Write(tempSearchString1); Response.Write(HttpUtility.UrlDecode(tempSearchString1)); //按照GB2312进行编码 string tempSearc... 阅读全文
posted @ 2012-09-28 14:36 The Mechanic 阅读(148) 评论(0) 推荐(0) 编辑