上一页 1 ··· 14 15 16 17 18
摘要: C#格式化数值结果表 字符 说明 示例 输出 C 货币 string.Format("{0:C3}", 2) $2.000 D 十进制 string.Format("{0:D3}", 2) 002 E 科学计数法 1.20E+... 阅读全文
posted @ 2012-09-05 10:15 深南大道 阅读(193) 评论(0) 推荐(0)
摘要: 1)在select语句中使用条件逻辑 select ename,sal, case when sal = 4000 then 'OVERPAID' else 'OK' end as status from emp 2... 阅读全文
posted @ 2012-09-04 16:07 深南大道 阅读(228) 评论(0) 推荐(0)
摘要: powerdesigner生成脚本的时候默认情况下会把对象用引号括起来, 如果想要生成没有引号的脚本,可以自己设置,方法如下: 打开cdm(该后缀名的文件)的情况下,进入Tools-Model Options-Naming Convention,把Name和Code的标签的Charcter ... 阅读全文
posted @ 2012-09-04 14:47 深南大道 阅读(237) 评论(0) 推荐(0)
摘要: 一、UpdatePanel的结构 主要属性: 1,ChildrenAsTriggers : 内容模板内的子控件的回发是否更新本模板(和UpdateMode的conditional有关) 2,UpdateMode : 内容模板的更新模式,有always和conditiona... 阅读全文
posted @ 2012-09-04 11:38 深南大道 阅读(302) 评论(0) 推荐(0)
摘要: Demo : Textarea 元素的光标位置 Textarea 元素的光标位置 获取 Textarea 元素当前的光标位置 设置回原先的 Texta... 阅读全文
posted @ 2012-08-31 15:59 深南大道 阅读(271) 评论(0) 推荐(0)
摘要: Oracle已经内建了许多函数,不同的函数有不同的作用和用法,有的函数只能作用在一个记录行上,有的能够作用在多个记录行上,不同的函数可能处理不同的数据类型。常见的有两类,单行函数和分组函数 。 单行函数: 单行函数 分类 函数 功能 示例 字符函数 LPAD(,[,]) 在字符串c1的左边添加字... 阅读全文
posted @ 2012-08-30 16:18 深南大道 阅读(188) 评论(0) 推荐(0)
摘要: 在使用PowerDesigner对数据库进行概念模型和物理模型设计时,一般在NAME或Comment中写中文,在Code中写英文。Name用来显 示,Code在代码中使用,但Comment中的文字会保存到数据库Table或Column的Comment中,当Name已经存在的时候,再写一次 ... 阅读全文
posted @ 2012-08-30 09:37 深南大道 阅读(175) 评论(0) 推荐(0)
摘要: 表操作 例 1 对于表的教学管理数据库中的表 STUDENTS ,可以定义如下: CREATE TABLE STUDENTS (SNO NUMERIC (6, 0) NOT NULL SNAME CHAR (8) NOT N... 阅读全文
posted @ 2012-08-29 14:10 深南大道 阅读(485) 评论(0) 推荐(0)
摘要: 用jquery的hover事件,当鼠标移动到menu时,把遮挡下拉菜单的div设置为负值,鼠标离开时恢复正值, 代码如下: $("#menu").hover( function() { $(".divName").css("z-index", "-1"); }, function() {... 阅读全文
posted @ 2012-08-28 16:58 深南大道 阅读(452) 评论(0) 推荐(0)
摘要: $(获取到需要弹出浮动框的元素obj).hover(function () { //鼠标移动时 //获取到需要弹出浮动框的元素obj divobj = document.getElementById(obj); ... 阅读全文
posted @ 2012-08-28 14:08 深南大道 阅读(283) 评论(0) 推荐(0)
摘要: $(function () { gridview("GridView1");});//gridviewfunction gridview(objgridview) { //get obj id var gridviewId = "#" + objgridview; //even... 阅读全文
posted @ 2012-08-28 10:07 深南大道 阅读(141) 评论(0) 推荐(0)
摘要: 情况一,触发源是 a 标签,带href 属性 (不正常) 情况二,触发源是 a 标签,但没有 href 属性,利用onclick事件(正常显示) 情况三,触发源是 button 标签,利用onclick事件(正常显示) document.getElementById('c_btn').oncli... 阅读全文
posted @ 2012-08-28 09:02 深南大道 阅读(171) 评论(0) 推荐(0)
摘要: #region DataTable筛选,排序返回符合条件行组成的新DataTable或直接用DefaultView按条件返回 /// /// DataTable筛选,排序返回符合条件行组成的新DataTable或直接用DefaultView按条件返回... 阅读全文
posted @ 2012-08-23 16:12 深南大道 阅读(241) 评论(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 深南大道 阅读(968) 评论(0) 推荐(0)
摘要: jQueryAjaxJson取值示例 //Ajax Post Text function savedata(tempid) { var tid = $('#hidtemplate').attr('value'); var ... 阅读全文
posted @ 2012-08-23 15:59 深南大道 阅读(327) 评论(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 深南大道 阅读(1243) 评论(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 深南大道 阅读(255) 评论(0) 推荐(0)
摘要: //Jquery获取控件的值 function JqGetValue(controlID, controltype) { var objValue = ""; switch (controltype) { case 'text': //文本输入框 objValue = $.trim... 阅读全文
posted @ 2012-08-23 15:35 深南大道 阅读(391) 评论(0) 推荐(0)
摘要: using System; using System.Net.Mail; using System.IO; /// /// Utilities 的摘要说明 /// public static class Utilities { static Utilities() { ... 阅读全文
posted @ 2012-08-23 15:30 深南大道 阅读(129) 评论(0) 推荐(0)
摘要: private void RpTypeBind() { //GetQuestionTypeAndCount() 返回一个datatable this.rptypelist.DataSource = LiftQuestionCtr.GetQuesti... 阅读全文
posted @ 2012-08-23 15:29 深南大道 阅读(143) 评论(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 深南大道 阅读(173) 评论(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 深南大道 阅读(173) 评论(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 深南大道 阅读(580) 评论(0) 推荐(0)
摘要: /// /// 从Excel中导出数据到DataSet中 /// /// Excel文件的绝对路径 /// excel文件中的表名 /// public DataSet ExcelDataSource(string filepath,... 阅读全文
posted @ 2012-08-23 15:12 深南大道 阅读(160) 评论(0) 推荐(0)
摘要: create or replace procedure EMPLOYEEMOVE_PROCE ( QUERYYEAR in varchar2, QUERYMONTH in varchar2, CUSTOMERID in varchar2, CUSTOMERSE... 阅读全文
posted @ 2012-08-23 15:01 深南大道 阅读(805) 评论(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 深南大道 阅读(213) 评论(0) 推荐(0)
摘要: 一、asp.net中导出Execl的方法: 在asp.net中导出Execl有两种方法,一种是将导出的文件存放在服务器某个文件夹下面,然后将文件地址输出在浏览器上;一种是将 文件直接将文件输出流写给浏览器。在Response输出时,t分隔的数据,导出execl时,等价于分列,n等价于换行。 1... 阅读全文
posted @ 2012-08-23 14:17 深南大道 阅读(139) 评论(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 深南大道 阅读(1655) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18