- 博客(60)
- 收藏
- 关注
转载 添加到收藏夹和设置首页代码大全
HTML> HEAD> title>添加到收藏夹和设置首页代码大全title> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaultCl
2007-01-08 16:48:00
3275
1
转载 弹出窗口的几种方法
window.open(http://singlepine.cnblogs.com,title,height=100,width=200,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no)window.showModalDialog(http://single
2007-01-08 16:47:00
849
转载 XmlHttp实现无刷新三联动下拉框
1.html代码HTML> HEAD> title>XmlHttp实现无刷新三联动下拉框title> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta nam
2007-01-08 16:44:00
696
转载 国家,省/州,城市下拉框
html>head>meta http-equiv="Content-Type" content="text/html; charset=gb2312">title>下拉框测试title>head>script src="change_region.js">script>form name="form1" method="post">body> table> tr> td>国家td>
2007-01-08 16:44:00
1339
转载 年月日三联动下拉框
HTML> HEAD> title>年月日三联动下拉框title> meta http-equiv=Content-Type content=text/html; charset=gb2312> meta name=author content=http://singlepine.cnblogs.com/> HEAD>
2007-01-08 16:42:00
767
转载 ListBox(上移,下移,左移,右移)
HTML>HEAD>TITLE>选择下拉菜单TITLE>meta http-equiv="Content-Type" content="text/html; charset=gb2312">META NAME="Description" CONTENT="Power by hill">HEAD>BODY>p>选定一项或多项然后点击添加或移除(按住shift或ctrl可以多选),或在选择项上双击
2007-01-08 16:40:00
1415
转载 DropDownList既能选择又能输入
html>head>style>.cls1 {}{ position:absolute; left:250px; top:89px; width:216px; height:72px; z-index:1; }.cls2 {}{ position:absolute; left:250px; top:89px; width:95px; height:18px; z-index:2 }input {}
2007-01-08 16:39:00
745
转载 如何将枚举绑定到DropDownList上
HTML> HEAD> title>WebForm5title> meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> meta content="C#" name="CODE_LANGUAGE"> meta content="JavaScript" name
2007-01-08 16:38:00
1143
转载 JavaScript调用Web Services实现无刷新三联动
使用微软提供的webservice.htc实现通过JavaScript调用WebService.1.首先从微软网站上下载webservice.htc,我附件源代码也包含,不下载也可以http://msdn.microsoft.com/workshop/author/webservice/webservice.htc2.在网页BODY中添加一个DIV,实现对webservice.htc的引用5.
2007-01-08 16:31:00
1029
转载 用递归在Dropdownlist中显示树状结构
建立一个aspx页面,copy如下代码html代码HTML> HEAD> title>WebForm9title> HEAD> body> form id="Form1" method="post" runat="server"> asp:DropDownList id="Dropdownlist3" runat="serve
2007-01-08 16:29:00
738
转载 给DataGrid添加滚动条并固定表头
1.htmlHTML> HEAD> title>ScrollGridtitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaul
2007-01-08 16:28:00
1285
转载 导出导入Excel(DataSet,DataGrid)
using System;using System.Data;using System.Web;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Text.RegularExpressions;using System.Xml;using System.Xml.Xsl;using System
2007-01-08 16:27:00
636
转载 功能齐全的DataGrid
//目前功能:编辑、排序、单选项、复选项、合并单元格、产生序列号、联动下拉框、删除、超连接、鼠标移动改变颜色、奇偶项颜色区分、排序、分页1.html代码HTML> HEAD> title>DatagridTesttitle> meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"
2007-01-08 16:26:00
689
转载 通用分页控件(DataGrid,DataList,Repeater都可以用它来分页)
1.建立用户控件Pager.ascx1.1 htmlscript language="javascript"> function callButtonEvent() { var keycode =window.event.keyCode; if(keycode==13) { if(check()==true
2007-01-08 16:23:00
713
转载 合并实现DataGrid多表头
HTML> HEAD> title>MergeHeadertitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaultCli
2007-01-08 16:21:00
1108
转载 实现如何调整DataGrid列宽
1.htmlHTML> HEAD> title>DragDataGridtitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_de
2007-01-08 16:20:00
2116
转载 常用sql存储过程集锦
--1.给表中字段添加描述信息CREATE table T2 (id int , name char (20))GOEXEC sp_addextendedproperty MS_Description, Employee ID, user, dbo, table, T2, column, idEXEC sp_updateextendedproperty MS
2007-01-08 16:20:00
614
转载 实现DataGrid拖动和排序
1.htmlHTML> HEAD> title>MoveDataGridtitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defa
2007-01-08 16:19:00
1753
转载 DataGrid显示图片(物理路径式和Stream流式)和添加图片到数据库
1.建立页面ImageGrid1.1 html代码HTML> HEAD> title>ImageGridtitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> me
2007-01-08 16:18:00
805
转载 DataGrid实现(上下左右移动,添加删除行列,导出,表头拖动)
1.htmlHTML> HEAD> title>movegridtitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaultC
2007-01-08 16:17:00
909
转载 DataGrid的多种格式化显示方法
//1.用方式显示//2.用sql中的case Gender when 1 then 男 else 女 end显示//3.在后台写方法,前台调用显示,如Format(object item,string type)//4.DataGrid1_ItemDataBound1.htmlHTML> HEAD> title>GridFormattitle>
2007-01-08 16:15:00
685
转载 用于DataGrid MoveUp,MoveDown的存储过程
所有逻辑都写到了存储过程中,所以在使用的时候,直接调用存储过程即可,无需在前台代码中做过多的处理,但是一定要记得在绑定的sql语句中必须有order by orderno来排序--测试表if exists (select * from dbo.sysobjects where id = object_id(N[dbo].[Job_Person]) and OBJECTPROPERTY(id
2007-01-08 16:14:00
979
转载 用DataGrid演示某字段为null保存xml时节点丢失的问题
当数据库字段为varchar/char等字符串类型时,如果某字段为null此时保存到xml中的节点将不会显示,处理办法可以将保存xml的字段类型设置为image类型,具体参见示例。(记得在.aspx文件头中加入这句:)1.htmlHTML> HEAD> title>StreamXmltitle> meta name="GENERATOR" Content="M
2007-01-08 16:13:00
677
转载 DataGrid/DataSet导出到excle和csv文件
1.html代码HTML> HEAD> title>WriteToCVStitle> meta content="False" name="vs_snapToGrid"> meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> meta content="C
2007-01-08 16:12:00
736
转载 DataGrid嵌套DataGrid
1.html代码HTML> HEAD> title>DataGridNestingtitle> meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> meta content="C#" name="CODE_LANGUAGE"> meta content=
2007-01-08 16:11:00
657
转载 DataGrid实现tooltip功能
1.html代码HTML> HEAD> title>DataGridTooltiptitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs
2007-01-08 16:09:00
845
2
转载 DataGrid客户端排序和通过鼠标拖动来实现多选
实现客户端排序,和通过鼠标拖动来实现多选源代码下载/Files/singlepine/DataGridHeaderSort.rar
2007-01-08 16:07:00
615
转载 演示弹出窗口传递参数,并用参数来动态修改DataGrid的列
演示弹出窗口传递参数,并用参数来动态修改DataGrid的列源代码下载/Files/singlepine/father.rar
2007-01-08 16:06:00
673
转载 C#中如何取得系统字体
HTML> HEAD> title>systemfonttitle> meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> meta name="CODE_LANGUAGE" Content="C#"> meta name="vs_defaultClientS
2007-01-07 11:16:00
1198
转载 C#条形码
c#条形码#region c#条形码 public string bar_code(object str, int ch, int cw, int type_code) { string strTmp=str.ToString(); string code=strTmp; strTmp=strTmp.To
2007-01-07 11:16:00
755
转载 SQLDMO类的使用
SQLDMO(SQL Distributed Management Objects,SQL分布式管理对象)封装 Microsoft SQL Server 2000 数据库中的对象。SQL-DMO 允许用支持自动化或 COM 的语言编写应用程序,以管理 SQL Server 安装的所有部分。SQL-DMO 是 SQL Server 2000 中的 SQL Server 企业管理器所使用的应用程序接口
2007-01-07 11:15:00
842
转载 通过HtmlInputFile控件上传文件的类
using System;using System.Web.UI.HtmlControls;using System.IO;namespace Document.Bll{ public class HtmlInputFileControl { HtmlInputFileControl#region HtmlInputFileControl public Ht
2007-01-07 11:14:00
529
转载 阴历阳历转换
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr
2007-01-07 11:12:00
2117
1
转载 通用基类
using System;using System.Web;using System.Web.UI;using System.IO;using System.Text.RegularExpressions;namespace Document.Base{ /**//// /// Summary description for BasePage. /// public c
2007-01-07 11:08:00
580
转载 文件的一些基本操作
using System;using System.IO;using System.Text;namespace Document.Bll{ /**//// /// Summary description for fileinfo. /// public class fileinfo { public fileinfo() {
2007-01-07 11:07:00
520
转载 如何将数据库二进制图片保存到硬盘上
1.建立一个aspx页面,copy html代码DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml" >head runat=
2007-01-07 11:05:00
764
转载 ASP.NET2.0 TreeView
1.html代码html xmlns="http://www.w3.org/1999/xhtml" >head runat="server"> title>Untitled Pagetitle> script language="javascript"> function chkAll() { //debugger;
2007-01-07 11:04:00
641
转载 资源文件配置和使用
1.建立工程,比如Document,配置webconfig2.1 strings.en-us.resx2.2 strings.zh-cn.resxappSettings> add key="DefaultCulture" value="zh-cn" /> add key="CNCulture" value="zh-cn" />
2007-01-07 11:03:00
660
转载 图片渐变轮换效果
一.静态的HTML> HEAD> title>图片渐变轮换效果title> meta name="generator" content="editplus"> meta name="author" content="neng"> HEAD> body> p>图片渐变轮换效果(IE),请等几秒钟看效果p>
2007-01-07 11:02:00
907
转载 滚动条定位控制
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr
2007-01-07 11:01:00
1111
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人