2011年11月15日
摘要: Ext.form.BasicForm对应一个dom中的form,默认是用ajax提交的,如果的确想回传,可以使用如下方式var myForm = new Ext.form.BasicForm("form-el-id", { onSubmit: Ext.emptyFn, submit: function() { this.getEl().dom.submit(); } });方法:BasicForm( Mixed el, Object config )其中config配置为{baseParams : Object, //请求时的附加参数,格式为{id: '123 阅读全文
posted @ 2011-11-15 22:49 nbfhxy 阅读(260) 评论(0) 推荐(0)
摘要: Ext.form.NumberField继承自Ext.form.TextField,因为Ext.form.TextField虽然强大,但写起来的确还是有点麻烦,后面的类都继承自Ext.form.TextField,没有自定义的方法,属性和事件config定义为{ allowDecimals : Boolean //true allowNegative : Boolean //true baseChars : String //'0123456789' decimalPrecision : Number //精度,默认值2 decimalSeparator : String // 阅读全文
posted @ 2011-11-15 22:25 nbfhxy 阅读(294) 评论(0) 推荐(0)
  2011年6月1日
摘要: asp 数据库连接View Code #region 连接数据库 SqlConnection conn = new SqlConnection(); //conn.ConnectionString = "server=127.0.0.1\\sqlexpress;uid=sa;pwd=0;database=EXTDatabase"; conn.ConnectionString = ConfigurationManager.ConnectionStrings["stringcon"].ConnectionString; if (conn.State == C 阅读全文
posted @ 2011-06-01 15:03 nbfhxy 阅读(216) 评论(0) 推荐(0)