随笔分类 - .NET
摘要:转自 http://blog.csdn.net/honantic/article/details/51082957 1.重定向方法简介[csharp] view plain copy print?[HttpPost] public ActionResult StudentList( string S
阅读全文
摘要:摘自:http://blog.csdn.net/qiujialongjjj/article/details/6639252 前台页面跳转: 1、带frame的跳转 a window.frames.frameName.location.href= url; //frameName代表某个frame,u
阅读全文
摘要:摘自csdn: http://blog.csdn.net/qiujialongjjj/article/details/20033943 设置RemotingFormat = SerializationFormat.Binary;再序列化,通过WebService传输,客户端接收,再反序列化,确实效果
阅读全文
摘要:一般在Jquery中会用下面的方式来添加新标签: var obj = "<fieldset data-role='controlgroup' data-type='vertical' data-role='fieldcontain'> <input id='menu0" type='checkbox
阅读全文
摘要:从数据库取得数据之后,转换成json显示在前台,在转换json时发现yyyy-MM-dd HH:mm:ss格式的日期变成了yyyy-MM-ddTHH:mm:ss, 日与小时之间多出个T字符.这是因为 Newtonsoft.Json转换json导致的; Newtonsoft.Json产生的默认日期时间
阅读全文
摘要:引入NOPI进行导出(推荐) 学习地址: http://www.cnblogs.com/stone_w/archive/2012/08/02/2620528.html 下载NOPI插件,引入程序集
阅读全文
摘要:图片是上传附件的代码,下载过来改成rar后缀就ok
阅读全文
摘要:public List<UserBaseInfoModel> GetCityByExamId(Guid ExamID) { var cur_user = this.GetCurrentUser(); using (SqlConnection conn = new SqlConnection(conn
阅读全文
摘要:本文转自:http://www.th7.cn/Program/net/201404/192102.shtml 随着VS版本和.NET MVC版本、EF的版本的不断更新,虽然很多功能随着版本的提升而更完善,但对于旧版本开发的软件就有点悲催了,或许很多开发者都遇到类似的问题! 最近有一个项目是用.NET
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;using System.Xml;using IM.BLL;using IM.Mode
阅读全文
摘要:public DataSet getProjectDs(int pageRecord, int page, string searchVal, string operateUserId) { bool searchAll = SecurityUtil.hasPermission(operateUserId, "功能权限/项目管理/项目列表/...
阅读全文
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="daochuepm.aspx.cs" Inherits="Web.emp.emp.daochuepm" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XH
阅读全文
摘要:protected void btnExcel_Click(object sender, EventArgs e) { string Type = string.Empty; int PageRecord = int.MaxValue; int Page = 1; string SearchHtml = this.txtSe...
阅读全文
摘要:String字符串如何按多个字符采用Split方法进行分割呢?本文提供VS2005和VS2003的实现方法,VS2005可以用下面的方法: string agentInfo = userInfo.Attribute19.ToString(); string[] myAgent = agentInfo
阅读全文
摘要:调用方法: string sysId = WebTool.getValue(Request, "sysId"); public static string getValue(System.Web.HttpRequest request, string key) { string keyValue =
阅读全文
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sabbaticalimport.aspx.cs" Inherits="hr_Sabbatical_Sabbaticalimport" %> <!DOCTYPE html PUBLIC "
阅读全文
摘要:File.Delete(System.Web.HttpContext.Current.Server.MapPath("../" + img)); //System.Web.HttpContext.Current.Server.MapPath("../" + img) ----这个可以获取调用这个一般
阅读全文
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Vote_SubjectAdd.aspx.cs" Inherits="oa_vote_Vote_SubjectAdd" %> <!DOCTYPE html PUBLIC "-//W3C//
阅读全文
摘要:<asp:Button ID="btnTrue" runat="server" Text="保 存" OnClientClick="if(checkResult()){this.value='正在保存';this.disabled=true;}else {return false ;}" UseSu
阅读全文
摘要:数据库中的bit类型就是.NET中的bool类型。1 表示 true0 表示 false
阅读全文

浙公网安备 33010602011771号