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