2013年3月28日

摘要: XSD简易元素 例子:这是一些 XML 元素:<lastname>Smith</lastname><age>28</age><dateborn>1980-03-27</dateborn>这是相应的简易元素定义:<xs:element name="lastname" type="xs:string"/><xs:element name="age" type="xs:integer"/><xs:element name 阅读全文
posted @ 2013-03-28 14:30 hunterqian 阅读(309) 评论(0) 推荐(0)

2013年1月17日

摘要: 首先应确认本地Sql 的Configation Manager中的Sql Service服务运行正常。如果不能显示Service请安装R2 Sp1补丁。然后进入,选择Surface Area Configuration For Service and Connections重新启动Service.接着使用下图Server Name 登录Sql一般按照上面的顺序操作就可解决此issue。但如果还是不能进入Sql并且提示:Cannot connect to SQLEXPRESS.A connection was successfully established with the server, b 阅读全文
posted @ 2013-01-17 00:51 hunterqian 阅读(1356) 评论(0) 推荐(0)

2012年3月23日

摘要: What is ImageGlue?OverviewImageGlue is a toolkit that allows you to create and modify still images. It can be used in .NET desktop applications or in ASP.NET server pages.PointsIf you are drawing onto the Canvas you need to specify where you want your drawing to take place. You do this by giving the 阅读全文
posted @ 2012-03-23 11:31 hunterqian 阅读(479) 评论(0) 推荐(0)

2012年3月22日

摘要: 当要使用文件上传时,如果每次都要使用控件名去saveas的话,代码的编写会很长,如果可以使用遍历的方法的话,则多文件上传可以用一个循环语句完成。 .net使用request.files来表示从客户端回传来的文件。 它的属性有 request.files.count表示上传了几个文件。 用request.files[]就表示原先的 file控件名。所以request.files的属性就是file控件的属性。 httppostedfile表示回传的文件类。因为我们可能要建立一个对象去代表回传的对象。此时可以用 HttpPostedFile f=Request.Files[n]; 阅读全文
posted @ 2012-03-22 15:37 hunterqian 阅读(2576) 评论(3) 推荐(1)

2011年12月2日

摘要: Request.ServerVariables("Url") 返回服务器地址Request.ServerVariables("Path_Info") 客户端提供的路径信息Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径Request.ServerVariables("Path_Translated") 通过由虚拟至物理的映射后得到的路径Request.ServerVariables("Script_Name") 执行 阅读全文
posted @ 2011-12-02 11:30 hunterqian 阅读(207) 评论(0) 推荐(0)
 
摘要: 1. 在ASP.NET中专用属性: 获取服务器电脑名:Page.Server.ManchineName 获取用户信息:Page.User 获取客户端电脑名:Page.Request.UserHostName 获取客户端电脑IP:Page.Request.UserHostAddress 2. 在网络编程中的通用方法: 获取当前电脑名:static System.Net.Dns.GetHostName() 根据电脑名取出全部IP地址:static System.Net.Dns.Resolve(电脑名).AddressList 也可根据IP地址取出... 阅读全文
posted @ 2011-12-02 09:50 hunterqian 阅读(260) 评论(0) 推荐(0)

2011年11月28日

摘要: namespace Barcode{/// <summary>/// Code39:生成39条形码。/// </summary>public class Code39{ //对应码表 private Hashtable Decode; private Hashtable CheckCode; //每个字符间的间隔符 private string SPARATOR="0"; //float WidthUNIT= 0.25f;//宽度单位 mm public int WidthCU = 3; //粗线和宽间隙宽度 public int Widt... 阅读全文
posted @ 2011-11-28 15:21 hunterqian 阅读(2819) 评论(0) 推荐(0)

2011年11月25日

摘要: asp.net下载文件的常用方法//TransmitFile实现下载 //TransmitFile实现下载 protected void Button1_Click1(object sender, EventArgs e) { string strFileName = "三部闲置设备管理系统操作手册IEMS.ppt"; Response.ContentType = "application/x-zip-compressed"; //Response.ContentEnco... 阅读全文
posted @ 2011-11-25 14:57 hunterqian 阅读(376) 评论(0) 推荐(0)

2011年10月17日

摘要: StuctureMap 是一种.NET下的依赖注入框架,希望2.5版早点发布(目前最新是2.4.9)。这篇指南可以帮助您入门。原文地址:http://www.cnblogs.com/darkdawn/archive/2008/09/04/1284018.htmlStructureMap依赖注入基础在大多数ASP.NET WEB应用程序、智能客户端程序、WPF程序中,你都可以通过提供接口,创建可重用的服务。如:你定义一个接口叫ILogger,这个接口声明一组契约,为你的程序记录日志,并且你做了不同的、可重用的实现这个接口的类,如:类DatabaseLogger,把日志记录到数据库中。当有一个对I 阅读全文
posted @ 2011-10-17 15:05 hunterqian 阅读(756) 评论(0) 推荐(0)
 
摘要: jQuery formValidato表单验证插件,它是基于 jQuery类库,实现了js脚本于页面html代码的分离。你可以划分多个校验组,每个组的校验都是互不影响。对一个表单对象,你只需要写一行代码就可 以轻松实现无数种(理论上)脚本控制。目前支持5种大的校验方式,分别是:inputValidator(针对input、textarea、 select控件的字符长度、值范围、选择个数的控制)、compareValidator(提供2个对象的比较,目前可以比较字符串和数值型)、 ajaxValidator(通过ajax到服务器上做数据校验)、regexValidator(提供可扩展的正则表.. 阅读全文
posted @ 2011-10-17 09:41 hunterqian 阅读(175) 评论(0) 推荐(0)