05 2012 档案

摘要:GuestBookDataContextctx =newGuestBookDataContext("server=xxx;database=GuestBook;uid=xxx;pwd=xxx");StreamWritersw =newStreamWriter(Server.MapPath("log.txt"),true);ctx.Log = sw;tbGuestBookgb = ctx.tbGuestBooks.Single(b => b.ID ==newGuid(e.CommandArgument.ToString()));ctx.tbGuest 阅读全文
posted @ 2012-05-28 12:52 海底的鱼 阅读(154) 评论(0) 推荐(0)
摘要:.net 1.x 中 我们中规中矩的实现委托 public classdelmethon1 { delegate voidSomedelegate(); public static voidmethod() /// 为了方便:使用static { Somedeleg... 阅读全文
posted @ 2012-05-26 21:14 海底的鱼 阅读(247) 评论(0) 推荐(0)