// Name: MicrosoftAjax.debug.js
// Assembly: System.Web.Extensions
// Version: 4.0.0.0
// FileVersion: 4.0.20526.0
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjax.js
// Microsoft AJAX Framework.
Function.__typeName = 'Function';
Function.__class = true;
Function.createCallback = function Function$createCallback(method, context) {
/// <summary locid="M:J#Function.createCallback" />
/// <param name="method" type="Function"></param>
/// <param name="context" mayBeNull="true"></param>
/// <returns type="Function"></returns>
var e = Function._validateParams(arguments, [
{name: "method", type: Function},
{name: "context", mayBeNull: true}
]);
if (e) throw e;
return function() {
var l = arguments.length;
if (l > 0) {
var args = [];
for (var i = 0; i < l; i++) {
args[i] = arguments[i];
}
args[l] = context;
return method.apply(this, args);
}
return method.call(this, context);
}
}
Function.createDelegate = function Function$createDelegate(instance, method) {
/// <summary locid="M:J#Function.createDelegate" />
/// <param name="instance" mayBeNull="true"></param>
/// <param name="method" type="Function"></param>
/// <returns type="Function"></returns>
var e = Function._validateParams(arguments, [
{name: "instance", mayBeNull: true},
{name: "method", type: Function}
]);
if (e) throw e;
return function() {
return method.apply(instance, arguments);
}
}
Function.emptyFunction = Function.emptyMethod = function Function$emptyMethod() {
/// <summary locid="M:J#Function.emptyMethod" />
}
Function.validateParameters = function Function$validateParameters(parameters, expectedParameters, validateParameterCount) {
/// <summary locid="M:J#Function.validateParameters" />
/// <param name="parameters"></param>
/// <param name="expectedParameters"></param>
/// <param name="validateParameterCount" type="Boolean" optional="true"></param>
/// <returns type="Error" mayBeNull="true"></returns>
var e = Function._validateParams(arguments, [
{name: "parameters"},
{name: "expectedParameters"},
{name: "validateParameterCount", type: Boolean, optional: true}
]);
if (e) throw e;
return Function._validateParams(parameters, expectedParameters, validateParameterCount);
}
Function._validateParams = function Function$_validateParams(params, expectedParams, validateParameterCount) {
var e, expectedLength = expectedParams.length;
validateParameterCount = validateParameterCount || (typeof(validateParameterCount) === "undefined");
e = Function._validateParameterCount(params, expectedParams, validateParameterCount);
if (e) {
e.popStackFrame();
return e;
}
for (var i = 0, l = params.length; i < l; i++) {
var expectedParam = expectedParams[Math.min(i, expectedLength - 1)],
paramName = expectedParam.name;
if (expectedParam.parameterArray) {
paramName += "[" + (i - expectedLength + 1) + "]";
}
else if (!validateParameterCount && (i >= expectedLength)) {
break;
}
e = Function._validateParameter(params[i], expectedParam, paramName);
if (e) {
e.popStackFrame();
return e;
}
}
return null;
}
Function._validateParameterCount = function Function$_validateParameterCount(params, expectedParams, validateParameterCount) {
var i, error,
expectedLen = expectedParams.length,
actualLen = params.length;
if (actualLen < expectedLen) {
var minParams = expectedLen;
for (i = 0; i < expectedLen; i++) {
var param = expectedParams[i];
if (param.optional || param.parameterArray) {
minParams--;
}
}
if (actualLen < minParams) {
error = true;
}
}
else if (validateParameterCount && (actualLen > expectedLen)) {
error = true;
for (i = 0; i < expectedLen; i++) {
if (expectedParams[i].parameterArray) {
error = false;
break;
}
}
}
if (error) {
var e = Error.parameterCount();
e.popStackFrame();
return e;
}
return null;
}
Function._validateParameter = function Function$_validateParameter(param, expectedParam, paramName) {
var e,
expectedType = expectedParam.type,
expectedInteger = !!expectedParam.integer,
expectedDomElement = !!expectedParam.domElement,
mayBeNull = !!expectedParam.mayBeNull;
e = Function._validateParameterType(param, expectedType, expectedInteger, expectedDomElement, mayBeNull, paramName);
if (e) {
e.popStackFrame();
return e;
}
var expectedElementType = expectedParam.elementType,
elementMayBeNull = !!expectedParam.elementMayBeNull;
if (expectedType === Array && typeof(param) !== "undefined" && param !== null &&
(expectedElementType || !elementMayBeNull)) {
var expectedElementInteger = !!expectedParam.elementInteger,
expectedElementDomElement = !!expectedParam.elementDomElement;
for (var i=0; i < param.length; i++) {
var elem = param[i];
e = Function._validateParameterType(elem, expectedElementType,
expectedElementInteger, expectedElementDomElement, elementMayBeNull,
paramName + "[" + i + "]");
if (e) {
e.popStackFrame();
return e;
}
}
}
return null;
}
Function._validateParameterType = function Function$_validateParameterType(param, expectedType, expectedInteger, expectedDomElement, mayBeNull, paramName) {
var e, i;
if (typeof(param) === "undefined") {
if (mayBeNull) {
return null;
}
else {
e = Error.argumentUndefined(paramName);
e.popStackFrame();
return e;
}
}
if (param === null) {
if (mayBeNull) {
return null;
}
else {
e = Error.argumentNull(paramName);
e.popStackFrame();
return e;
}
}
if (expectedType && expectedType.__enum) {
if (typeof(param) !== 'number') {
e = Error.argumentType(paramName, Object.getType(param), expectedType);
e.popStackFrame();
return e;
}
if ((param % 1) === 0) {
var values = expectedType.prototype;
if (!expectedType.__flags || (param === 0)) {
for (i in values) {
if (values[i] === param) return null;
}
}
else {
var v = param;
for (i in values) {
var vali = values[i];
if (vali === 0) continue;
if ((vali & param) === vali) {
v -= vali;
}
if (v === 0) return null;
}
}
}
e = Error.argumentOutOfRange(paramName, param, String.format(Sys.Res.enumInvalidValue, param, expectedType.getName()));
e.popStackFrame();
return e;
}
if (expectedDomElement && (!Sys._isDomElement(param) || (param.nodeType === 3))) {
e = Error.argument(paramName, Sys.Res.argumentDomElement);
e.popStackFrame()
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
MvcPager分页控件是在ASP.NET MVC Web应用程序中实现分页功能的一系列扩展方法,该分页控件的最初的实现方法借鉴了网上流行的部分源代码,尤其是ScottGu的PagedList<T>类和相关方法,经过站长不断完善和改进后推出的比较成熟而且功能强大的ASP.NET MVC分页解决方案。 MvcPager主要功能有: 1.实现最基本的url route分页; 2.支持手工输入或选择页索引并对输入的页索引进行有效性验证; 3.支持使用ASP.NET MVC Ajax默认的MicrosoftAjax和MicrosoftMvcAjax客户端脚本库实现Ajax分页; 4.支持使用jQuery实现Ajax分页,生成的Html代码更精简; 5.支持Ajax分页模式下,若客户端浏览器不支持或禁用Javascript功能时安全降级为普通分页 6.搜索引擎友好,无论是普通分页还是Ajax分页,搜索引擎都可以直接搜索到所有页面。 7.支持ASP.NET MVC 1.0、2.0和3.0 版本; 8.支持IE、Firefox、Opera、Chrome及Safari等常用浏览器;
资源推荐
资源详情
资源评论
收起资源包目录
MvcPager1.5Demo3.rar (72个子文件)
Global.asax.cs 2KB
SamplesMvc3.0.csproj.user 1KB
Web.Debug.config 1KB
Scripts
jquery.unobtrusive-ajax.min.js 3KB
jquery.unobtrusive-ajax.js 6KB
jquery-1.5.1.min.js 99KB
jquery.blockUI.js 15KB
MicrosoftMvcAjax.debug.js 15KB
MicrosoftAjax.js 99KB
MicrosoftMvcAjax.js 6KB
jquery-1.5.1-vsdoc.js 247KB
MicrosoftAjax.debug.js 309KB
Global.asax 105B
bin
MvcPager.dll 36KB
MvcPager.pdb 46KB
SampleMvc3.0.pdb 46KB
SampleMvc3.0.dll 27KB
Web.config 4KB
Properties
AssemblyInfo.cs 1KB
App_Data
NORTHWND_log.ldf 1024KB
NORTHWND.MDF 2.75MB
Views
Web.config 3KB
_ViewStart.cshtml 55B
Home
Index.cshtml 1KB
Shared
Error.cshtml 210B
_Layout.cshtml 3KB
Orders
UCOrderList.cshtml 777B
Loading.cshtml 1KB
JqAjaxOrders.cshtml 473B
UCJqOrderList.cshtml 770B
MyModel.cshtml 983B
MsAjaxOrders.cshtml 583B
Index.cshtml 498B
AjaxEvents.cshtml 918B
MyList.cshtml 669B
CustomRoutePaging.cshtml 2KB
UrlParameters.cshtml 681B
UCPageIndexBox.cshtml 1KB
StoredProcedure.cshtml 716B
PageIndexBox.cshtml 874B
CustomInfo.cshtml 861B
MultiplePagers.cshtml 2KB
ApplyStyles.cshtml 1KB
UCAjaxEvents.cshtml 1KB
UCLoading.cshtml 1KB
Web.Release.config 1KB
Images
play.png 580B
loading.gif 2KB
Thumbs.db 4KB
Content
themes
base
jquery-ui.css 38KB
images
ui-icons_cd0a0a_256x240.png 4KB
ui-bg_highlight-soft_75_cccccc_1x100.png 101B
ui-bg_glass_75_dadada_1x400.png 111B
ui-bg_glass_55_fbf9ee_1x400.png 120B
ui-icons_454545_256x240.png 4KB
ui-icons_222222_256x240.png 4KB
ui-icons_888888_256x240.png 4KB
ui-bg_flat_75_ffffff_40x100.png 178B
ui-bg_glass_75_e6e6e6_1x400.png 110B
ui-bg_flat_0_aaaaaa_40x100.png 180B
ui-bg_glass_95_fef1ec_1x400.png 119B
ui-icons_2e83ff_256x240.png 4KB
ui-bg_glass_65_ffffff_1x400.png 105B
Site.css 5KB
SamplesMvc3.0.csproj 9KB
Models
MyModel.cs 428B
Orders.edmx 7KB
MyOrdersModel.cs 517B
Orders.Designer.cs 18KB
MyList.cs 651B
Controllers
OrdersController.cs 7KB
HomeController.cs 228B
共 72 条
- 1
webdiyer
- 粉丝: 1087
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页