Loading

摘要: 1.API:http://zh.wikipedia.org/w/api.php2.获取一个词条的内容:http://zh.wikipedia.org/w/api.php?action=parse&format=xml&page=keyWord这个url获取的是一个XML,其中text节点包含的就是关键字对应页面的HTML。具体各个参数什么意思参考API说明。3.查询 返回跟关键字匹配的若干词条的XML:http://zh.wikipedia.org/w/api.php?action=query&list=search&srwhat=text&format 阅读全文
posted @ 2011-07-19 17:31 Agile.Zhou 阅读(405) 评论(0) 推荐(0)
摘要: public class ColorTool { /// <summary> /// 从ARGB转换 /// </summary> /// <param name="color"></param> /// <returns></returns> public static SolidColorBrush FromArgb(string color) { int[] a = new int[4]; int[] b = new int[8]; string rg1 = "#[a-fA-F0-9]{ 阅读全文
posted @ 2011-04-26 11:20 Agile.Zhou 阅读(383) 评论(2) 推荐(0)
摘要: public static voidDataTable2Excel(DataTabledtData, String FileName) { System.Web.UI.WebControls.GridView dgExport = null; //当前对话 System.Web.HttpContext curContext = System.Web.HttpContext.Current; //I... 阅读全文
posted @ 2010-11-01 13:54 Agile.Zhou 阅读(251) 评论(0) 推荐(0)
摘要: function cbxReadOnly(obj) { obj.checked = !obj.checked; }<asp:CheckBox ID="cbx_normal"runat="server" Text="XXXX" onclick="cbxReadOnly(this)" /> 阅读全文
posted @ 2010-09-28 09:42 Agile.Zhou 阅读(240) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///下载按钮///</summary>///<paramname="sender"></param>///<paramn... 阅读全文
posted @ 2010-09-27 11:29 Agile.Zhou 阅读(1463) 评论(0) 推荐(0)
摘要: 参考出处:http://bbs.esrichina-bj.cn/ESRI/thread-59271-1-1.html使用上面提供的方法需要注意的地方:1:url路径可能不对需要自己根据情况调整下。2:有的图层可能需要传入tokenGetUrl方法需要修改private static string GetUrl(PrintArea area, string url,string token) { S... 阅读全文
posted @ 2010-09-26 14:22 Agile.Zhou 阅读(623) 评论(0) 推荐(0)
摘要: 主要通过StoryBoard来控制PlaneProjection的RotationY来实现XAML: <Grid x:Name="LayoutRoot" Background="White" Height="Auto" Width="Auto"> <Grid.Resources> </Grid.Resources> <StackPanel> <... 阅读全文
posted @ 2010-07-19 16:57 Agile.Zhou 阅读(1605) 评论(5) 推荐(0)
摘要: 初始化生成一个堆叠柱状图,点击不同的堆叠部分显示该部分的详情,用柱状图。点击柱状图继续显示详情,用饼图。透明度从0到1的切换效果。BACK按钮,返回上一张Chart。XAML:<UserControl x:Class="Simple.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=... 阅读全文
posted @ 2010-07-02 13:50 Agile.Zhou 阅读(1615) 评论(0) 推荐(1)
摘要: 1.在WEB项目中添加 ADO.NET Entity Model 映射一张表2.添加 DomainServices 类 选择EnableEdit 自动生成insert update delete3.可以在 DomainServices 中自己写Query方法 。。比如加个where (a=> a.name=="zmj")4.注意 完成一步每次都要编译下5.DataContent.Load(D... 阅读全文
posted @ 2010-04-20 17:33 Agile.Zhou 阅读(427) 评论(0) 推荐(0)
摘要: /*总感觉手机上的记事本不好用,要记点隐私的都不行,于是乎就实践一把J2ME,自己写个记事本,主要是带加密功能的。。。。把课本上的东西几乎都涵盖进去了。。。本身没什么技术含量,把commandAction方法的逻辑能清楚就OK了。。。 * To change this template, choose Tools | Templates * and open the template in t... 阅读全文
posted @ 2008-09-09 17:03 Agile.Zhou 阅读(428) 评论(0) 推荐(0)