All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
WML教程:文本框控件(Input)_[XML教程]
PHP日期时间函数的高级应用技巧_php资料_编程技术
Linux系统下Apache与Tomcat整合的简单方法_php资料_编程技术
ASP.NET,2.0数据处理之高级分页
ASP.NET之上传文件管理策略_[Asp.Net教程]
学习动态网页技术PHP中参数引用返回的实例_php资料_编程技术
实例指导:开发.NET程序注意事项_.net资料_编程技术
如何将Select查询结果保存到EXCEL中_[SQL Server教程]
Linux下Apache并发连接数和带宽控制_php资料_编程技术
获取总记录数、总页数的存储过程_[Asp.Net教程]
Reading number is top 10 pictures
29 the belle stars after bath figure5
美女和狗狗2
八个盛产美女的国家2
擦地板的大叔太好了
Forced sex girl living abroad1
The money of more than 100 countries and regions2
Sora aoi on twitter3
The world's top ten most beautiful railway station1
中国处女图鉴2
奇趣的世界记录1
Download software ranking
Ashlynn Video3
Ashlynn Video2
都市狐狸姑娘传
Boxer vs Yellow3
Boxer Classic video2
matrix3
jdk1.5
Boxer vs Yellow1
C#COM编程指南
XML+Web+Service开发教程
归海一刀 published in(发表于) 2014/1/30 0:53:05 Edit(编辑)
ASP.NET,MVC+LINQ开发一个图书销售站点(9)-编辑目录_[Asp.Net教程]

ASP.NET,MVC+LINQ开发一个图书销售站点(9)-编辑目录_[Asp.Net教程]

ASP.NET MVC+LINQ开发一个图书销售站点(9):编辑目录_[Asp.Net教程]

编辑目录和新建类似,这里我们用MVC提供的辅助类


1.在Model 的BookShopDBDataContext分部类里添加:


image


2. 在CategoryController添加如下方法(注意:我们添加了后端验证)


image


3. 修改View下的EditCategory.aspx. (注意:我们用了MVC提供的辅助类生成Textbox,并且加了验证)


image


4.这里是目录,前面添加成书名了,改过来。


image







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.