- 博客(11)
- 收藏
- 关注
原创 获取系统已经安装的所有字体
public void GetInstalledFonts() ...{ System.Drawing.Text.InstalledFontCollection installedFontCollection = new System.Drawing.Text.InstalledFontCollection(); foreach (System.Dra
2007-04-26 13:58:00
18331
1
原创 在网页中加入声音文件,并且用JavaScript对其进行播放控制
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" validateRequest="false"%>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/T
2007-04-26 13:48:00
19080
1
原创 将Word文档转化为HTML格式的文件
Word.ApplicationClass word = new Word.ApplicationClass(); Type wordType = word.GetType(); Word.Documents docs = word.Documents; Type docsType = docs.GetType(); //
2007-04-26 10:42:00
18285
原创 IFrame自适应大小
script language="javascript" type="text/javascript"> function IFrameAutoFit() ...{ try ...{ if(window!=parent) ...{
2007-04-26 09:54:00
18928
原创 GridView实现单选操作
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" validateRequest="false"%>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/T
2007-04-24 11:05:00
37053
原创 ASP.NET保存文件到客户端
/**//// /// 文件下载 /// /// 文件物理地址 /// void public void DownloadFile(string filePath) ...{ string saveFileName = System.IO.Path.GetFileName(filePath); DownloadFile
2007-04-17 18:27:00
18790
原创 GridView实现多选操作以及全选或者全不选
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" validateRequest="false"%>DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/T
2007-04-14 17:34:00
19283
转载 自动生成对数据表进行更新操作的存储过程的存储过程
create procedure sp_GenUpdate/**//* 功能描述:自动生成对数据表进行更新操作的存储过程的存储过程*/( @TableName varchar(130), --数据表名称 @PrimaryKey varchar(130), --数据表的主键 @ProcedureName varchar(130) --生成的更新操作存储过
2007-04-14 16:56:00
18422
转载 自动生成对数据表进行插入操作的存储过程的存储过程
create procedure sp_GenInsert/**//* 功能描述:自动生成对数据表进行插入的存储过程的存储过程*/( @TableName varchar(130), --数据表名称 @ProcedureName varchar(130) --生成的插入存储过程名称)asset nocount ondeclare @maxcol int,@Tabl
2007-04-14 16:52:00
18164
原创 ASP.Net生成静态页面
//------------------------------------调用方法-------------------------------------//所要替换的内容如title 、content 、author 、time 等可以从数据库或者页面用户输入来获得string title = "新闻标题";string content = "新闻内容";string author =
2007-04-14 14:51:00
18239
原创 绑定GridView控件时,当数据集DataSet为空时也显示GridView的表头
/**//// /// 绑定GridView控件(当DataSet为空时也显示GridView的表头) /// /// 所要绑定的GridView /// 所要绑定的数据集 /// void public void BindGridView(GridView gridView, DataSet ds) ...{ if (ds
2007-04-14 13:42:00
18840
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人