08 2012 档案

摘要: 阅读全文
posted @ 2012-08-19 22:01 Kenyep 阅读(926) 评论(0) 推荐(0)
摘要:Javascript中也可以获取到QueryString传递过来的值,使用方法如下:这是一个获取函数 //js获取QueryString function QueryString(item) { var sValue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)", "i")) return sValue ? sValue[1] : sValue }调用这个函数即可:var typeID = QueryString(&q 阅读全文
posted @ 2012-08-17 19:43 Kenyep 阅读(248) 评论(0) 推荐(0)
摘要:有时前台的DropDownList控件数据来自于数据源绑定控件,绑定数据源控件后我们还想继续添加项可以这样做:List<Model.Unit> model = new List<Model.Unit>();model=unitBll.GetList();ddlUnit.DataTextField = "unit";ddlUnit.DataValueField = "unitID";ddlUnit.DataSource = model; //绑定数据源ddlUnit.DataBind();ddlUnit.Items.Insert(0 阅读全文
posted @ 2012-08-01 17:40 Kenyep 阅读(7570) 评论(0) 推荐(0)