<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="description/Combined.css,1:ImageSprite;/Areas/Epx/Themes/Msdn/Content:0,/Areas/Epx/Content/Css:1&amp;hashKey=E7560C71640616C5057FAEACB58DCB00" xmlns="http://www.w3.org/1999/xhtml" />
<link rel="stylesheet" type="text/css" href="description/2f95808e-ca34-4249-88ff-44fabe33cdc0Combined.css,1:LinkList,2:ImageSprite,2:SiteFeedbackLink;/Areas/Epx/Themes/Msdn/Content:0,/Areas/Epx/Themes/Base/Content:1,/Areas/Epx/Content/Css:2&amp;hashKey=EEE39C2D6B93379FDAF50337BE99AF8C" xmlns="http://www.w3.org/1999/xhtml" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ASP. NET Web API Tutorial 02: CRUD Operations</title>
<link href="description/Galleries.css" type="text/css" rel="Stylesheet" /><link href="description/Layout.css" type="text/css" rel="Stylesheet" /><link href="description/Brand.css" type="text/css" rel="Stylesheet" />
<link href="description/iframedescription.css" rel="Stylesheet" type="text/css" />
<script src="description/offline.js" type="text/javascript"></script>
<style type="text/css">
#projectInfo {
overflow: auto;
}
#longDesc {
clear:both;
margin: 25px 0 10px 0;
}
#SampleIndexList{
margin-left: 15px;
}
</style>
</head>
<body>
<div id="offlineDescription">
<h1>ASP. NET Web API Tutorial 02: CRUD Operations</h1>
<br/>
<div id="projectInfo">
<div class="section">
<div class="itemBarLong tagsContainer">
<label for="Technologies">Technologies</label>
<div id="Technologies">
ASP.NET Web API
</div>
</div>
<div class="itemBarLong tagsContainer">
<label for="Topics">Topics</label>
<div id="Topics">
Web API
</div>
</div>
<div class="itemBarLong">
<label for="Platforms">Platforms</label>
<div id="Platforms">
Web
</div>
</div>
<div class="itemBarLong">
<label for="Requirements">Requirements</label>
<div id="Requirements">
</div>
</div>
<div class="itemBar">
<label for="LastUpdated">Primary Language</label>
<div id="LastUpdated">en-US</div>
</div>
<div class="itemBar">
<label for="LastUpdated">Last Updated</label>
<div id="LastUpdated">9/14/2012</div>
</div>
<div class="itemBarLong">
<label for="License">License</label>
<div id="License">
<a href="license.rtf">Apache License, Version 2.0</a></div>
</div>
<div class="itemBar">
<div class="viewonlinecont">
<a data-link="online" href="http://code.msdn.microsoft.com/ASP-NET-Web-API-Tutorial-c4761894">View this sample online</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function initializePage() {
var otherTabClass = 'otherTab';
var hiddenPreClass = 'hidden';
var htmlDecode = function(encodedData) {
var decodedData = "";
if (encodedData) {
var div = document.createElement('div');
div.innerHTML = encodedData;
decodedData = div.firstChild.nodeValue.replace( /\\r\\n/ig , '\r\n');
}
return decodedData;
};
Galleries.iterateElem(Galleries.findElem(null, 'div', 'scriptcode'), function (index, scriptBlock) {
var titleElem = Galleries.findElem(scriptBlock, 'div', 'title')[0];
var labelElems = Galleries.findElem(titleElem, 'span');
if (labelElems.length == 0) {
labelElems = titleElem;
}
var languageSpans = Galleries.findElem(scriptBlock, 'span', 'hidden');
var pres = Galleries.findElem(scriptBlock, 'pre');
if (languageSpans.length > 0 && pres.length > 1) {
Galleries.iterateElem(labelElems, function(index, elem) {
var codePre = pres[index];
var labelSpan = elem;
var languageSpan = languageSpans[index];
elem.code = codePre.innerHTML.replace( /(\r(\n)?)|((\r)?\n)/ig , '\\r\\n');
codePre.className = codePre.className.replace(hiddenPreClass, '');
languageSpan.parentNode.removeChild(languageSpan);
});
pres = Galleries.findElem(scriptBlock, 'pre');
Galleries.iterateElem(labelElems, function(index, elem) {
var codePre = pres[index];
var labelSpan = elem;
if (index == 0) {
scriptBlock.activeTab = 0;
}
else {
labelSpan.className += otherTabClass;
codePre.className += hiddenPreClass;
}
Galleries.attachEventHandler(labelSpan, 'click', function(e) {
var activeTab = scriptBlock.activeTab;
labelElems[activeTab].className += otherTabClass;
pres[activeTab].className += hiddenPreClass;
codePre.className = codePre.className.replace(hiddenPreClass, '');
labelSpan.className = labelSpan.className.replace(otherTabClass, '');
scriptBlock.activeTab = index;
});
});
var preview = Galleries.findElem(scriptBlock, 'div', 'preview');
if (preview.length == 0) {
preview.push(pres[pres.length - 1]);
}
Galleries.iterateElem(preview, function(index, elem) {
elem.parentNode.removeChild(elem);
});
if (window.clipboardData && clipboardData.setData) {
var copyLink = document.createElement('a');
copyLink.href = 'javascript:void(0);';
copyLink.className = 'copyCode';
copyLink.innerHTML = 'Copy Code';
Galleries.attachEventHandler(copyLink, 'click', function (e) {
clipboardData.setData("Text", htmlDecode(labelElems[scriptBlock.activeTab].code));
return false;
});
scriptBlock.insertBefore(copyLink, scriptBlock.childNodes[0]);
}
}
});
}
Galleries.onWindowLoad(function(){
initializePage();
});
</script>
<div id="longDesc">
<p><em><a href="http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations">http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations</a></em></p>
<p>[Excerpt]</p>
没有合适的资源?快使用搜索试试~ 我知道了~
WebAPI 实例
共123个文件
png:42个
css:35个
js:17个
4星 · 超过85%的资源 需积分: 49 699 下载量 77 浏览量
2014-04-14
21:40:21
上传
评论 10
收藏 936KB ZIP 举报
温馨提示
webAPI 示例,webAPI 增加 修改 删除
资源推荐
资源详情
资源评论
收起资源包目录
WebAPI 实例 (123个子文件)
Global.asax 107B
Web.config 6KB
Web.config 3KB
packages.config 2KB
Web.Release.config 1KB
Web.Debug.config 1KB
NuGet.Config 169B
BundleConfig.cs 2KB
ProductsController.cs 2KB
ProductRepository.cs 2KB
AssemblyInfo.cs 1KB
Global.asax.cs 819B
RouteConfig.cs 603B
WebApiConfig.cs 481B
Product.cs 384B
IProductRepository.cs 383B
HomeController.cs 306B
FilterConfig.cs 278B
Index.cshtml 8KB
_Layout.cshtml 480B
Error.cshtml 269B
_ViewStart.cshtml 55B
ProductStore.csproj 16KB
Brand.css 70KB
jquery-ui.css 31KB
jquery-ui.min.css 24KB
jquery.ui.theme.css 18KB
jquery.ui.theme.min.css 14KB
Site.css 14KB
Galleries.css 10KB
jquery.ui.datepicker.css 4KB
jquery.ui.datepicker.min.css 3KB
iframedescription.css 3KB
jquery.ui.button.css 2KB
jquery.ui.button.min.css 2KB
Layout.css 2KB
jquery.ui.tabs.css 1KB
jquery.ui.dialog.css 1KB
jquery.ui.core.css 1KB
jquery.ui.dialog.min.css 1KB
jquery.ui.resizable.css 1KB
jquery.ui.slider.css 1KB
jquery.ui.autocomplete.css 1KB
jquery.ui.accordion.css 1KB
jquery.ui.slider.min.css 961B
jquery.ui.resizable.min.css 955B
jquery.ui.tabs.min.css 951B
jquery.ui.accordion.min.css 867B
jquery.ui.core.min.css 864B
jquery.ui.base.css 658B
jquery.ui.autocomplete.min.css 652B
jquery.ui.progressbar.css 363B
jquery.ui.selectable.css 311B
jquery.ui.progressbar.min.css 288B
jquery.ui.all.css 280B
jquery.ui.selectable.min.css 242B
2f95808e-ca34-4249-88ff-44fabe33cdc0Combined.css 0B
Combined.css 0B
NuGet.exe 616KB
description.html 12KB
favicon.ico 31KB
jquery-ui-1.8.20.js 373KB
jquery-1.7.1.js 251KB
jquery-ui-1.8.20.min.js 198KB
knockout-2.1.0.debug.js 167KB
jquery-1.7.1.intellisense.js 150KB
jquery-1.7.1.min.js 92KB
modernizr-2.5.3.js 48KB
jquery.validate-vsdoc.js 43KB
knockout-2.1.0.js 40KB
jquery.validate.js 38KB
jquery.validate.min.js 21KB
jquery.validate.unobtrusive.js 16KB
jquery.unobtrusive-ajax.js 6KB
jquery.validate.unobtrusive.min.js 5KB
jquery.unobtrusive-ajax.min.js 3KB
offline.js 2KB
_references.js 572B
webapi_crud03.png 69KB
webapi_crud01.png 59KB
webapi_crud02.png 46KB
ui-icons_222222_256x240.png 4KB
ui-icons_454545_256x240.png 4KB
ui-icons_2e83ff_256x240.png 4KB
ui-icons_cd0a0a_256x240.png 4KB
ui-icons_454545_256x240.png 4KB
ui-icons_888888_256x240.png 4KB
ui-icons_cd0a0a_256x240.png 4KB
ui-icons_2e83ff_256x240.png 4KB
ui-icons_222222_256x240.png 4KB
ui-icons_888888_256x240.png 4KB
orderedList6.png 4KB
orderedList7.png 4KB
orderedList8.png 3KB
orderedList9.png 3KB
orderedList0.png 3KB
orderedList5.png 3KB
orderedList4.png 3KB
bullet.png 3KB
orderedList3.png 772B
共 123 条
- 1
- 2
liuxchen2008_163
- 粉丝: 2
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页