天使半只翼

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

11 2012 档案

摘要:删除所有记录: delete from 表名自增计数器复位: truncate table 表名 阅读全文
posted @ 2012-11-30 14:12 天使半只翼 阅读(361) 评论(0) 推荐(0)

摘要:个人改良了一下做做成函数:调用函数$(document).ready(function(){ autoImg("#text2 img",600);autoImg("#text1 img",600);});函数function autoImg(tNmae,wValue){ $(tNmae).each(function(){ if (this.width>wValue) {this.width = wValue;} }); } 阅读全文
posted @ 2012-11-15 12:55 天使半只翼 阅读(741) 评论(0) 推荐(0)

摘要:onClick="deleteMe(this.parentNode.parentNode);父节点的父节点,比如有这样一段HTML:<form id="form"><div id="divA"> <div id="divB"> <input type="button" value="删除" onClick="deleteMe(this.parentNode.parentNode);"> </div>< 阅读全文
posted @ 2012-11-15 11:01 天使半只翼 阅读(269) 评论(0) 推荐(0)

摘要:获取Ewebeditor编辑器图片地址 ---获取编辑器图片地址---<input type=hidden name=Newfilename> <!--图片名称--><input type=hidden name=pathfilename> <!--图片地址--><iframe ID='eWebEditor1' src='../ewebeditor/ewebeditor.htm?id=content&style=coolblue&originalfilename=filename&savefi 阅读全文
posted @ 2012-11-11 21:06 天使半只翼 阅读(560) 评论(0) 推荐(0)

摘要:<%'*======================================'* 名称:useDb.asp'* 功能:数据库操作函数库'* 作者:intereye'* 信箱:inteye@163.com'* 主页:http://www.inteye.net'* BLOG:http://blog.csdn.net/intereye'*======================================'* 函数:openDb(dbType,dbUser,dbPass,dbName,dbServer,db 阅读全文
posted @ 2012-11-06 09:48 天使半只翼 阅读(1185) 评论(0) 推荐(0)

摘要:复制以下代码在查询里执行就可以啦。使用办法:selectdbo.split(parentpath, ',', 1) (’字段|字段|字段‘,'|',取出那一段从0开始)set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOcreate FUNCTION [dbo].[split] (@str nvarchar(4000),@code varchar(10),@no int ) RETURNS varchar(200)AS BEGIN declare @intLen intdeclare @count intdeclare @i.. 阅读全文
posted @ 2012-11-06 09:44 天使半只翼 阅读(835) 评论(0) 推荐(0)

摘要:<%@ Language=VBScript CODEPAGE=950%><% Option Explicit %><%' ============================================' 常用全局變量' ============================================' 數據庫對像Dim oConn, oRs, sSql' ============================================' 初始數據處理' =============== 阅读全文
posted @ 2012-11-05 11:00 天使半只翼 阅读(341) 评论(0) 推荐(0)

摘要:.net连接MySQL的方法最近要用C#做一个东西,连接之前项目的数据库(用MySQL建的)。.net连接MySQL实现起来其实并不是很复杂的事,网上找找,方法挺多的,下面将我实现的方法简单记录一下:1、首先上MySQL网站下驱动(以前学Java的时候,要用connecter来做):http://www.mysql.com/products/connector/因为是用.net来连接MySQL,使用我们下载ADO.NET Driver for MySQL(这句废话,忽略。。。)。2、安装下下来的安装包(这步就不说了,你懂的~)3、我们在Visual Studio里创建一个Web Applica 阅读全文
posted @ 2012-11-05 10:57 天使半只翼 阅读(527) 评论(0) 推荐(0)