2012年10月24日
摘要: #region 绑定参数值 private void BindQuery() { if (!string.IsNullOrEmpty(Request.QueryString["key"])) Text_Key.Text = Request.QueryString["key"]; } #endregion #region 提交搜索 protected void Btn_Search_Click(object sender, EventArgs e) ... 阅读全文
posted @ 2012-10-24 17:56 kakestar 阅读(1470) 评论(0) 推荐(0) 编辑
摘要: private static char[] constant ={ '0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f','g','h','i','j', 'k','l', 阅读全文
posted @ 2012-10-24 15:23 kakestar 阅读(183) 评论(0) 推荐(0) 编辑
2012年10月17日
摘要: // string sql = @"select UserName, IsSystemRoles,PowerDetail from SuperRoles_UserInRole join SuperRoles_Power on//SuperRoles_UserInRole.RoleId=SuperRoles_Power.RoleId and SuperRoles_UserInRole.intCompanyId=SuperRoles_Power.CompanyId //and UserName=@username and FuctionId=@FuctionId and CH... 阅读全文
posted @ 2012-10-17 14:54 kakestar 阅读(126) 评论(0) 推荐(0) 编辑
2012年9月26日
摘要: <script language="javascript" type="text/javascript"> function ckall(e, obj) { if ($(e).attr("checked")!="checked") { $('#' + obj + ">input").removeAttr("checked"); } else { $('#' + obj + ">input").attr 阅读全文
posted @ 2012-09-26 15:20 kakestar 阅读(170) 评论(0) 推荐(0) 编辑
摘要: <tr> <td><%=this.FunctionName %></td> <td> <input id="chk_<%=this.ClientID %>" type="checkbox" onclick="ckall(this,'fun_<%=this.ClientID %>')"/>全选 <span id="fun_<%=this.ClientID %>"> <asp:C 阅读全文
posted @ 2012-09-26 11:31 kakestar 阅读(270) 评论(0) 推荐(0) 编辑
2012年9月21日
摘要: <script language="javascript" type="text/javascript"> function ckall(sender) { var rep = document.getElementById("Rep_System"); var ckall = document.getElementsByTagName("input"); for (var i = 0; i < ckall.length; i++) { if (ckall[i].type == "che 阅读全文
posted @ 2012-09-21 16:54 kakestar 阅读(218) 评论(0) 推荐(0) 编辑
2012年9月14日
摘要: c#:View Code 1 private void RpTypeBind() 2 {//GetQuestionTypeAndCount() 返回一个datatable 3 this.rptypelist.DataSource = LiftQuestionCtr.GetQuestionTypeAndCount(); 4 this.rptypelist.DataBind(); 5 } 6 protected void rptypelist_Ite... 阅读全文
posted @ 2012-09-14 11:06 kakestar 阅读(129) 评论(0) 推荐(0) 编辑
2012年9月12日
摘要: SuperRoles.Model.SuperRoles_UesrRoles user = new SuperRoles.Model.SuperRoles_UesrRoles(); string companyid = Request.QueryString["companyid"]; string name = Request.QueryString["UserName"]; foreach (Control item in this.rep_user.Controls) { CheckBox ck = (CheckBox)item.FindContro 阅读全文
posted @ 2012-09-12 10:31 kakestar 阅读(1793) 评论(0) 推荐(1) 编辑