摘要: SELECT * FROM gCms_IndicatorFirm WHERE datediff(month,[PostDate],getdate())=0 阅读全文
posted @ 2012-02-20 14:32 红鲤鱼与驴与绿鲤鱼 阅读(181) 评论(1) 推荐(0) 编辑
摘要: void objTimer_Elapsed(object sender, ElapsedEventArgs e) { GlenetCms.UI.GetInfo.InsertInfo(); } void Application_Start(object sender, EventArgs e) { //在应用程序启动时运行的代码 System.Timers.Timer timer = new System.Timers.Timer(1000 * 3600);//执行间隔时间,单位为毫秒 ... 阅读全文
posted @ 2012-01-11 16:30 红鲤鱼与驴与绿鲤鱼 阅读(263) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取整个页面内容 /// </summary> /// <param name="url"></param> /// <returns></returns> public static string GetPage(string url,string type) { HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse ... 阅读全文
posted @ 2012-01-11 15:32 红鲤鱼与驴与绿鲤鱼 阅读(207) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取字符串中指定字符间的字符串 /// </summary> /// <param name="str">要截取的字符串</param> /// <param name="start">开始字符串</param> /// <param name="last">结束字符串</param> /// <param name="n">类型</param> /// < 阅读全文
posted @ 2012-01-11 15:31 红鲤鱼与驴与绿鲤鱼 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: protected System.Drawing.Image ReturnImage(string strPhotoPath) { FileStream fstream = new FileStream(strPhotoPath, FileMode.OpenOrCreate, FileAccess.Read); byte[] byData = new byte[fstream.Length]; fstream.Read(byData, 0, System.Convert.ToInt32(fstream.Lengt... 阅读全文
posted @ 2011-11-02 14:58 红鲤鱼与驴与绿鲤鱼 阅读(330) 评论(0) 推荐(0) 编辑
摘要: function RefreshPage(id) { parent.document.getElementById(id).click();}弹出框关闭后调用的方法id为父页面button的id<input type="button" style="display:none" id="duoduo" name="duoduo" onclick="document.execCommand('refresh',false,0)" /> 阅读全文
posted @ 2011-10-17 11:23 红鲤鱼与驴与绿鲤鱼 阅读(286) 评论(0) 推荐(0) 编辑
摘要: DirectoryInfo dinfo = new DirectoryInfo(Server.MapPath("~/etao/item/")); FileInfo[] files = dinfo.GetFiles("*.xml"); //读取item文件夹下所有文件名 FileInfo file = new FileInfo(Server.MapPath("~/etao/FullIndex.xml")); XmlTextWriter textWriter = new XmlTextWriter(Server.MapPath(" 阅读全文
posted @ 2011-07-11 15:32 红鲤鱼与驴与绿鲤鱼 阅读(987) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 删除商品xml提交动作 /// </summary> /// <param name="ids">id集合</param> public void etao_delProductXml(string ids) { XmlDocument doc1 = new XmlDocument(); doc1.Load(Server.MapPath("~/etao/IncrementIndex.xml")); XmlNodeList nodes1 = doc1.GetElements 阅读全文
posted @ 2011-07-04 10:39 红鲤鱼与驴与绿鲤鱼 阅读(202) 评论(0) 推荐(0) 编辑
摘要: XmlDocument xml = new XmlDocument(); xml.Load(Server.MapPath("~/etao/IncrementIndex.xml")); XmlNode item_ids = xml.GetElementsByTagName("item_ids")[0]; XmlElement newElement = xml.CreateElement("outer_id"); newElement.SetAttribute("action", "upload") 阅读全文
posted @ 2011-07-04 10:34 红鲤鱼与驴与绿鲤鱼 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑