直接看代码: JS代码如下: <script type="text/javascript" language="javascript"> function checkAll() { for (var i = 0; i < document.getElementById("cblStatuteEnumTypeId").getElementsByTagName("input").length; i++) { do
本篇使用ASP.NET Web API来体验OData各种query. 首先是本篇即将用到的Model.使用的OData版本是4.0. public class Customer { public int Id { get; set; } public string Name { get; set; } public Gender Gender { get; set; } public DateTimeOffset BirthTime { get; set; } public List<Orde
今天在Repeater控件中碰到一个全选的操作,于是上网查了一下,找到一个觉得比较好,便记录下来, 界面代码简化之后(全选操作): <script type="text/javascript"> function SelectAll(parentChk, ChildId, bigControlID) { var oElements = document.getElementsByTagName("INPUT"); var bIsChecked = par
封装类 using System; using System.Collections.Generic; using System.Web; /// <summary> /// Ha 的摘要说明 /// </summary> public class Ha { private string _Name; public string Name { get { return _Name; } set { _Name = value; } } private int _Age; publi