上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 40 下一页
摘要: Reapter 控件 要先绑定数据后才能取到 Reapter里面的控件 阅读全文
posted @ 2013-04-10 14:55 xust 阅读(128) 评论(0) 推荐(0)
摘要: DataTable dt = GetKeywordsStatistic(nick, campaign_id, adgroup_id, beginTime, endTime); DataRow dr = dt.Select(string.Format("keyword_id = {0}", Convert.ToInt64(EnumKeywordId.NoSearch))).SingleOrDefault(); DataTable dtRes = dt.Clone(); //复制结构 DataTable dtRes = dt.Cop... 阅读全文
posted @ 2013-04-10 12:06 xust 阅读(227) 评论(0) 推荐(0)
摘要: 使用LINQ to Entities一不小心就会碰上类似的错误:引用内容。LINQ to Entities 不识别方法“XX”,因此该方法无法转换为存储表达式总结了下,出现这种错误情形大体分为两种,下边分别举例并说下解决方法。情形一报错代码:复制内容到剪贴板程序代码string age = "20";var query = from item in context.Peoplewhere item.Age == int.Parse(age)select item;这边age是一个外部值,试图中LINQ to Entities中类型转化,不支持,所以报错,只需在LINQ to 阅读全文
posted @ 2013-04-09 11:11 xust 阅读(1669) 评论(0) 推荐(0)
摘要: private static Regex regex = new Regex("<(\\w+?)[ >]", RegexOptions.Compiled); private string GetRootElement(string body){ Match match = regex.Match(body); if (match.Success) { return match.Groups[1].ToString(); } else { throw new TopExcept... 阅读全文
posted @ 2013-04-03 15:02 xust 阅读(609) 评论(0) 推荐(0)
摘要: public static string SignTopRequest(IDictionary<string, string> parameters, string secret, bool qhs) { // 第一步:把字典按Key的字母顺序排序 IDictionary<string, string> sortedParams = new SortedDictionary<string, string>(parameters); IEnumerator<KeyValuePair<string, string>> ... 阅读全文
posted @ 2013-04-03 13:50 xust 阅读(786) 评论(0) 推荐(0)
摘要: //是将实体对象转化为xml文件的过程using System;using System.IO;using System.Xml.Serialization;// This is the class that will be serialized.public class OrderedItem{ public string ItemName; public string Description; public decimal UnitPrice; public int Quantity; public decimal LineTotal; // A custom me... 阅读全文
posted @ 2013-04-03 11:28 xust 阅读(792) 评论(0) 推荐(0)
摘要: //是将xml文件转化为实体对象的过程using System;using System.IO;using System.Xml.Serialization;// This is the class that will be deserialized.public class OrderedItem{ [XmlElement(Namespace = "http://www.cpandl.com")] public string ItemName; [XmlElement(Namespace = "http://www.cpandl.com")] publ 阅读全文
posted @ 2013-04-03 11:20 xust 阅读(607) 评论(0) 推荐(0)
摘要: USE [PGCRM]GO/****** Object: StoredProcedure [dbo].[SupesoftPage] Script Date: 03/29/2013 12:15:26 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO/********************************************************************************** Copyright (C) 2005 141421.com,All Rights Reserved ... 阅读全文
posted @ 2013-03-29 12:23 xust 阅读(200) 评论(0) 推荐(0)
摘要: aspx 页面<asp:Literal ID="litTable" runat="server"></asp:Literal><asp:HiddenField ID="hiddenDailyDetailCount" runat="server" /> <asp:HiddenField ID="hiddenDailyDetailDel" runat="server" /> <script type="text/ja 阅读全文
posted @ 2013-03-26 09:49 xust 阅读(1041) 评论(0) 推荐(0)
摘要: <asp:HiddenField ID="hiddenDailyDetailCount" runat="server" /> 放在模板页中ID: 变成 ctl00_PageBody_hiddenDailyDetailDel 后台取ID hiddenDailyDetailCount.ClientIDName: 变成 ctl00$PageBody$hiddenDailyDetailDel 后台取Name hiddenDailyDetailCount.UniqueID 阅读全文
posted @ 2013-03-22 13:56 xust 阅读(175) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 40 下一页