04 2013 档案
摘要:string strwhere = " IsShow='0' ";c#里的'0','1'对应sqlserver2005中的False,True
阅读全文
摘要:04|06|07|08|for (int i = 0; i < expert.CountryID.Split('|').Length; i++){for (int j = 0; j < chkCountry.Items.Count; j++){if (expert.CountryID.Split('|')[i] == chkCountry.Items[j].Value){chkCountry.Items[j].Selected = true;}}}
阅读全文
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;namespace CSCDF.Web{ public partial class tes...
阅读全文
摘要:/// <summary> /// 获取记录总数 /// </summary> public int GetRecordCount(string strWhere) { StringBuilder strSql = new StringBuilder(); strSql.Append("select count(1) FROM tb_Expert "); if (strWhere.Trim() != "") { strSq...
阅读全文
摘要:/// <summary> /// 分页获取数据列表 /// </summary> public DataSet GetList(int PageSize,int PageIndex,string strWhere) { SqlParameter[] parameters = { new SqlParameter("@tblName", SqlDbType.VarChar, 255),//表明 new SqlParameter("@fldNa...
阅读全文
摘要:CREATE PROCEDURE [dbo].[UP_GetRecordByPage] @tblName varchar(255), -- 表名 @fldName varchar(255), -- 主键字段名 @PageSize int = 10, -- 页尺寸 @PageIndex int = 1, -- 页码 @IsReCount bit = 0, -- 返回记录总数, 非 0 值则返回 @OrderType bit = ...
阅读全文
摘要://获取浏览器版本 string s1=Request.ServerVariables["HTTP_USER_AGENT"]; Response.Write(s1);
阅读全文