上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: XmlDocument doc1 = new XmlDocument(); doc1.Load(Server.MapPath("~/etao/IncrementIndex.xml")); //修改商品 XmlNodeList nodes1 = doc1.GetElementsByTagName("outer_id"); bool ismodif = false; foreach (XmlNode xn in nodes1)//遍历任何子节点 { XmlElement xe = (XmlElement)xn;//将子节点类型转换为XmlElement类型 阅读全文
posted @ 2011-07-04 10:31 红鲤鱼与驴与绿鲤鱼 阅读(610) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 分页通用 /// </summary> /// <param name="dt"></param> /// <param name="pageIndex">当前页数</param> /// <param name="pageSize">每页多少条</param> /// <returns></returns> public static DataTable GetPagedTabl 阅读全文
posted @ 2011-06-16 15:00 红鲤鱼与驴与绿鲤鱼 阅读(214) 评论(0) 推荐(0) 编辑
摘要: //当进入网站内页时加载导航相应的样式<script type="text/javascript"> var txtjbo = new Array("", "about", "exhibitors", "visitor", "news"); var objpath = window.location.href; var id = 0; for (var i = 0; i <= txtjbo.length; i++) { if (objpath.toLower 阅读全文
posted @ 2011-05-27 16:57 红鲤鱼与驴与绿鲤鱼 阅读(344) 评论(0) 推荐(0) 编辑
摘要: protected List<TeamWorkInfos> tList = new List<TeamWorkInfos>(); protected void Page_Load(object sender, EventArgs e) { MemberInfo[] mList = GetCacheMembers(1); System.Text.StringBuilder xmlnode = new System.Text.StringBuilder("<?xml version=\"1.0\" encoding=\"utf- 阅读全文
posted @ 2011-05-24 15:22 红鲤鱼与驴与绿鲤鱼 阅读(309) 评论(0) 推荐(0) 编辑
摘要: flash读取xmlFileInfo file = new FileInfo(Server.MapPath("pelist.xml")); XmlTextWriter textWriter = new XmlTextWriter(Server.MapPath("pelist.xml"), Encoding.UTF8); textWriter.WriteStartDocument(); textWriter.WriteStartElement("persons"); if (mList != null) { foreach (Membe 阅读全文
posted @ 2011-05-19 16:52 红鲤鱼与驴与绿鲤鱼 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 背景:实体数组中有多个实体,实体a中name属性值:a,b,c 实体b中name属性值a,c 实体c中name属性值:d根据一个值查找出数组中的所有数据,即:根据a查找出实体a和b放到list中,根据d查找出实体c放到list中//username:即根据某个值//work.Members:实体中的属性(上面的name)protected List<TeamWorkInfos> GetCacheWorkListByusername(string username) { List<TeamWorkInfos> mlist = new List<TeamWorkInf 阅读全文
posted @ 2011-05-19 15:45 红鲤鱼与驴与绿鲤鱼 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 把商品Id累加到cookie的value /// <summary> /// 最近浏览过的商品 /// </summary> /// <returns></returns> protected string GetRecentBrowsing() { StringBuilder sb = new StringBuilder(); if (Request.Cookies["only"] != null) {//拆分cookie的值,取到浏览过的商品id string[] ntw=Request.Cookies["onl 阅读全文
posted @ 2011-05-12 08:52 红鲤鱼与驴与绿鲤鱼 阅读(948) 评论(0) 推荐(0) 编辑
摘要: select b.industry, b.loginname,a.enddate,a.verify, a.userid,a.position,b.companyname from c_job as a left join u_userinfo as b on a.UserID=b.UserID where a.id in (select max(id) from c_job group by UserID) and a.userid in (SELECT DISTINCT b.UserID FROM dbo.U_UserInfo INNER JOIN dbo.C_Job ON b.UserID 阅读全文
posted @ 2011-05-05 10:50 红鲤鱼与驴与绿鲤鱼 阅读(344) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取分页字符串(通用) /// </summary> /// <param name="page">当前页码</param> /// <param name="pageSize">页面大小</param> /// <param name="Url">分页链接</param> /// <param name="strWhere">查询条件</param> /// 阅读全文
posted @ 2011-04-27 13:42 红鲤鱼与驴与绿鲤鱼 阅读(359) 评论(1) 推荐(0) 编辑
摘要: 我的解决方法是:重新建页面,把原来的页面拷到新页面 阅读全文
posted @ 2011-04-21 11:30 红鲤鱼与驴与绿鲤鱼 阅读(165) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页