// 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()
没有合适的资源?快使用搜索试试~ 我知道了~
AjaxForm_JqueryUI例子
共64个文件
js:17个
png:14个
cs:8个
5星 · 超过95%的资源 需积分: 10 194 下载量 82 浏览量
2012-01-08
13:13:10
上传
评论
收藏 315KB RAR 举报
温馨提示
代码里面是实例Ajax.BeginForm与JqueryUI(Dialog)的例子,欢迎大家来我的博客:http://www.cnblogs.com/csdbfans
资源推荐
资源详情
资源评论
收起资源包目录
AjaxForm.rar (64个子文件)
AjaxForm
AjaxForm
Controllers
AccountController.cs 4KB
HomeController.cs 474B
App_Data
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache 12KB
TempPE
bin
Views
Home
About.aspx 390B
Index.aspx 3KB
Account
ChangePasswordSuccess.aspx 453B
ChangePassword.aspx 2KB
Register.aspx 2KB
LogOn.aspx 2KB
Shared
LogonControl.ascx 2KB
Site.Master 1KB
LogOnUserControl.ascx 352B
Error.aspx 439B
Web.config 2KB
Content
jquery-ui-1.8.16.custom.css 20KB
images
ui-icons_ffd27a_256x240.png 4KB
ui-icons_ef8c08_256x240.png 4KB
ui-bg_flat_10_000000_40x100.png 178B
ui-bg_glass_100_f6f6f6_1x400.png 104B
ui-icons_228ef1_256x240.png 4KB
ui-icons_222222_256x240.png 4KB
ui-bg_glass_100_fdf5ce_1x400.png 125B
ui-bg_diagonals-thick_18_b81900_40x40.png 260B
ui-icons_ffffff_256x240.png 4KB
ui-bg_highlight-soft_75_ffe45c_1x100.png 129B
ui-bg_glass_65_ffffff_1x400.png 105B
ui-bg_gloss-wave_35_f6a828_500x100.png 4KB
ui-bg_diagonals-thick_20_666666_40x40.png 251B
ui-bg_highlight-soft_100_eeeeee_1x100.png 90B
Site.css 5KB
AjaxForm.csproj.user 1KB
Web.config 3KB
Web.Debug.config 1KB
Global.asax.cs 966B
Scripts
jquery-1.4.1.js 165KB
jquery.validate-vsdoc.js 43KB
MicrosoftAjax.debug.js 309KB
MicrosoftMvcValidation.debug.js 37KB
JqueryUI
jquery.ui.widget.js 7KB
jquery-ui-1.8.16.custom.js 43KB
jquery.ui.position.js 7KB
jquery.ui.dialog.js 21KB
jquery.ui.core.js 8KB
MicrosoftMvcAjax.debug.js 15KB
MicrosoftMvcValidation.js 13KB
MicrosoftAjax.js 99KB
jquery-1.4.1-vsdoc.js 237KB
jquery.validate.js 38KB
jquery-1.4.1.min.js 70KB
MicrosoftMvcAjax.js 6KB
jquery.validate.min.js 26KB
AjaxForm.csproj 8KB
Web.Release.config 1KB
Global.asax 100B
Properties
AssemblyInfo.cs 1KB
Models
AccountModels.cs 11KB
AjaxForm.sln 1KB
AjaxForm.Tests
AjaxForm.Tests.csproj 3KB
Controllers
AccountControllerTest.cs 14KB
HomeControllerTest.cs 1KB
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache 6KB
TempPE
bin
Debug
App.config 302B
Properties
AssemblyInfo.cs 1KB
AjaxForm.suo 46KB
共 64 条
- 1
Csdbfans
- 粉丝: 73
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页