- 博客(15)
- 收藏
- 关注
原创 整理一些Javascript代码
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy
2005-07-21 16:11:00 711
原创 一个比较实用的大数据量分页存储过程 (选择自 jierry007 的 Blog )
create proc sp_PublicTurnPageWebSite( @TBName nvarchar(100)=, --表名,如 pinyin @PageSize int=10, --每页的记录数,默认为 10 @CurPage int=1, --表示当前页 1 @KeyField nvarchar(100)=ID, --关键字段名,默认为 ID,该字段要求是表中的索引 或 无重
2005-03-27 21:43:00 673
原创 SQL Server日期计算( 选择自 bearold 的 Blog )
通常,你需要获得当前日期和计算一些其他的日期,例如,你的程序可能需要判断一个月的第一天或者最后一天。你们大部分人大概都知道怎样把日期进行分割(年、月、日等),然后仅仅用分割出来的年、月、日等放在几个函数中计算出自己所需要的日期!在这篇文章里,我将告诉你如何使用DATEADD和DATEDIFF函数来计算出在你的程序中可能你要用到的一些不同日期。 在使用本文中的例子之前,你必须注意以
2005-03-27 21:36:00 666
原创 将web中多控件数据导入到EXECL
Imports System.DataImports System.Data.SqlClientImports System.Web.UIPublic Class WebForm1 Inherits System.Web.UI.Page#Region " Web 窗体设计器生成的代码 " 该调用是 Web 窗体设计器所必需的。 Private Sub InitializeCo
2005-03-26 16:25:00 1015
原创 写在2005年的情人节
今天是2005年的第一个情人节,比2004年的来的更早一些。:)早上一大早爬起来了,是被侄女的电子琴声给吵醒的(昨天带她去吃麦当劳,送了一电子琴)。解决完早餐,给朋友门发了一通短信同学来电话说叫我去玩,稀里糊涂的就去了 一上午的奔波,终于到了,吃饭,喝酒,打牌晚上重复着中午的事情10点了,同学说去上网,跟去了,反正在那也没意思今天是情人节,线上人比较少游戏了会,耳机里的MP3出现了,M2M 的 P
2005-02-15 02:54:00 609
原创 捕捉DataGrid的双击事件(VB.NET版本)---孟子E章
Option Strict OffOption Explicit On Imports Microsoft.VisualBasicImports SystemImports System.ComponentModelImports System.DataImports System.DrawingImports System.Windows.FormsNamespace DataGridDoubl
2004-12-13 15:29:00 1268
原创 向SQL Server数据库添加图片和文字---孟子E章
下面的代码实现向SQL Server数据库添加图片和文字的功能。首先,在SQL查询分析器中执行下面的SQL语句,以创建表和存储过程。CREATE TABLE Photos ( [name] varchar(50), [photo] image NULL)GOCREATE PROCEDURE sp_InsertPhoto @name AS VARCHAR(50),
2004-12-13 15:17:00 889
原创 利用DataGrid编辑、修改、删除记录---孟子E章
下面的这个例子提供了利用DataGrid编辑、修改、删除记录的方法,数据库字段名称和类型如下。数据库aa中表 people:People.sqlif exists (select * from dbo.sysobjects where id = object_id(N[dbo].[People]) and OBJECTPROPERTY(id, NIsUserTable) = 1)
2004-12-12 15:35:00 807
原创 一个功能齐全的DataGrid分页例子--孟子
C#版本 例子DataGridPaging.aspx<%@ Page language="c#" EnableViewState = "true" Codebehind="DataGridPaging.aspx.cs" AutoEventWireup="false" Inherits="eMeng.Exam.DataGridPaging.DataGridPaging" %>
2004-12-12 15:32:00 630
原创 WEB页面中文传值的编码与读取
事例:dim sqlBGC as String="select * from bigclass order by bigclassid desc"dim mycmdBGC as oledbcommand=new oledbcommand(sqlBGC,myconn)dim myreaderBGC as oledbdatareader=mycmdBGC.executereader()Dim BGC
2004-12-12 15:26:00 828
原创 Web 下dataReader的循环读取
dim sqlWord as String="select top 7 * from news where focusnews=true order by newsid desc"dim mycmdWord as oledbcommand=new oledbcommand(sqlWord,myconn)dim myreaderWord as oledbdatareader=mycmdWord.ex
2004-12-12 15:18:00 1187
原创 用正则表达式实现对文章内容的查找
dim sqlFo as String="select top 1 * from news where focusnews=true order by newsid desc"dim mycmdFo as oledbcommand=new oledbcommand(sqlFo,myconn)dim myreaderFo as oledbdatareader=mycmdFo.executereade
2004-12-12 15:16:00 1024
原创 web下用JavaScript实现系统的注销与退出
1、系统登陆的退出public Sub Page_Load(Sender As Object,e As EventArgs) Dim scriptString As String = "if(confirm(您真的要退出科研管理信息系统吗?)" scriptString+=")" scriptString+="{window.parent.window
2004-12-12 15:12:00 4188
原创 用Dataset实现对Dropdownlist的赋值
Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)调出系部名称dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))Dim myCommand As New
2004-12-12 15:02:00 1625
原创 web开发中提示错误代码
public sub W_Message(wString as string) dim strDisp= "alert(" + wstring +" ); strDisp +="/" strDisp +="script>" Page.RegisterStartupScript("warnings", strDisp)End sub
2004-12-12 15:00:00 675
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人