2018年12月6日

SQL数据库异地备份

摘要: 服务器:windows sever 2008(简称为A) 数据库:SQL server 2008 R2(安装在A上) 普通台式机:windows 7(简称为B) 目的:将A中的数据定时自动备份到B中 前提:确保A和B在同一局域网内 思路:在B上建立一个共享文件夹,在A的数据库中建立自动备份计划,将数 阅读全文

posted @ 2018-12-06 17:06 MyBeN 阅读(2148) 评论(0) 推荐(0) 编辑

2017年2月23日

ASP.Net中后台控制页面提示信息的显示方式

摘要: ASP.Net中后台控制页面提示信息的显示方式 ScriptManager.RegisterStartupScript(this, typeof(Page), "", "<script>alert("删除失败~!")</script>", false); (1).(e.Row.Cells[4].Fi 阅读全文

posted @ 2017-02-23 15:34 MyBeN 阅读(638) 评论(0) 推荐(0) 编辑

2016年11月3日

分页打印

摘要: <html><head> <title>看看</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <!--media=print 这个属性可以在打印时有效--> <style media="prin 阅读全文

posted @ 2016-11-03 15:27 MyBeN 阅读(245) 评论(0) 推荐(0) 编辑

2015年4月16日

ado.net 调用带参数的存储过程

摘要: String connString = "Data Source = localhost; Initial Catalog = hkjc;User ID = sa;Pwd = 123"; SqlConnection conn = new SqlConnection(connString); ... 阅读全文

posted @ 2015-04-16 10:06 MyBeN 阅读(1222) 评论(0) 推荐(0) 编辑

2015年4月3日

C#调取java接口

摘要: 1.public class APIRequest { //public static string commonUrl = @"http://192.168.2.186:8080/sale/"; public static string commonUrl = @"http://115.29.10... 阅读全文

posted @ 2015-04-03 16:19 MyBeN 阅读(2240) 评论(0) 推荐(0) 编辑

POS配置

摘要: 1.配置 (1) 房产局 (2) 银联端 2.运行 (1) 房产端 右击BizMAPSSP项目---Run As—run congfigurations—Java Application—选择BizMAPSSP---Run(快速运行方法:点... 阅读全文

posted @ 2015-04-03 10:20 MyBeN 阅读(552) 评论(0) 推荐(0) 编辑

SQL 防止注入

摘要: var strsql = "insert into Staff_Answer (ExamTitleID,QuestionsID,MultipleChoice,RightOption,AnswerOption,IsRight,Score,StaffScore,Remark,State,Creator,... 阅读全文

posted @ 2015-04-03 09:24 MyBeN 阅读(352) 评论(0) 推荐(1) 编辑

C# 判断是否是节假日

摘要: 1.引用Newtonsoft.Json.dll2. /// /// 判断是不是节假日,节假日返回true /// /// 日期格式:yyyyMMdd /// public static bool IsHolidayByDate(string date) { bool isHoliday ... 阅读全文

posted @ 2015-04-03 08:51 MyBeN 阅读(6806) 评论(1) 推荐(0) 编辑

2015年2月9日

java 判断日期是否是节假日

摘要: 1.新建一个excel命名为“节假日.xls”存放节假日,模板格式如下2.判断是否是节假日的类 工作日返回true ,休息日返回false。需要引用poi-bin-3.9包,包放在博客文件中import java.io.File;import java.io.FileInputStream;impo... 阅读全文

posted @ 2015-02-09 10:55 MyBeN 阅读(29870) 评论(1) 推荐(0) 编辑

2014年11月24日

生成验证码方法

摘要: /** * 生成验证码方法 * 创建指定数量的随机字符串 * @param numberFlag 是否是数字 * @param length * @return */ public static String createRandom(boolean numberFlag, int length)... 阅读全文

posted @ 2014-11-24 16:26 MyBeN 阅读(473) 评论(0) 推荐(1) 编辑

导航