View Controller: /// /// 获取用户列表 /// public ActionResult getUserList() { //判断参数不为空 if (string.IsN... Read More
posted @ 2015-08-12 17:50 假面灬兽王 Views(229) Comments(0) Diggs(0) Edit
cs.cs(类页面)using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace CityIndex{ #region ChineseCalendarException ... Read More
posted @ 2014-12-30 12:28 假面灬兽王 Views(661) Comments(0) Diggs(0) Edit
public List, Tuple>> GetTupeDate(List publicList) { //按条件分组求和 var grouplist = publicList.GroupBy(t => t.WORKUNIT).Select(g => new { unitN... Read More
posted @ 2017-02-09 16:18 假面灬兽王 Views(3689) Comments(0) Diggs(0) Edit
controller动态获取单位用户树 #region 下拉树菜单 /// /// 获取工作人员树菜单 /// /// /// /// public string GetUserMenu(int addid) { AID_UNIT... Read More
posted @ 2017-01-09 10:11 假面灬兽王 Views(2366) Comments(0) Diggs(0) Edit
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch(); watch.Start(); //开始监视代码运行时间 //需要测试的代码 watch.Stop(); //停止监视 TimeSpan timespan Read More
posted @ 2016-12-20 11:23 假面灬兽王 Views(175) Comments(0) Diggs(0) Edit
view ControllerUser user = client.GetUser(id.ToString());string pwd = client.DecryptPsd(user.U_ID.ToString()); ViewData["u_psd"] = pwd;... Read More
posted @ 2015-08-28 16:02 假面灬兽王 Views(853) Comments(0) Diggs(0) Edit
MVC 带进度条的上传下载 Read More
posted @ 2015-05-20 16:19 假面灬兽王 Views(216) Comments(0) Diggs(0) Edit
步骤:1。运行--〉cmd:打开cmd命令框2。在命令行里定位到InstallUtil.exe所在的位置InstallUtil.exe 默认的安装位置是在C:/Windows/Microsoft.NET/Framework/v2.0.50727里面,所以你要在cmd里通过cd定位到该位置(cd C:... Read More
posted @ 2015-05-08 17:25 假面灬兽王 Views(428) Comments(0) Diggs(0) Edit
.Net中反射机制, 一般常用的就是这两句:Type type=Assembly.Load("RoadFlow.Data."+dataType).GetType(typeName,ture);obj=Activator.CreateInstance(type);我们常说的工厂模式,基本上就是使用反射... Read More
posted @ 2015-03-13 12:07 假面灬兽王 Views(143) Comments(0) Diggs(0) Edit
.aspx页:一个textbox(txtIP)输入服务器地址,一个button(Btn_ok)点击测试,一个listbox(lboxContent)显示测试信息.aspx.cs页:using System.Net.NetworkInformation;using System.Net;using S... Read More
posted @ 2015-03-03 15:46 假面灬兽王 Views(1062) Comments(0) Diggs(0) Edit