- 博客(18)
- 收藏
- 关注
转载 集合随机打乱顺序
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Program { st...
2017-03-23 20:05:00
310
转载 写入日志
public static void WriteLog(string strLog){ string sFilePath="d:\\"+DateTime.Now.ToString("yyyyMM"); string sFileName = DateTime.Now.ToString("dd") + ".log"; sFileName = sFilePath...
2016-12-15 09:41:00
190
转载 网页判断是手机浏览器登录还是电脑浏览器
public static bool CheckAgent() { bool flag = false; string agent = HttpContext.Current.Request.UserAgent; string[] keywords = { "Android", "iPh...
2016-05-05 19:54:00
357
转载 oracle数据库rman备份与还原
我是oracle 界的小白,由于公司领导要求,不得不硬着头皮在网上找rman备份还原的方法,废话不多说,具体看例子(window)运行CMD;rman target 管理员账号/密码@orcl备份run{allocate channel d1 device type disk format 'F:\OracleBakupNew\switch40%u';backup fu...
2016-04-29 16:07:00
195
转载 .net上传图片并转成二进制流
话不多说,直接上代码 <input id="InputFile" style="width: 399px" type="file" runat="server" /> <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click" /> ...
2016-03-20 18:27:00
335
转载 网页 缓存
掉用缓存方法:var listModel =ProclamationCache.GetProclamationList();//实现方法 public static List<ProclamationModel> GetProclamationList() { var cache = GetTopProclamationLis...
2016-03-03 15:23:00
86
转载 js 获取url 参数
$(function () { var WeixinCode = GetQueryString("WeixinCode"); $("#ProXQ").attr('href', '/Procla/Procla/Index?code='+ WeixinCode+''); }) function GetQueryStri...
2015-08-31 09:18:00
76
转载 ajax后台return,js判断方法
private string CreateJoson(string result, string message) { return "{" + "\"result\":\"" + result + "\",\"messageInfo\":\"" + message + "\"}"; }例如: return CreateJoson(...
2015-08-28 18:52:00
120
转载 dropdownlist分页
<div class="new-paging" id=""> <div class="new-tbl-type"> <div class="new-tbl-cell"> <a href="<%=prevurl %>" cl...
2014-05-27 17:59:00
149
转载 格式化日期时间 计算时间差
/// <summary> /// 格式化日期时间 /// </summary> /// <param name="dateTime1">日期时间</param> /// <param name="dateMode">显示模式</param>...
2014-05-12 16:07:00
142
转载 js 倒计时 button不可用
1 function showtime() { 2 fun_timedown(5); 3 } 4 function fun_timedown(time) { 5 $("#timedown").val(time + "秒"); 6 time = tim...
2014-03-23 11:07:00
115
转载 .net 下载图片
最近boss让写一个二维码的生成器,但是二维码生成后用户如果想下载二维码,这就促使我写l了 下载功能,小弟自认为技术不咋样,是个彻头彻尾的码农,本先是想用js来实现功能,但是查找了好多资料也没能实现,最后还是想到了后台代码。。。好了废话就不多说了下面看代码吧.... 首先在前台页面加上一个<asp:LinkButton runat="server" onclick...
2014-03-12 20:59:00
157
转载 截取字符串
1 /// <summary> 2 /// 截取指定长度字符串 3 /// </summary> 4 /// <param name="inputString">要处理的字符串</param> 5 /// <param name="len">...
2014-02-25 09:22:00
108
转载 js 后台弹窗
后台弹出操作成功,失败信息 1 /// <summary>2 /// 弹出信息,并跳转指定页面。3 /// </summary>4 public static void AlertAndRedirect(string message, string toURL)5 ...
2014-02-25 09:16:00
290
转载 账号注册,密码安全级别提示(弱、中、强)代码
依照惯例先让各位看官看下效果,然后再看代码1 <input id="passw" type="password" />2 <div class="maxdiv" >3 <div></div>4 <div></div>5 <di...
2014-02-24 16:50:00
709
转载 jquery 评论等级(很差,差,一般,好,很好)代码
可能标题没有说的太明白,这里先让大家看一下效果,以便让客官们了解小弟说的是什么...看完效果后估计各位客官已经明白小弟说的是什么了吧,下面小弟就带大家看下代码<style> .maxdiv div{ height:10px; width:20px; border:1px...
2014-02-22 15:47:00
120
转载 文本框限制字数输入无刷新提示
<script type="text/javascript"> $(function(){ $("#input1").keyup(function(){ $('span').empty(); var txtleng...
2014-01-25 16:25:00
86
转载 页面所有的button绑定同一个事件,点击不同的button赋值不同
1 <script type="text/javascript"> 2 $(function(){ 3 $("input[type='button']").click(function(){ 4 var id=$(this).attr("id"); 5 //$...
2014-01-23 16:13:00
1070
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人