08 2012 档案

摘要:Demo : Textarea 元素的光标位置 Textarea 元素的光标位置 获取 Textarea 元素当前的光标位置 设置回原先的 Texta... 阅读全文
posted @ 2012-08-31 15:59 深南大道 阅读(267) 评论(0) 推荐(0) 编辑
摘要:Oracle已经内建了许多函数,不同的函数有不同的作用和用法,有的函数只能作用在一个记录行上,有的能够作用在多个记录行上,不同的函数可能处理不同的数据类型。常见的有两类,单行函数和分组函数 。 单行函数: 单行函数 分类 函数 功能 示例 字符函数 LPAD(,[,]) 在字符串c1的左边添加字... 阅读全文
posted @ 2012-08-30 16:18 深南大道 阅读(180) 评论(0) 推荐(0) 编辑
摘要:在使用PowerDesigner对数据库进行概念模型和物理模型设计时,一般在NAME或Comment中写中文,在Code中写英文。Name用来显 示,Code在代码中使用,但Comment中的文字会保存到数据库Table或Column的Comment中,当Name已经存在的时候,再写一次 ... 阅读全文
posted @ 2012-08-30 09:37 深南大道 阅读(168) 评论(0) 推荐(0) 编辑
摘要:表操作 例 1 对于表的教学管理数据库中的表 STUDENTS ,可以定义如下: CREATE TABLE STUDENTS (SNO NUMERIC (6, 0) NOT NULL SNAME CHAR (8) NOT N... 阅读全文
posted @ 2012-08-29 14:10 深南大道 阅读(467) 评论(0) 推荐(0) 编辑
摘要:用jquery的hover事件,当鼠标移动到menu时,把遮挡下拉菜单的div设置为负值,鼠标离开时恢复正值, 代码如下: $("#menu").hover( function() { $(".divName").css("z-index", "-1"); }, function() {... 阅读全文
posted @ 2012-08-28 16:58 深南大道 阅读(444) 评论(0) 推荐(0) 编辑
摘要:$(获取到需要弹出浮动框的元素obj).hover(function () { //鼠标移动时 //获取到需要弹出浮动框的元素obj divobj = document.getElementById(obj); ... 阅读全文
posted @ 2012-08-28 14:08 深南大道 阅读(276) 评论(0) 推荐(0) 编辑
摘要:$(function () { gridview("GridView1");});//gridviewfunction gridview(objgridview) { //get obj id var gridviewId = "#" + objgridview; //even... 阅读全文
posted @ 2012-08-28 10:07 深南大道 阅读(132) 评论(0) 推荐(0) 编辑
摘要:情况一,触发源是 a 标签,带href 属性 (不正常) 情况二,触发源是 a 标签,但没有 href 属性,利用onclick事件(正常显示) 情况三,触发源是 button 标签,利用onclick事件(正常显示) document.getElementById('c_btn').oncli... 阅读全文
posted @ 2012-08-28 09:02 深南大道 阅读(166) 评论(0) 推荐(0) 编辑
摘要:#region DataTable筛选,排序返回符合条件行组成的新DataTable或直接用DefaultView按条件返回 /// /// DataTable筛选,排序返回符合条件行组成的新DataTable或直接用DefaultView按条件返回... 阅读全文
posted @ 2012-08-23 16:12 深南大道 阅读(232) 评论(0) 推荐(0) 编辑
摘要://Access using System.Data; using System.Data.OleDb; connString ="Provider =Microsoft.Jet.OleDb.4.0;Data Source=" + System.Web.HttpContext.Current.S... 阅读全文
posted @ 2012-08-23 16:03 深南大道 阅读(963) 评论(0) 推荐(0) 编辑
摘要:jQueryAjaxJson取值示例 //Ajax Post Text function savedata(tempid) { var tid = $('#hidtemplate').attr('value'); var ... 阅读全文
posted @ 2012-08-23 15:59 深南大道 阅读(319) 评论(0) 推荐(0) 编辑
摘要:①去除最后的逗号 string str=ab,cd,ef,; str=str.TrimEnd(new char[] { ',' }); 返回结果则是:ab,cd,ef ②去掉日期格式的00:00:00 char [] strRemove={'0',':'}; lblBirthday.... 阅读全文
posted @ 2012-08-23 15:47 深南大道 阅读(1228) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web; using System.Web.Security... 阅读全文
posted @ 2012-08-23 15:42 深南大道 阅读(243) 评论(0) 推荐(0) 编辑
摘要://Jquery获取控件的值 function JqGetValue(controlID, controltype) { var objValue = ""; switch (controltype) { case 'text': //文本输入框 objValue = $.trim... 阅读全文
posted @ 2012-08-23 15:35 深南大道 阅读(386) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Net.Mail; using System.IO; /// /// Utilities 的摘要说明 /// public static class Utilities { static Utilities() { ... 阅读全文
posted @ 2012-08-23 15:30 深南大道 阅读(124) 评论(0) 推荐(0) 编辑
摘要:private void RpTypeBind() { //GetQuestionTypeAndCount() 返回一个datatable this.rptypelist.DataSource = LiftQuestionCtr.GetQuesti... 阅读全文
posted @ 2012-08-23 15:29 深南大道 阅读(132) 评论(0) 推荐(0) 编辑
摘要:/* 设置sql权限导出Execl EXEC sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE EXEC sp_configure N'xp_cmdshell', N'1' RECONFIGUR... 阅读全文
posted @ 2012-08-23 15:22 深南大道 阅读(166) 评论(0) 推荐(0) 编辑
摘要:--包头部分 create or replace package JT_P_page is type type_cur is ref cursor; --定义游标变量用于返回记录集 procedure Pagination (Pindex in number, --要显示的页数索引,从0开始 Psq... 阅读全文
posted @ 2012-08-23 15:19 深南大道 阅读(163) 评论(0) 推荐(0) 编辑
摘要:CREATE TABLE [dbo].[TestTable]( [D_Id] [int] IDENTITY NOT NULL, [D_Name] [varchar](50) NULL, [D_Password] [varchar](32) NULL, [D... 阅读全文
posted @ 2012-08-23 15:17 深南大道 阅读(571) 评论(0) 推荐(0) 编辑
摘要:/// /// 从Excel中导出数据到DataSet中 /// /// Excel文件的绝对路径 /// excel文件中的表名 /// public DataSet ExcelDataSource(string filepath,... 阅读全文
posted @ 2012-08-23 15:12 深南大道 阅读(152) 评论(0) 推荐(0) 编辑
摘要:create or replace procedure EMPLOYEEMOVE_PROCE ( QUERYYEAR in varchar2, QUERYMONTH in varchar2, CUSTOMERID in varchar2, CUSTOMERSE... 阅读全文
posted @ 2012-08-23 15:01 深南大道 阅读(798) 评论(0) 推荐(0) 编辑
摘要:HTML无限层级目录树 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Text; using System.Web... 阅读全文
posted @ 2012-08-23 14:58 深南大道 阅读(199) 评论(0) 推荐(0) 编辑
摘要:一、asp.net中导出Execl的方法: 在asp.net中导出Execl有两种方法,一种是将导出的文件存放在服务器某个文件夹下面,然后将文件地址输出在浏览器上;一种是将 文件直接将文件输出流写给浏览器。在Response输出时,t分隔的数据,导出execl时,等价于分列,n等价于换行。 1... 阅读全文
posted @ 2012-08-23 14:17 深南大道 阅读(129) 评论(0) 推荐(0) 编辑
摘要:/// /// 根据GUID获取16位的唯一字符串 /// /// /// public static string GuidTo16String() { long i = 1; foreach (byte b in Guid.NewGuid().ToByteArray()) i... 阅读全文
posted @ 2012-08-23 11:38 深南大道 阅读(1639) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示