摘要: 翻页控件: 一、定义并发射信号: 一、接收信号: 阅读全文
posted @ 2016-08-15 16:32 菱花淚硃砂 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: # 过滤鼠标滚轮事件 阅读全文
posted @ 2016-08-15 16:25 菱花淚硃砂 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 参考原文:http://www.crifan.com/eclipse_pydev_console_messy_char_for_console_is_utf8/ 通用 rq = urllib.urlopen(url) respHtml = rq.read() respInfo = rq.info() 阅读全文
posted @ 2016-04-05 17:17 菱花淚硃砂 阅读(856) 评论(0) 推荐(0) 编辑
摘要: 一、安装(win7 64) 1、安装lxml,pip install lxml 2、如果安装出错,下载lxml-3.5.0b1.win-amd64-py2.7.exe: 地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml 3、 from lxml i 阅读全文
posted @ 2016-03-12 17:44 菱花淚硃砂 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.freebuf.com/news/special/96763.html 相关资料:http://www.jb51.net/article/65287.htm   1、Python3 win7安装BeautifulSoup BeautifulSoup中文文档:http:// 阅读全文
posted @ 2016-03-02 14:51 菱花淚硃砂 阅读(314) 评论(0) 推荐(0) 编辑
摘要: WebConfigurationManager.AppSettings["weburl"]//要添加引用“System.configuration“ //app.config中要追加以下内容: //<appSettings> // <add key="filePath" value="C:\test\"/> //</appSettings> string path=System.configuration.ConfigurationManager.App... 阅读全文
posted @ 2013-05-03 18:39 菱花淚硃砂 阅读(290) 评论(0) 推荐(0) 编辑
摘要: //方法一 public string Week() { string[] weekdays = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; string week = weekdays[Convert.ToInt32(DateTime.Now.DayOfWeek)]; return week; }//方法二 string weekstr = DateTime.Now.DayOfWeek.ToS 阅读全文
posted @ 2013-05-02 16:57 菱花淚硃砂 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 前台代码:View Code <%@ Register Assembly="WY.Web.Common" Namespace="WY.Web.Common.WebControls" TagPrefix="cc1" %> <cc1:DataGrid ID="DataGrid1" runat="server" AllowCustomPaging="True" onitemdatabound="DataGrid1_ItemDataBound"& 阅读全文
posted @ 2013-05-02 11:22 菱花淚硃砂 阅读(228) 评论(0) 推荐(0) 编辑
摘要: JSView Code <script type="text/javascript"> var id; $('input').live('click',function(){ id=$('input:checked').val(); }); function doRebut(){ //var id=$("input checked").val(); var url="rebutpage.aspx?id="+id+"&name=project"; & 阅读全文
posted @ 2013-04-27 16:11 菱花淚硃砂 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 很多人在处理Response下载文件名是使用这个方法 Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(fileInfo.Name, System.Text.Encoding.UTF8)); 但这个只是针对没有空格和IE的情况下使用。 如果想在FireFox下输出没有编码的文件,并且IE下输出的文件名中空格不为+号,就要多一次判断了。 详细出处参考:http://www.jb51.net/article/34048.htm 阅读全文
posted @ 2013-04-27 11:02 菱花淚硃砂 阅读(211) 评论(0) 推荐(0) 编辑