posted @ 2018-02-19 19:45 火冰·瓶 阅读(124) 评论(0) 推荐(0)
摘要:
public static class XSerializer { /// /// 将对象序列化为xml字符串 /// /// 类型 /// 对象 public static string ObjectToXml(T t) where T : class { ... 阅读全文
摘要:
private static void Log(string content, string fileName="log.txt") { string logsPath = AppDomain.CurrentDomain.BaseDirectory + "\\App_Code\\logs\\"; string fil... 阅读全文
posted @ 2018-02-19 19:44 火冰·瓶 阅读(156) 评论(0) 推荐(0)
摘要:
public static string HttpGet(string Url, string postDataStr) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url + (postDataStr == "" ? "" : "?") + postDataSt... 阅读全文
posted @ 2018-02-19 09:58 火冰·瓶 阅读(124) 评论(0) 推荐(0)
摘要:
private string MD5(string str) { byte[] result = Encoding.Default.GetBytes(str); //tbPass为输入密码的文本框 MD5 md5 = new MD5CryptoServiceProvider(); byt... 阅读全文
posted @ 2018-02-19 09:54 火冰·瓶 阅读(114) 评论(0) 推荐(0)
摘要:
/// /// 10位时间戳转为C#格式时间 /// /// /// public static DateTime ConvertStringToDateTime(string timeStamp) ... 阅读全文
posted @ 2018-02-19 09:53 火冰·瓶 阅读(543) 评论(0) 推荐(0)
摘要:
记录中 参考: https://www.cnblogs.com/songxingzhu/p/7399991.html https://www.cnblogs.com/goodfulcom/p/7624674.html https://docs.microsoft.com/en-us/dotnet/c 阅读全文
posted @ 2018-02-17 00:14 火冰·瓶 阅读(178) 评论(0) 推荐(0)
摘要:
使用开源的类库Newtonsoft.Json(下载地址http://json.codeplex.com/)。下载后加入工程就能用。通常可以使用JObject, JsonReader, JsonWriter处理。这种方式最通用,也最灵活,可以随时修改不爽的地方。 (1)使用JsonReader读Jso 阅读全文
posted @ 2018-02-16 23:20 火冰·瓶 阅读(172) 评论(0) 推荐(0)
摘要:
ext3.0之前都是这样来提交:var responsea = Ext.lib.Ajax.getConnectionObject().conn; responsea.open("POST", your url,false); responsea.send(null);alert("返回来的数据为:"+responsea.responseText);ext3之后好像不能这样提交了,这时候需要引入一个... 阅读全文
posted @ 2010-11-30 10:54 火冰·瓶 阅读(6452) 评论(0) 推荐(0)
摘要:
FusionCharts可以在点上定义钻取,实现各种link功能,包括:(1)同一窗口实现钻取(2)新窗口中实现钻取(3)在指定的frame中实现钻取(4) 在弹出窗口中实现钻取(5) 触发js的函数一. 同一窗口实现钻取在set上定义link,如:<set ... value='2235' ... link='ShowDetails.asp%3FMonth%3DJan' ...>XM... 阅读全文
posted @ 2010-09-05 21:19 火冰·瓶 阅读(1807) 评论(0) 推荐(0)
摘要:
详见http://www.cnblogs.com/fromearth/archive/2009/05/27/1490833.html 阅读全文
posted @ 2010-09-01 11:24 火冰·瓶 阅读(173) 评论(0) 推荐(0)
浙公网安备 33010602011771号