- 博客(48)
- 资源 (3)
- 问答 (8)
- 收藏
- 关注
原创 c#通过在线http路径直接保存文件到浏览器
1,第一步先下载文件到本地项目路径 string URLAddress = @"https://sta.guazistatic.com/node_web/lnck.604fd454d04a588391ef47978f7cc15d.png"; string receivePath = Server.MapPath("/Content/...
2018-08-16 22:02:13 1741
原创 mvc-render-partial-view-to-string
public virtual string RenderPartialViewToString(string viewName, object model) { //Original source code: http://craftycodeblog.com/2010/05/15/asp-net-mvc-render-partial-view-to-stri...
2018-05-16 15:25:02 392
原创 上传文件保存字节流,下载
public ActionResult ExcelUpLoad(HttpPostedFileBase file, string type) { string filePath = string.Empty; var contentType = ""; if (file != null)
2017-12-19 16:22:37 860
翻译 CSS锚点
CSS锚点使用有两种方法: 到达第一个锚点 到达第二个锚点 我是第一个锚点 我是第一个锚点 这样当我们点击A链接时, 对应的DOM节点就会滚动到窗口顶部。 但有时我们的需求并不是让它滚动到窗口顶部。 可能要他距离顶部有一定的距离。这时候可以由以下方法解决。 到达第一个锚点 到达第二个锚点
2017-11-30 13:28:09 1016
原创 sql 循环插入20万条数据
DECLARE @number INT SET @number = 200000 WHILE @number > 0 BEGIN INSERT dbo.Article ( MsId, Title, TitleBak, Summary, SummaryImage
2014-12-26 11:23:41 1339
原创 sql 去重并排序问题
字段1 字段2 字段3 1 a A 2 a B 3 b V 4 b F 5 c O 6 d G类似上边的表,现在想去重查询出字段2所有值,然后按字段1排序,应该怎么写sql语句?结果出来应该是:abcd
2014-12-22 16:31:48 6192 1
转载 sql server 2000、2008 删除日志,收缩LDF文件
sqlserver 2000、2008会保存所有的数据库操作过程,将指令保存在ldf文件中,如果误删除数据,想恢复数据的话,可以通过Lumigent Log Explorer For SQLServer 软件分析ldf文件,可以看到所有执行过的insert、update、delete数据,导出来再逆向执行即可,本人曾经用过一回,确实奏效。1、sql server 2000清理数据库日志US
2014-12-10 13:51:46 1892 1
转载 SQL Server判断临时表是否存在
1 判断数据库是否存在Sql代码 if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名] if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名]2 判断表是否
2014-12-10 13:49:54 1829
原创 sql 查询
USE [FeiPiao_BookHotelRoom]GO/****** Object: StoredProcedure [dbo].[FP_PR_OrderTicketList] Script Date: 01/24/2014 11:26:38 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- ===
2014-01-24 11:51:17 647
原创 SQL 更新
USE [FeiPiao_BookHotelRoom]GO/****** Object: StoredProcedure [dbo].[FP_PR_FlightOrderTicket] Script Date: 01/24/2014 11:38:32 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- =
2014-01-24 11:48:00 504
转载 火狐浏览器里实现纯英文纯数字字符自动换行
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfdfasdfasdfasdfasdfasdfas
2011-12-13 14:14:21 853
转载 淘宝网图片预览效果
<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><title>淘宝网图片预览效果</title><br /><meta http-equiv="content-type"
2010-07-15 08:30:00 1303 1
转载 Js图片浏览器
<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /> <head><br /> <title>Js图片浏览器</title><br /> </head><br /> <body><br /> <bu
2010-07-15 08:17:00 1730
转载 实现图片局部放大_放大镜效果
<br /><!DOCTYPEhtmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=gb23
2010-07-14 23:18:00 7184
转载 js图片放大
<br /><!DOCTYPEHTMLPUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><br /><HTML xmlns=" http://www.w3.org/1999/xhtml"><HEAD><TITLE>js图片放大</TITLE><br /><META http-equiv=Content-Type content="text/ht
2010-07-14 23:16:00 805
转载 ul 网站频道制作
<br /><html><br /><head><br /><title>ul 网站频道制作</title><br /><style type="text/css"><br />*{margin:0px;padding:0px;font-size:12px;}<br />#nav li{float:left; list-style:none;}<br />#nav li a{color:#000;text-decoration:none;display:block;width:100px;height:25
2010-07-14 23:13:00 366
转载 弹出窗口登录效果
<br /><html><br /><head><br /> <meta http-equiv="Content-Type"content="text/html; charset=gb2312"/><br /> <meta name="author" content="www.newxing.com" /><br /> <meta name="author email" content="123@linhaibo.com" /><br /><title>弹出窗口登录效果</title><br
2010-07-14 23:07:00 1702
转载 实现图片滑动切换展示效果
<br />//IE:<br /> window.frames["frameID"].document<br />//FIREFOX:<br /> windo.frames["frameID"].document<br /><br />//两者通用:<br /> document.getElementById("frameID").contentWindow.document<br /> <br /> <br /> <br /> <br /> <br /> <br /><HTML><H
2010-07-14 23:06:00 2122
转载 Javascript控制DIV上下移动(仿265移动特效)
<br /><!DOCTYPEhtmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=gb23
2010-07-14 23:03:00 1622
转载 Javascript实现单击"更多"链接弹出菜单选项
<br /><html><br /><head><br /><script language="javascript"><br />var $ = function(i) {<br /> returndocument.getElementById(i)<br />};<br />function moreshow() {<br /> var e = $('morelist');<br /> if (e.style.display != 'block') {<br /> e.s
2010-07-14 23:02:00 723
转载 图片旋转展示
<br /><!DOCTYPEhtmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-
2010-07-14 23:01:00 469
转载 Javascript控制图片围成3D模型旋转展示
<br /><!DOCTYPEhtmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-
2010-07-14 22:58:00 1278
转载 PHP中9个必须知道的实用函数及功能应用
<br />数目的函数<br />你可能已经知道,PHP 允许定义可选参数的函数。但也有完全允许任意数目的函数参数的方法。以下是可选参数的例子:// function with 2 optional argumentsfunction foo($arg1 = '', $arg2 = ''){ echo"arg1: $arg1/n"; echo"arg2: $arg2/n"; }foo('hello', 'world');/** prints:
2010-07-14 22:57:00 349
转载 Javascript 实现DIV透明度渐变、移动放大等效果
<br /><!DOCTYPEHTMLPUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><br /><html><br /><head><br /><title>透明度渐变、位置移动函数</title><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><br /><script><br />
2010-07-14 22:56:00 2420 1
转载 CSS3圆角(个别的)
<br />#roundCorderC{<br />font-family: Arial;<br />border: 5px solid #dedede;<br />-moz-border-radius: 15px;<br />-webkit-border-radius: 15px;<br />padding: 15px 25px;<br />height: inherit;<br />width: 590px;<br />}<br /> <br /> <br />#roundCornerI{<br />
2010-07-14 22:51:00 386
转载 简单高效的JS 幻灯片图片播放特效
<br /><!DOCTYPEhtmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-
2010-07-14 22:49:00 2176
原创 LIKE
<br />愿大家春节快乐,身体健康,万事大吉.<a href="www.rontgens.com">人力资源服务</a>《程序员》杂志本期开始以用户体验为主题,一些读者可能会觉得奇怪。毕竟,我们的读者主要是技术人员,属于工程领域,而用户体验更常被归为艺术一类,一个理性,一个感性,似乎是两个世界。
2010-06-30 23:04:00 356
转载 滑动图片展示效果(js+css)
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">www.zishu.cn*{ margin:0; padding:0; list-style:none;}body{ font-family:Verdana; font-size:12px; line-height:1.8;
2010-02-01 19:08:00 906
转载 jq,TAB
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">jQuery Tabs By Await http://leotheme.cn/>* { margin:0 auto; padding:0; font-family:"宋体",Arial, Helvetica, sans-se
2010-01-21 13:39:00 632
转载 JQ换行换色
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">StripingTablehttp://leotheme.cn/wp-includes/js/jquery/jquery.js">>$(document).ready(function(){ $(".stripe li
2010-01-21 13:16:00 1572
转载 伸缩JQ
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">可伸缩块p,div{margin:0;padding:0; font-size: 12px;}.box {float: left; margin-left: 20px; dipaly:inline;}.title1,.titl
2010-01-21 13:15:00 724
转载 点击文字弹出一个DIV层窗口代码
点击文字弹出一个DIV层窗口代码 .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%;
2010-01-12 16:26:00 1153
转载 CSS+JS实现点击文字弹出定时自动关闭的DIV层菜单
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">CSS+JS弹出DIV层var w = 0;var h = 0;var mout;function emotion(){var oMenu = document.getElementById("menu");if(w oM
2010-01-12 14:57:00 2747
转载 JS实现点击文本框弹出DIV层
new pagefunction crertdiv(_parent,_element,_id,_css){//创建层 var newObj = document.createElement(_element); if(_id && _id!="")newObj.id=_id; if(_css && _css!
2010-01-12 14:37:00 2715
原创 JS TIME
http://www.w3.org/1999/xhtml"> 当前时间 http://www.hsgeco.com/misc/jquery.js">> //function getCurrentDate() { // var userAgent = navigator.userAgent.toLowerCase(); // 因IE的年为2008和FF为108,判断 /
2010-01-04 14:52:00 925
转载 TAB标签效果
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档body{ color: #000; font-family: "宋体", arial; font-size: 12px; background: #fff; text-align: center; margin
2010-01-04 10:04:00 554
jqgrid linq 分页查询问题
2019-08-30
c# 列表表头按字段设置如图
2019-05-14
c# windows 服务程序 内存越来越大
2018-11-07
ie中 jquery on方法不支持?
2018-06-26
js 正则匹配0-9 a-z A-Z @_.-
2018-04-03
企业微信可以调用微信支付吗?
2017-04-20
post 表单数据时 再添加一个 jquery+ajax 事件?
2015-05-12
c# Bitmap 生成图片并添加边框
2015-04-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人