- 博客(39)
- 收藏
- 关注
转载 ASP.Net MVC Action重定向跳出Controller和Area
转自 http://blog.csdn.net/honantic/article/details/51082957 1.重定向方法简介[csharp] view plain copy print?[HttpPost]publicActionResultStudentList(stringStudName,stringstudName,DateTimeBirt...
2017-04-11 18:04:00 100
转载 前后台页面跳转方式搜集
摘自:http://blog.csdn.net/qiujialongjjj/article/details/6639252 前台页面跳转: 1、带frame的跳转 a window.frames.frameName.location.href= url; //frameName代表某个frame,url代表跳转的路径。 b ...
2017-01-11 16:30:00 156
转载 WebService下实现大数据量的传输
摘自csdn: http://blog.csdn.net/qiujialongjjj/article/details/20033943 设置RemotingFormat = SerializationFormat.Binary;再序列化,通过WebService传输,客户端接收,再反序列化,确实效果大大的优于直接传送DataSet,不仅网络传输中如此,即使本机,性能改善也非常...
2017-01-11 16:13:00 159
转载 用Jquery动态append方式加入标签时Css样式丢失的解决方法
一般在Jquery中会用下面的方式来添加新标签: var obj = "<fieldset data-role='controlgroup' data-type='vertical' data-role='fieldcontain'> <input id='menu0" type='checkbox'/><la...
2016-08-22 13:42:00 336
转载 从数据库取到数据转换json后,时间格式带上T的解决办法
从数据库取得数据之后,转换成json显示在前台,在转换json时发现yyyy-MM-dd HH:mm:ss格式的日期变成了yyyy-MM-ddTHH:mm:ss, 日与小时之间多出个T字符.这是因为 Newtonsoft.Json转换json导致的; Newtonsoft.Json产生的默认日期时间格式为:IsoDateTimeConverter 格式 解决办法如下, 引入下...
2016-08-18 15:07:00 342
转载 {转}“远程服务器返回错误: (417) Expectation failed“解决方法
转自:http://blog.csdn.net/hustypf/article/details/8132158 在用c#做zhaopin.com网站自动登陆的时候,一直返回“远程服务器返回错误: (417)Expectation failed”这个提示,在检查确认代码没有问题后,google了一下找到了解决方案: 在代码的最开始加入如下一句:System.Net.Service...
2016-05-25 14:52:00 502
转载 Iframe自适应高度
@{ ViewBag.Title = "首页"; Layout = "~/Views/Shared/_Layout_0.cshtml"; } <script type="text/javascript" language="javascript"> function iFrameHeight() { ...
2016-05-23 14:55:00 54
转载 Excel导出
public void CreateKekaoExcel1(DataTable dt, string FileName) { if (dt.Rows.Count > 0) { Response.ClearContent(); ...
2016-05-23 09:36:00 99
转载 uploadify上传文件代码
图片是上传附件的代码,下载过来改成rar后缀就ok 转载于:https://www.cnblogs.com/Zpyboke/p/5362680.html
2016-04-07 11:08:00 54
转载 事务处理拼接sql语句对数据库的操作.异常回滚
public List<UserBaseInfoModel> GetCityByExamId(Guid ExamID) { var cur_user = this.GetCurrentUser(); using (SqlConnection conn = new SqlConnection...
2016-04-07 10:41:00 104
转载 uploadify 上传插件的版本变更的问题
使用uploadify 3.1版时,要注意这2个属性:'uploader' : ’‘,这属性是用法发送action请求'swf' : 'js/uploadify/uploadify-3.1.swf',//这属性指向官方自带的swf文件;而3.1版以前的版本是用:'script' : '', //这属性来发送action请求而'uploader' : 'uploader.swf', //这...
2016-04-07 09:52:00 70
转载 MVC项目迁移的一些配置问题(转)
本文转自:http://www.th7.cn/Program/net/201404/192102.shtml 随着VS版本和.NET MVC版本、EF的版本的不断更新,虽然很多功能随着版本的提升而更完善,但对于旧版本开发的软件就有点悲催了,或许很多开发者都遇到类似的问题! 最近有一个项目是用.NET MVC3+EXT.NET MVC开发的(当时使用本博客中Ext.Net MVC...
2016-04-05 10:53:00 103
转载 sql事务
原文出处: http://blog.csdn.net/tjvictor/article/details/4074240# 本节主要介绍Sql语句,SqlTransaction和TransactionScope这三种使用事务的方法。 本节的所有例子都在sql server 2008和vs 2008环境下运行通过,如果没有sql server2008,那...
2016-03-23 23:50:00 143
转载 web Service 接口对xml数据处理
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Xml; using IM.BLL; using IM.Model; using System.IO; using S...
2016-03-21 17:59:00 114
转载 数据后台查询分页条件查询数据
public DataSet getProjectDs(int pageRecord, int page, string searchVal, string operateUserId) { bool searchAll = SecurityUtil.hasPermission(operateUserId, "功能权限/项目...
2016-03-18 17:28:00 119
转载 避免js缓存
<script type="text/javascript"> document.write("<script type='text/javascript' src='../js/inMaterial.js?dd" + Math.random() + "'></scr" + "ipt>"); </script> 转载...
2016-03-18 15:48:00 86
转载 jquery点击按钮
$("#btnExcel").click(); 转载于:https://www.cnblogs.com/Zpyboke/p/5283153.html
2016-03-16 13:37:00 78
转载 网页内容打印
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="daochuepm.aspx.cs" Inherits="Web.emp.emp.daochuepm" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w...
2016-03-16 10:57:00 66
转载 数据表的导出
protected void btnExcel_Click(object sender, EventArgs e) { string Type = string.Empty; int PageRecord = int.MaxValue; int Page = 1; string SearchHtml =...
2016-03-15 17:22:00 75
转载 C#实现字符串按多个字符采用Split方法分割
String字符串如何按多个字符采用Split方法进行分割呢?本文提供VS2005和VS2003的实现方法,VS2005可以用下面的方法: string agentInfo = userInfo.Attribute19.ToString(); string[] myAgent = agentInfo.Split(new string[] { "$#$" }...
2016-03-10 10:16:00 100
转载 后台获取页面传入值,并验证
调用方法:string sysId = WebTool.getValue(Request, "sysId"); public static string getValue(System.Web.HttpRequest request, string key) { string keyValue = string.Empty;...
2016-03-09 18:11:00 148
转载 导入Excel表的前台页面和后台代码
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sabbaticalimport.aspx.cs" Inherits="hr_Sabbatical_Sabbaticalimport" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio...
2016-03-04 16:55:00 109
转载 根据相对路径在一般处理程序中删除文件的方法
File.Delete(System.Web.HttpContext.Current.Server.MapPath("../" + img)); //System.Web.HttpContext.Current.Server.MapPath("../" + img) ----这个可以获取调用这个一般处理程序方法的页面的地址.等于那个页面后台用 Server.MapPath 得到的...
2016-03-04 10:24:00 168
转载 上传图片文件和在线文本编辑器的使用
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Vote_SubjectAdd.aspx.cs" Inherits="oa_vote_Vote_SubjectAdd" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
2016-03-04 10:17:00 100
转载 点击按钮先执行JS判断之后在进入后台代码
<asp:Button ID="btnTrue" runat="server" Text="保 存" OnClientClick="if(checkResult()){this.value='正在保存';this.disabled=true;}else {return false ;}" UseSubmitBehavior="false" class="btnblue1" ...
2016-03-04 10:14:00 115
转载 在线文本编辑器kindeditor简单化
$(document).ready(function () { KindEditor.ready(function (K) { editor = K.create('#txtMainContent', { cssPath: '../../common/kindeditor/plugins/code...
2016-03-02 18:49:00 47
转载 jQuery时间验证和转换为标准格式的时间
var TimeObjectUtil; /** * @title 时间工具类 * @note 本类一律违规验证返回false * @author {boonyachengdu@gmail.com} * @date 2013-07-01 * @formatter "2013-07-01 00:00:00" , "2013-07-01" */ TimeObje...
2016-02-29 17:53:00 74
转载 sql查询结果直接拼接
select a.*,(a.startTime+'|'+a.endTime) as states from OA_Vote_Subject as a where 1=1 拼接后的states为2016-02-02 00:00:00|2016-02-29 00:00:00 转载于:https://www.cnblogs.com/Zpyboke/p/5228190.h...
2016-02-29 17:25:00 94
转载 jquery分割字符串取值
var strs = new Array(); var res="a*b"; strs = res.split("*"); strs[0] 的值为a, strs[1] 的值为b 转载于:https://www.cnblogs.com/Zpyboke/p/5228176.html
2016-02-29 17:21:00 120
转载 上传图片附件验证和预览
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Vote_SubjectItemAdd.aspx.cs" Inherits="oa_vote_Vote_SubjectItemAdd" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio...
2016-02-29 11:08:00 107
转载 true和false在c#和sql中的情况
数据库中的bit类型就是.NET中的bool类型。1 表示 true0 表示 false 转载于:https://www.cnblogs.com/Zpyboke/p/5216979.html
2016-02-25 14:51:00 181
转载 Json数据转换
using System.Web.Script.Serialization;//反序列化using System.Collections;using System.Runtime.Serialization.Json;//重要using Newtonsoft.Json;//重要using Newtonsoft.Json.Converters;//重要using System.IO;usi...
2016-02-23 13:30:00 60
转载 一些页面元素的遍历,元素的选择
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeviceChecks1.aspx.cs" Inherits="WebSite.Emp.Device.CompanyCheck.DeviceChecks1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
2016-02-19 15:19:00 70
转载 使用append为html页面添加元素样式丢失的解决办法
$(this).find(".isok").empty(); $(this).find(".isok").append(data1); $(this).find(".isok").trigger("create");//重要!这名的意思是重新加载所在标签的样式。非常有用的一句话,不加...
2016-02-19 15:17:00 389
转载 固定页面顶部或底部的HTML/CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...
2016-02-19 10:24:00 111
转载 实现对附件的操作.
在html页面中定义附件初始情况 <td style="background:#F3F8FD; border-top-style: none; border-top-color: inherit; border-top-width: medium;" class="style1"> 附件: ...
2016-01-25 11:40:00 105
转载 多选框数据绑定,js控制显示隐藏选中等方法
<td style="background:#F3F8FD; border-top-style: none; border-top-color: inherit; border-top-width: medium;" class="style1">投资分阿类:</td> ...
2016-01-25 10:38:00 166
转载 路径中 斜杠/和反斜杠\ 的区别
Unix使用斜杆/ 作为路径分隔符,而web应用最新使用在Unix系统上面,所以目前所有的网络地址都采用 斜杆/ 作为分隔符。 Windows 由于使用 斜杆/ 作为DOS命令提示符的参数标志了,为了不混淆,所以采用 反斜杠\ 作为路径分隔符。所以目前windows系统上的文件浏览器都是用 反斜杠\ 作为路径分隔符。随着发展,DOS系统已经被淘汰了,命令提示符也用的很少,斜杆和反斜杠在...
2015-10-23 11:00:00 69
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人