gguowang

SqlServer 、API编程、Asp.Net,Winform.......

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年6月18日

摘要: View Code stringfile=Server.MapPath("Library/现场服务商评价日报.xls");Workbookworkbook=newWorkbook(file);HtmlSaveOptionsoption=newHtmlSaveOptions(SaveFormat.Html);System.IO.MemoryStreamstream=newSystem.IO.MemoryStream();workbook.Save(stream,SaveFormat.Html);stringhtml=System.Text.Encoding.UTF8.GetS 阅读全文
posted @ 2012-06-18 18:19 gguowang 阅读(890) 评论(0) 推荐(0) 编辑

2011年5月10日

摘要: 问题1: 找不到域控制器 解决方法:步骤1.这是可能是没有启用 高级TCP/IP设置上的NetBIOS步骤2.把Windows xp 系统的DNS 地址设为域服务器的IP地址;步骤3.在命令提示符里运行 ipconfig/registerdns;问题2:加入域时,找不到网络路径步骤1. 检查TCP/IP Net BIOS 服务,使之处于启动状态;步骤2. 检查本地连接属性里 Microsoft网络客户端,使之处于勾选状态 阅读全文
posted @ 2011-05-10 23:14 gguowang 阅读(416) 评论(0) 推荐(0) 编辑

2011年3月2日

摘要: 最近同事想要学习WCF,于是我从以前的项目中抽提了一个简单的例子。该例子分为五个部分:Host:服务器端,只是提供服务,用控制台程序实现的;IService:服务契约,要随WCF客户端分发的一个类库,是WCF服务向外公布的服务接口的集合;Service:服务实现,是服务的主体,驻留WCF服务器端,并通过接口向WCF客户端提供服务的类库;Provider:服务代理,WCF客户端通过调用它来间接调用到WCF服务;Client:客户端,WCF服务的使用者;服务器端Host代码如下:using System;using System.Collections.Generic;using System.L 阅读全文
posted @ 2011-03-02 13:34 gguowang 阅读(1647) 评论(5) 推荐(3) 编辑

2010年7月13日

摘要: AR 复合主键 阅读全文
posted @ 2010-07-13 17:54 gguowang 阅读(473) 评论(0) 推荐(0) 编辑

2010年4月15日

摘要: 1. session过期后如果在iframe里操作就会返回到Login.aspx,可是这个Login.aspx页面还在iframe里面如果再次登陆就会出现iframe嵌套的现象。Google了好半天,终于得到了一些提示,原来这个问题我们可以这样来解决:Response.Write(@"<script type='text/javascript'>window.top.location ... 阅读全文
posted @ 2010-04-15 17:14 gguowang 阅读(435) 评论(1) 推荐(0) 编辑

2009年4月16日

摘要: 今天去给客户演示软件呢,突然发现程序启动不了了 !!! ???跳出来一个错误:unable to start debugging on the web server.the web server could not find the requested resource即:无法启动Web服务器。Web服务器无法找到请求的资源 !嗡 !!!头大了 !!昨天刚弄好的程序怎么就不行了呢 ?后来在客户那里... 阅读全文
posted @ 2009-04-16 13:38 gguowang 阅读(2381) 评论(0) 推荐(1) 编辑

2008年10月14日

摘要: 如下代码是添加一个虚拟节点以便让树的每一个节点显示为有子节点的形式,该树的节点是由Microsoft.Web.UI.WebControls.TreeNode扩展而来如下是扩展代码: /// <summary> /// Function:Extend the attributes of the TreeNode /// Refactor:Aricous /// Refactor date... 阅读全文
posted @ 2008-10-14 14:08 gguowang 阅读(1877) 评论(2) 推荐(0) 编辑

2008年3月16日

摘要: 一个二维数组内的数据如下排列1a 1b null null null null2a null null null null null3a 3b null null null null4a null null null null null5a null null null null null6a null null null null null7a 7b null null null null如何用... 阅读全文
posted @ 2008-03-16 15:37 gguowang 阅读(562) 评论(0) 推荐(0) 编辑

2007年12月13日

摘要: 用.Net Remoting事件实现广播,可以用来让分布是应用程序加强同步 阅读全文
posted @ 2007-12-13 22:15 gguowang 阅读(1850) 评论(5) 推荐(0) 编辑

2007年12月12日

摘要: C# winform用webClient上传下载文件 阅读全文
posted @ 2007-12-12 13:38 gguowang 阅读(1994) 评论(0) 推荐(2) 编辑