摘要:1.alert(x||y);x若不为空(包括:undefined,null,'',false)则显示x,x若为空,在显示y(无论y为什么,都会是y)
阅读全文
摘要:#parse("$!jc.skinpath/exam/cart.ascx")var CategoryId = "$!this.loadCategory_combo().get_item(0).Id";StringUtil.ArrayToDelimitedString(LoginUser.Subjec...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Linq;using TeaDapp...
阅读全文
摘要:思路:将文件转化为流,输出到页面上的iframe中去 //下载附件逻辑 object DownLoad(NameValueCollection nv) { int attachId = nv["attachid"].ToInt(); ...
阅读全文
摘要:1.将json字符串转化为动态类型并调用 dynamic d = JObject.Parse(actionModel.jsonEntity); string username = d.UserName.ToString();2.将json字符串直接转换为对象 var actionModel = Utils.ParseFromJson(action); EmailInfo entity = (EmailInfo)Newtonsoft.Json.JsonConvert.DeserializeObject(actionModel.jsonEntity, typeof(Ema...
阅读全文
摘要:1.datatable.select 方法,返回的是一个datarow数组 DataRow[] drs = dtHBKC.Select("SubjectName='" + course + "' and WeekHour=" + weekHour + " and StartWeek=" + startWeek + " and EndWeek=" + endWeek + " and ClassName like '%" + className + "%'&
阅读全文