private void GetSafeZhuan() { CommonDao<Safezhuan> sugmgr = new CommonDao<Safezhuan>(); RepeaterSafeZhuanTi.DataSource = sugmgr.FindAll(); RepeaterSafeZhuanTi.DataBind(); }
protected void btn2_Clik(object sender, CommandEventArgs e) { CommonDao<HealthIPAddress> ipmgr = new CommonDao<HealthIPAddress>(); IList<HealthIPAddress> listhealthip = ipmgr.FindAll(); int count1 = 0; string clientIP = HttpContext.Current.Request.UserHostAddress.ToString(); count1 = int.Parse(ipmgr.GetTotalCount(" style='health' and left(IPAddress, len(IPAddress)-2)='" + ReturnIP(clientIP) + "'")); if (count1 > 0) { Response.Redirect("View/Default.aspx"); } else { MsgShow("对不起,该功能未对您开通。"); } }