
ASP.NET开发
文章平均质量分 64
jetxia
IT行业4年经验
展开
-
认识Web.config文件
认识Web.config文件 Web.config文件是一个XML文本文件,它用来储存 ASP.NET Web 应用程序的配置信息(如最常用的设置ASP.NET Web 应用程序的身份验证方式),它可以出现在应用程序的每一个目录中。当你通过.NET新建一个Web应用程序后,默认情况下会在根目录自动创建一个默认的Web.config文件,包括默认的配置设置,所有的子目录都继承它的配置设置。如果你转载 2006-03-15 09:57:00 · 791 阅读 · 0 评论 -
CodeSmith 4.0如何支持中文
第一步、在Tools-Options中选中Enable unicode support;第二步、在模板文件的CodeTemplate声明中加上ResponseEncoding="UTF-8"属性。 好久没有写东西了。今天动手用CodeSmith写了两个模板文件,解决了自己的一个实际问题:生成数据库中相应表对应的实体类。codeSmith的文档确实写得很好,像我这么不懂英文的人看他的文档都不觉得原创 2007-02-16 08:52:00 · 2571 阅读 · 0 评论 -
设计模式学习记录(设计要求-GRASP模式)
GRASP模式即 通用责任分配软件模式(General Responsibility Assignment Software Patterns),是设计面向对象的解决方案的设计要求或规则,她细分为9种模式,这些模式规则互相平衡制约,我们在设计时要努力满足GRASP的各种要求。9种分类:1、Information Expert 信息专家2、Creator 创造者3、Low cou原创 2007-01-08 21:37:00 · 1321 阅读 · 0 评论 -
获取office版本
Type type;object excel;object version;type=Type.GetTypeFromProgID("Excel.Application");if(type==null)...{ MessageBox.Show("没有安装excel");}else...{ excel= Activator.CreateInstance(type); if原创 2007-01-06 11:11:00 · 2106 阅读 · 0 评论 -
用datagrid 的 Footer实现 添加修改和删除功能
aspx页面中的DataGrid原创 2006-02-23 12:19:00 · 1874 阅读 · 0 评论 -
在线播放器代码大全
<!--google_ad_client = "pub-8490214103805077";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "text_image";google_ad_channel = "";//--><script原创 2006-03-18 11:40:00 · 1479 阅读 · 0 评论 -
合并实现DataGrid多表头 (转自:http://singlepine.cnblogs.com/articles/282990.html)
HTML> HEAD> title>MergeHeadertitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaultClie转载 2006-03-20 16:57:00 · 1242 阅读 · 0 评论 -
一个Proxy 502 Error
昨天在配置一个XP机器的IIS,出现错误,老提示代理错误Proxy 502 Error,调了很长时间,后来一看原来是IE里的设置把->连接->局域网设置->代理服务器 打钩掉就行了原创 2006-03-18 11:31:00 · 4306 阅读 · 0 评论 -
C#实现Web程序调用Windows程序的方法
using System;using System.Windows.Forms;using System.Security.Permissions;[PermissionSet(SecurityAction.Demand, Name="FullTrust")][System.Runtime.InteropServices.ComVisibleAttribute(true)]public cla原创 2006-03-11 08:30:00 · 2605 阅读 · 1 评论 -
c#中实现缩略图
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->private void ShowThumbnail(string oldfile, string newfile, int h, int w) { System.Draw原创 2006-01-25 10:03:00 · 960 阅读 · 0 评论 -
C#导出文件函数
/// /// 导出文件类型 /// public enum FileType { /// /// Excel文档 /// Excel, /// /// Html文件 ///原创 2006-01-25 12:02:00 · 2196 阅读 · 0 评论 -
C#操作IIS代码
//在做系统开发的过程中,我们经常会遇到用asp.net来操作IIS,//如新建虚拟目录、更改虚拟目录的属性、删除虚拟目录等操作,现在分析如下://假如虚拟目录名为"Webtest",先在项目中引用 //System.DirectoryServices.dllusing System;using System.DirectoryServices;using System.Collection原创 2006-01-25 10:07:00 · 2758 阅读 · 0 评论 -
检测远程URL是否存在的三种方法
<!--google_ad_client = "pub-8490214103805077";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "text_image";google_ad_channel = "";//--><script转载 2006-03-11 08:27:00 · 1952 阅读 · 0 评论 -
C#中事件处理的个人体会
事件是对象发送的消息,以发信号通知操作的发生。操作可能是由用户交互(例如鼠标单击)引起的,也可能是由某些其他的程序逻辑触发的。引发(触发)事件的对象叫做事件发送方。捕获事件并对其作出响应的对象叫做事件接收方。在事件通信中,事件发送方类不知道哪个对象或方法将接收到(处理)它引发的事件。所需要的是在源和接收方之间存在一个媒介(或类似指针的机制)。.NET Framework 定义了一个特殊的类型(转载 2007-03-02 10:55:00 · 972 阅读 · 0 评论