摘要:
SharePoint2010沙盒解决方案基础开发——关于TreeView树形控件读取列表数据(树形导航)的webpart开发及问题1、实现效果如下:点击各个节点进入相应的链接2、测试列表:3、创建解决方案及webpart,代码如下所示using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint 阅读全文
摘要:
com.han.WeatherThis is a UDP network program. The following presents a multicast datagram program, which is actually a new technology. The multicast datagram socket class is useful for sending and receiving IP multicast packets. A MulticastSocket is a (UDP) DatagramSocket, with additional capabiliti 阅读全文
摘要:
有时看程序运行瓶颈,需要对某一个方法监测其运行的时间,可以用结束时间来减去开始时间来解决,当然,要取毫秒Java取毫秒:Date d = new Date();SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SS");String str=sdf.format(d);也可以用:Date dt= new Date();
Long time= dt.getTime();//这就是距离1970年1月1日0点0分0秒的毫秒数
System.out.println(System.currentTimeMil 阅读全文