上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: word-break: break-all;word-wrap:break-word; overflow:hidden; 阅读全文
posted @ 2010-11-08 19:51 猎魔人 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 在上级目录的web.config中作以下处理:<location path="." allowOverride="true" inheritInChildApplications="false"><system.web>...</system.web></location>即在<system.web> 外套个location。 阅读全文
posted @ 2010-11-08 19:50 猎魔人 阅读(205) 评论(0) 推荐(0) 编辑
摘要: decmal:"^([+-]?)\\d*\\.\\d+$",//浮点数decmal1: "^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*$",//正浮点数decmal2: "^-([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*)$",//负浮点数decmal3: "^-?([1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0)$",//浮点数d... 阅读全文
posted @ 2010-11-08 19:50 猎魔人 阅读(111) 评论(0) 推荐(0) 编辑
摘要: @charset "utf-8";/* CSS Document */body{font-family:宋体,serif; background:#ffffff; font-size:12px;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p{padding:0; ... 阅读全文
posted @ 2010-11-08 19:49 猎魔人 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 方法一:1、DUMP TRANSACTION 数据库名 WITH NO_LOG 2、再打开企业管理器--右键你要压缩的数据库--所有任务--收缩数据库--收缩文件--选择日志文件--在收缩方式里选择收缩至XXM,这里会给出一个允许收缩到的最小M数,直接输入这个数,确定就可以了。方法二:backup log 数据库名 with NO_LOGbackup log 数据库名 with TRUNCATE_... 阅读全文
posted @ 2010-11-08 19:48 猎魔人 阅读(195) 评论(0) 推荐(0) 编辑
摘要: using System.Net;using System.IO; private string GetPageCodes(string Url) { string strHtml = ""; WebRequest web = WebRequest.Create(Url); //WebResponse hwr = web.GetResponse(); HttpWebResponse hwr = (... 阅读全文
posted @ 2010-11-08 19:48 猎魔人 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 数据库表间数据复制 --1.表结构相同的表,且在同一数据库(如,table1,table2) Sql :insert into table1 select*from table2 (完全复制)insert into table1 selectdistinct*from table2(不复制重复纪录)insert into table1 selecttop 5 *from table2 (前五条纪录... 阅读全文
posted @ 2010-11-08 19:46 猎魔人 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 方法1在 Page_Load 事件中给关闭按钮添加属性加入:[代码]方法2给关闭按钮添加“client-side script”:[代码] 阅读全文
posted @ 2010-11-08 19:44 猎魔人 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 以前从一个表中随机获取数据的时候,都是先把数据读取到来,然后再在程序中来随机抽取一部分数据, 今天告诉大家一种使用 SQL 语句的方法来随机获取一部分数据SQL Server:-- 随机获取 10 条数据SELECT TOP 10 * FROM 表名 ORDER BY NEWID()ORACLE:-- 随机获取 10 条数据SELECT * FROM (SELECT * FROM 表名 ORDER... 阅读全文
posted @ 2010-11-08 19:44 猎魔人 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: 同数据库之间复制表的数据的方法:go use 数据库名go select * into 目标表名 from 源表名go不同数据库之间复制表的数据的方法:当表目标表存在时:insert into 目的数据库..表 select * from 源数据库..表当目标表不存在时:select * into ... 阅读全文
posted @ 2010-11-08 19:43 猎魔人 阅读(333) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页