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

2007年2月8日

摘要: --1.excel--------------------------------- 导出到excelEXEC master..xp_cmdshell 'bcp SettleDB.dbo.shanghu out c:\temp1.xls -c -q -S"GNETDATA/GNETDATA" -U"sa" -P""'-- 导入ExcelSELECT * FROM OpenDataSource('M... 阅读全文

posted @ 2007-02-08 15:35 余墨 阅读(241) 评论(0) 推荐(0)

摘要: --如果是要得到纵向的表结构,可以查询系统表SELECT 表名=case when a.colorder=1 then d.name else '' end,表说明=case when a.colorder=1 then isnull(f.value,'') else '' end,字段序号=a.colorder,字段名=a.name,标识=case when COLUMNPROPERTY( a.... 阅读全文

posted @ 2007-02-08 15:34 余墨 阅读(178) 评论(0) 推荐(0)

摘要: 所有逻辑都写到了存储过程中,所以在使用的时候,直接调用存储过程即可,无需在前台代码中做过多的处理,但是一定要记得在绑定的sql语句中必须有order by orderno来排序 --测试表if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Job_Person]') and OBJECTPROPERTY(id,... 阅读全文

posted @ 2007-02-08 15:33 余墨 阅读(194) 评论(0) 推荐(0)

摘要: --初始化环境create table grade(Code int not null,Name varchar(10),Scores int)--测试数据insert into grade select 1, 'A', 100 union select 1, 'B', 90union select 1, 'C', 85union select ... 阅读全文

posted @ 2007-02-08 15:32 余墨 阅读(200) 评论(0) 推荐(0)

摘要: 一.如何获得当月有多少天 int m=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month); 二.日期型格式处理通用方法1.在webconfig中配置如下 2.在global.asax中 protected void Application_BeginRequest(Object sende... 阅读全文

posted @ 2007-02-08 15:21 余墨 阅读(245) 评论(0) 推荐(0)

摘要: 1.建立页面ImageGrid1.1 html代码 ImageGrid ... 阅读全文

posted @ 2007-02-08 15:15 余墨 阅读(464) 评论(0) 推荐(0)

摘要: MergeHeader public class... 阅读全文

posted @ 2007-02-08 15:09 余墨 阅读(636) 评论(1) 推荐(0)

摘要: 1.html ScrollGrid ... 阅读全文

posted @ 2007-02-08 15:07 余墨 阅读(857) 评论(1) 推荐(0)

摘要: 1.html代码 DataGridTooltip 联系方式 ... 阅读全文

posted @ 2007-02-08 15:04 余墨 阅读(260) 评论(0) 推荐(0)

摘要: 1.html代码 DataGridNesting ... 阅读全文

posted @ 2007-02-08 15:03 余墨 阅读(580) 评论(0) 推荐(0)

摘要: 1.html代码 NestedDataLists 省市 & 市区 ... 阅读全文

posted @ 2007-02-08 14:59 余墨 阅读(288) 评论(0) 推荐(0)

摘要: 使用微软提供的webservice.htc实现通过JavaScript调用WebService.1.首先从微软网站上下载webservice.htc,我附件源代码也包含,不下载也可以http://msdn.microsoft.com/workshop/author/webservice/webservice.htc2.在网页BODY中添加一个DIV,实现对webservice.htc的引用 3.... 阅读全文

posted @ 2007-02-08 14:53 余墨 阅读(221) 评论(0) 推荐(0)

摘要: 1.建立一个aspx页面,copy html代码 Untitled Page 2.cs代码 using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using Syste... 阅读全文

posted @ 2007-02-08 14:51 余墨 阅读(483) 评论(0) 推荐(0)

摘要: 1.首先引用 using System.Runtime.InteropServices; 2.html代码 WebForm3 ... 阅读全文

posted @ 2007-02-08 14:48 余墨 阅读(305) 评论(1) 推荐(0)

摘要: SystemInfo Window及系统路径: ... 阅读全文

posted @ 2007-02-08 14:47 余墨 阅读(236) 评论(0) 推荐(0)

摘要: 一.静态的 图片渐变轮换效果 图片渐变轮换效果(IE),请等几秒钟看效果 二.动态的1..html代码 图片渐变轮换效果 图片渐变轮换效果(IE),请等几秒钟看效果 ... 阅读全文

posted @ 2007-02-08 14:21 余墨 阅读(416) 评论(0) 推荐(0)

摘要: 方法一:弹出对话框提示1.html代码 WebForm6 2.cs代码 private void Page_Load(object sender, System.EventArgs e) { ... 阅读全文

posted @ 2007-02-08 14:18 余墨 阅读(667) 评论(0) 推荐(0)

摘要: 1.建立一个class,ReadWriteConfig.cs using System;using System.Configuration;using System.Reflection;using System.Web;using System.Xml;public enum ConfigFileType{ WebConfig, AppConfig}namespace WebApp... 阅读全文

posted @ 2007-02-08 14:16 余墨 阅读(345) 评论(0) 推荐(0)

摘要: 1.WMI简介WMI是英文Windows Management Instrumentation的简写,它的功能主要是:访问本地主机的一些信息和服务,可以管理远程计算机(当然你必须要拥有足够的权限),比如:重启,关机,关闭进程,创建进程等。2.使用时首先添加System.Management.dll,然后引用 using System.Management;using System.Threadi... 阅读全文

posted @ 2007-02-08 14:14 余墨 阅读(329) 评论(0) 推荐(0)

摘要: TextBoxRightMenu 阅读全文

posted @ 2007-02-08 14:12 余墨 阅读(312) 评论(0) 推荐(0)

摘要: 源代码下载/Files/singlepine/topmenu.rar public class TopMenu : System.Web.UI.Page{ protected DataRow[] father; protected DataRow[] first; protected DataRow[] second; private void Page_Load(... 阅读全文

posted @ 2007-02-08 14:10 余墨 阅读(572) 评论(0) 推荐(0)

摘要: 免费电影 阅读全文

posted @ 2007-02-08 14:08 余墨 阅读(744) 评论(0) 推荐(0)

摘要: 步骤:1.新建一个页面,假如说叫VerticalMenu2.把html代码copy到html代码区3.把LoadTopMenu方法copy到cs代码区4.运行即可-------------------------------------1.html代码 2.cs代码 public class VerticalMenu : S... 阅读全文

posted @ 2007-02-08 14:07 余墨 阅读(336) 评论(0) 推荐(0)

摘要: 年月日三联动下拉框 阅读全文

posted @ 2007-02-08 13:37 余墨 阅读(206) 评论(0) 推荐(0)

摘要: WebForm4 screen.width*0.7)this.style.width=screen.width*0.7;" onmousewheel="return bbimg(this)"> ... 阅读全文

posted @ 2007-02-08 13:35 余墨 阅读(383) 评论(0) 推荐(0)

摘要: ... 阅读全文

posted @ 2007-02-08 13:29 余墨 阅读(266) 评论(0) 推荐(0)

摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键no 可用于Table2. 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="return false;" oncut="return false;" 防止复制5. IE地址栏前换成自己的图标6. 可以在收藏夹中显示出你的图标... 阅读全文

posted @ 2007-02-08 13:27 余墨 阅读(132) 评论(0) 推荐(0)

摘要: 1.建立一个aspx页面,html代码<htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>UntitledPage</title><scripttype="text/javascript">varxmlHttp;functioncreateXMLHttp... 阅读全文

posted @ 2007-02-08 13:23 余墨 阅读(352) 评论(0) 推荐(0)

摘要: 1.建立一aspx页面,html代码<html><head><title>WebForm1</title><styletype="text/css">.logo{}{POSITION:absolute}.dek{}{Z-INDEX:200;VISIBILITY:hidden;POSITION:absolute}</style>... 阅读全文

posted @ 2007-02-08 13:21 余墨 阅读(310) 评论(0) 推荐(0)

摘要: 功能:在textbox中输入内容,动态从数据库模糊查询显示到下拉框中,以供选择1.建立一aspx页面,html代码 <HTML><HEAD><title>WebForm1</title><SCRIPTlanguage="javascript">//城市------------------------------functioncityRe... 阅读全文

posted @ 2007-02-08 13:19 余墨 阅读(516) 评论(0) 推荐(0)

摘要: 1.建立一个aspx页面html代码<htmlxmlns="http://www.w3.org/1999/xhtml"><headid="Head1"runat="server"><title>小山</title><linktype="text/css"href="../../Styles/tree_css/tree.css"rel="styl... 阅读全文

posted @ 2007-02-08 13:17 余墨 阅读(262) 评论(0) 推荐(0)

摘要: 1.页面cs代码 using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebPar... 阅读全文

posted @ 2007-02-08 13:14 余墨 阅读(320) 评论(0) 推荐(0)

摘要: Ajax定义为“Asynchronous JavaScript + XML”的简称,也就是异步的JavaScript和XML处理。从原理上看,主要是Ajax可以通过调用HttpRequest实现与服务器的异步通讯,并最终在网页中实现丰富友好的用户界面Ajax使用初步,配置步骤1.把Ajax.dll copy到应用系统bin目录下,然后在工程引用中引用Ajax.dll,如果没... 阅读全文

posted @ 2007-02-08 13:11 余墨 阅读(244) 评论(0) 推荐(0)