实例介绍
在csdn上你可以搜到 书店实例.doc 那个资源。这个项目就是按照这个文档写出来的,但是那个文档在认证授权上有缺陷,而且购物车是放在后端数据库里面的,没有验证码部分。所以在本案例中我加入了 验证码,分页,认证授权,以及ceditor等等技术,并把购物车放进了cookie中。基本上对于初级的web开发,这里面的技术都涉及到了一点,希望对初学者有用。www.shouji0512.com这个网站就是用这个案例中涉及到的所有技术做出来的,当然实际开发中需要考虑更多的因素,这里就不多说了。本案例是用vs10做的,基本上附加后都可以直接运行。希望本案例对你有帮助。
【实例截图】
【核心代码】
MvcBookStore
└── MvcBookStore
├── MvcBookStore
│ ├── bin
│ │ ├── EntityFramework.dll
│ │ ├── EntityFramework.xml
│ │ ├── MvcBookStore.dll
│ │ ├── MvcBookStore.pdb
│ │ ├── MvcCaptchaExtensionMVC3.dll
│ │ ├── MvcCaptchaExtensionMVC3.pdb
│ │ ├── MySql.Data.dll
│ │ ├── MySql.Data.Entity.dll
│ │ └── MySql.Web.dll
│ ├── ckeditor
│ │ ├── CHANGES.html
│ │ ├── ckeditor_basic.js
│ │ ├── ckeditor_basic_source.js
│ │ ├── ckeditor.js
│ │ ├── ckeditor.pack
│ │ ├── ckeditor_source.js
│ │ ├── config.js
│ │ ├── contents.css
│ │ ├── images
│ │ │ └── spacer.gif
│ │ ├── INSTALL.html
│ │ ├── lang
│ │ │ ├── en.js
│ │ │ ├── zh-cn.js
│ │ │ └── zh.js
│ │ ├── LICENSE.html
│ │ ├── plugins
│ │ │ ├── about
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── about.js
│ │ │ │ │ └── logo_ckeditor.png
│ │ │ │ └── plugin.js
│ │ │ ├── basicstyles
│ │ │ │ └── plugin.js
│ │ │ ├── blockquote
│ │ │ │ └── plugin.js
│ │ │ ├── button
│ │ │ │ └── plugin.js
│ │ │ ├── clipboard
│ │ │ │ ├── dialogs
│ │ │ │ │ └── paste.js
│ │ │ │ └── plugin.js
│ │ │ ├── colorbutton
│ │ │ │ └── plugin.js
│ │ │ ├── contextmenu
│ │ │ │ └── plugin.js
│ │ │ ├── dialog
│ │ │ │ ├── dialogDefinition.js
│ │ │ │ └── plugin.js
│ │ │ ├── dialogui
│ │ │ │ └── plugin.js
│ │ │ ├── domiterator
│ │ │ │ └── plugin.js
│ │ │ ├── editingblock
│ │ │ │ └── plugin.js
│ │ │ ├── elementspath
│ │ │ │ └── plugin.js
│ │ │ ├── enterkey
│ │ │ │ └── plugin.js
│ │ │ ├── entities
│ │ │ │ └── plugin.js
│ │ │ ├── fakeobjects
│ │ │ │ └── plugin.js
│ │ │ ├── filebrowser
│ │ │ │ └── plugin.js
│ │ │ ├── find
│ │ │ │ ├── dialogs
│ │ │ │ │ └── find.js
│ │ │ │ └── plugin.js
│ │ │ ├── flash
│ │ │ │ ├── dialogs
│ │ │ │ │ └── flash.js
│ │ │ │ ├── images
│ │ │ │ │ └── placeholder.png
│ │ │ │ └── plugin.js
│ │ │ ├── floatpanel
│ │ │ │ └── plugin.js
│ │ │ ├── font
│ │ │ │ └── plugin.js
│ │ │ ├── format
│ │ │ │ └── plugin.js
│ │ │ ├── forms
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── button.js
│ │ │ │ │ ├── checkbox.js
│ │ │ │ │ ├── form.js
│ │ │ │ │ ├── hiddenfield.js
│ │ │ │ │ ├── radio.js
│ │ │ │ │ ├── select.js
│ │ │ │ │ ├── textarea.js
│ │ │ │ │ └── textfield.js
│ │ │ │ └── plugin.js
│ │ │ ├── horizontalrule
│ │ │ │ └── plugin.js
│ │ │ ├── htmldataprocessor
│ │ │ │ └── plugin.js
│ │ │ ├── htmlwriter
│ │ │ │ └── plugin.js
│ │ │ ├── iframedialog
│ │ │ │ └── plugin.js
│ │ │ ├── image
│ │ │ │ ├── dialogs
│ │ │ │ │ └── image.js
│ │ │ │ └── plugin.js
│ │ │ ├── indent
│ │ │ │ └── plugin.js
│ │ │ ├── justify
│ │ │ │ └── plugin.js
│ │ │ ├── keystrokes
│ │ │ │ └── plugin.js
│ │ │ ├── link
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── anchor.js
│ │ │ │ │ └── link.js
│ │ │ │ ├── images
│ │ │ │ │ └── anchor.gif
│ │ │ │ └── plugin.js
│ │ │ ├── list
│ │ │ │ └── plugin.js
│ │ │ ├── listblock
│ │ │ │ └── plugin.js
│ │ │ ├── maximize
│ │ │ │ └── plugin.js
│ │ │ ├── menu
│ │ │ │ └── plugin.js
│ │ │ ├── menubutton
│ │ │ │ └── plugin.js
│ │ │ ├── newpage
│ │ │ │ └── plugin.js
│ │ │ ├── pagebreak
│ │ │ │ ├── images
│ │ │ │ │ └── pagebreak.gif
│ │ │ │ └── plugin.js
│ │ │ ├── panel
│ │ │ │ └── plugin.js
│ │ │ ├── panelbutton
│ │ │ │ └── plugin.js
│ │ │ ├── pastefromword
│ │ │ │ ├── dialogs
│ │ │ │ │ └── pastefromword.js
│ │ │ │ └── plugin.js
│ │ │ ├── pastetext
│ │ │ │ ├── dialogs
│ │ │ │ │ └── pastetext.js
│ │ │ │ └── plugin.js
│ │ │ ├── popup
│ │ │ │ └── plugin.js
│ │ │ ├── preview
│ │ │ │ └── plugin.js
│ │ │ │ └── plugin.js
│ │ │ ├── removeformat
│ │ │ │ └── plugin.js
│ │ │ ├── resize
│ │ │ │ └── plugin.js
│ │ │ ├── richcombo
│ │ │ │ └── plugin.js
│ │ │ ├── save
│ │ │ │ └── plugin.js
│ │ │ ├── scayt
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── options.js
│ │ │ │ │ └── toolbar.css
│ │ │ │ └── plugin.js
│ │ │ ├── selection
│ │ │ │ └── plugin.js
│ │ │ ├── showblocks
│ │ │ │ ├── images
│ │ │ │ │ ├── block_address.png
│ │ │ │ │ ├── block_blockquote.png
│ │ │ │ │ ├── block_div.png
│ │ │ │ │ ├── block_h1.png
│ │ │ │ │ ├── block_h2.png
│ │ │ │ │ ├── block_h3.png
│ │ │ │ │ ├── block_h4.png
│ │ │ │ │ ├── block_h5.png
│ │ │ │ │ ├── block_h6.png
│ │ │ │ │ ├── block_p.png
│ │ │ │ │ └── block_pre.png
│ │ │ │ └── plugin.js
│ │ │ ├── smiley
│ │ │ │ ├── dialogs
│ │ │ │ │ └── smiley.js
│ │ │ │ ├── images
│ │ │ │ │ ├── angel_smile.gif
│ │ │ │ │ ├── angry_smile.gif
│ │ │ │ │ ├── broken_heart.gif
│ │ │ │ │ ├── confused_smile.gif
│ │ │ │ │ ├── cry_smile.gif
│ │ │ │ │ ├── devil_smile.gif
│ │ │ │ │ ├── embaressed_smile.gif
│ │ │ │ │ ├── envelope.gif
│ │ │ │ │ ├── heart.gif
│ │ │ │ │ ├── kiss.gif
│ │ │ │ │ ├── lightbulb.gif
│ │ │ │ │ ├── omg_smile.gif
│ │ │ │ │ ├── regular_smile.gif
│ │ │ │ │ ├── sad_smile.gif
│ │ │ │ │ ├── shades_smile.gif
│ │ │ │ │ ├── teeth_smile.gif
│ │ │ │ │ ├── thumbs_down.gif
│ │ │ │ │ ├── thumbs_up.gif
│ │ │ │ │ ├── tounge_smile.gif
│ │ │ │ │ ├── whatchutalkingabout_smile.gif
│ │ │ │ │ └── wink_smile.gif
│ │ │ │ └── plugin.js
│ │ │ ├── sourcearea
│ │ │ │ └── plugin.js
│ │ │ ├── specialchar
│ │ │ │ ├── dialogs
│ │ │ │ │ └── specialchar.js
│ │ │ │ └── plugin.js
│ │ │ ├── styles
│ │ │ │ └── plugin.js
│ │ │ ├── stylescombo
│ │ │ │ ├── plugin.js
│ │ │ │ └── styles
│ │ │ │ └── default.js
│ │ │ ├── tab
│ │ │ │ └── plugin.js
│ │ │ ├── table
│ │ │ │ ├── dialogs
│ │ │ │ │ └── table.js
│ │ │ │ └── plugin.js
│ │ │ ├── tabletools
│ │ │ │ ├── dialogs
│ │ │ │ │ └── tableCell.js
│ │ │ │ └── plugin.js
│ │ │ ├── templates
│ │ │ │ ├── dialogs
│ │ │ │ │ └── templates.js
│ │ │ │ ├── plugin.js
│ │ │ │ └── templates
│ │ │ │ ├── default.js
│ │ │ │ └── images
│ │ │ │ ├── template1.gif
│ │ │ │ ├── template2.gif
│ │ │ │ └── template3.gif
│ │ │ ├── toolbar
│ │ │ │ └── plugin.js
│ │ │ ├── uicolor
│ │ │ │ ├── dialogs
│ │ │ │ │ └── uicolor.js
│ │ │ │ ├── lang
│ │ │ │ │ └── en.js
│ │ │ │ ├── plugin.js
│ │ │ │ ├── uicolor.gif
│ │ │ │ └── yui
│ │ │ │ ├── assets
│ │ │ │ │ ├── hue_bg.png
│ │ │ │ │ ├── hue_thumb.png
│ │ │ │ │ ├── picker_mask.png
│ │ │ │ │ ├── picker_thumb.png
│ │ │ │ │ └── yui.css
│ │ │ │ └── yui.js
│ │ │ ├── undo
│ │ │ │ └── plugin.js
│ │ │ ├── wsc
│ │ │ │ ├── dialogs
│ │ │ │ │ ├── ciframe.html
│ │ │ │ │ ├── tmpFrameset.html
│ │ │ │ │ ├── wsc.css
│ │ │ │ │ └── wsc.js
│ │ │ │ └── plugin.js
│ │ │ └── wysiwygarea
│ │ │ └── plugin.js
│ │ ├── skins
│ │ │ ├── kama
│ │ │ │ ├── dialog.css
│ │ │ │ ├── editor.css
│ │ │ │ ├── icons.png
│ │ │ │ ├── images
│ │ │ │ │ ├── dialog_sides.gif
│ │ │ │ │ ├── dialog_sides.png
│ │ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ │ ├── mini.gif
│ │ │ │ │ ├── noimage.png
│ │ │ │ │ ├── sprites_ie6.png
│ │ │ │ │ ├── sprites.png
│ │ │ │ │ └── toolbar_start.gif
│ │ │ │ ├── skin.js
│ │ │ │ └── templates.css
│ │ │ ├── office2003
│ │ │ │ ├── dialog.css
│ │ │ │ ├── editor.css
│ │ │ │ ├── icons.png
│ │ │ │ ├── images
│ │ │ │ │ ├── dialog_sides.gif
│ │ │ │ │ ├── dialog_sides.png
│ │ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ │ ├── mini.gif
│ │ │ │ │ ├── noimage.png
│ │ │ │ │ ├── sprites_ie6.png
│ │ │ │ │ └── sprites.png
│ │ │ │ ├── skin.js
│ │ │ │ └── templates.css
│ │ │ └── v2
│ │ │ ├── dialog.css
│ │ │ ├── editor.css
│ │ │ ├── icons.png
│ │ │ ├── images
│ │ │ │ ├── dialog_sides.gif
│ │ │ │ ├── dialog_sides.png
│ │ │ │ ├── dialog_sides_rtl.png
│ │ │ │ ├── mini.gif
│ │ │ │ ├── noimage.png
│ │ │ │ ├── sprites_ie6.png
│ │ │ │ ├── sprites.png
│ │ │ │ └── toolbar_start.gif
│ │ │ ├── skin.js
│ │ │ └── templates.css
│ │ └── themes
│ │ └── default
│ │ └── theme.js
│ ├── Content
│ │ ├── Site.css
│ │ └── themes
│ │ └── base
│ │ ├── images
│ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png
│ │ │ ├── ui-bg_flat_75_ffffff_40x100.png
│ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png
│ │ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ │ ├── ui-bg_glass_75_dadada_1x400.png
│ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png
│ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png
│ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│ │ │ ├── ui-icons_222222_256x240.png
│ │ │ ├── ui-icons_2e83ff_256x240.png
│ │ │ ├── ui-icons_454545_256x240.png
│ │ │ ├── ui-icons_888888_256x240.png
│ │ │ └── ui-icons_cd0a0a_256x240.png
│ │ └── jquery-ui.css
│ ├── Controllers
│ │ ├── AccountController.cs
│ │ ├── HomeController.cs
│ │ ├── ShoppingCartController.cs
│ │ ├── StoreController.cs
│ │ └── StoreManagerController.cs
│ ├── default.aspx
│ ├── EFCodeFirstReadMe.txt
│ ├── Global.asax
│ ├── Global.asax.cs
│ ├── Helpers
│ │ └── HtmlHelpers.cs
│ ├── Models
│ │ ├── AccountModels.cs
│ │ ├── Author.cs
│ │ ├── Book.cs
│ │ ├── BookStoreEntities.cs
│ │ ├── Cart.cs
│ │ ├── Genre.cs
│ │ ├── Order.cs
│ │ ├── OrderDetail.cs
│ │ └── ShoppingCart.cs
│ ├── MvcBookStore.csproj
│ ├── MvcBookStore.csproj.user
│ ├── obj
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── MvcBookStore.csproj.FileListAbsolute.txt
│ │ │ ├── MvcBookStore.dll
│ │ │ ├── MvcBookStore.pdb
│ │ │ └── ResolveAssemblyReference.cache
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── MvcBookStore.csproj.FileListAbsolute.txt
│ │ ├── MvcBookStore.dll
│ │ ├── MvcBookStore.pdb
│ │ └── ResolveAssemblyReference.cache
│ ├── packages.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Scripts
│ │ ├── jquery-1.4.4.js
│ │ ├── jquery-1.4.4.min.js
│ │ ├── jquery-1.4.4-vsdoc.js
│ │ ├── jquery-ui.js
│ │ ├── jquery-ui.min.js
│ │ ├── jquery.unobtrusive-ajax.js
│ │ ├── jquery.unobtrusive-ajax.min.js
│ │ ├── jquery.validate.js
│ │ ├── jquery.validate.min.js
│ │ ├── jquery.validate.unobtrusive.js
│ │ ├── jquery.validate.unobtrusive.min.js
│ │ ├── jquery.validate-vsdoc.js
│ │ ├── MicrosoftAjax.debug.js
│ │ ├── MicrosoftAjax.js
│ │ ├── MicrosoftMvcAjax.debug.js
│ │ ├── MicrosoftMvcAjax.js
│ │ ├── MicrosoftMvcValidation.debug.js
│ │ └── MicrosoftMvcValidation.js
│ ├── ViewModels
│ │ ├── PaginatedList.cs
│ │ ├── ShoppingCartRemoveViewModel.cs
│ │ └── ShoppingCartViewModel.cs
│ ├── Views
│ │ ├── Account
│ │ │ ├── ChangePassword.cshtml
│ │ │ ├── ChangePasswordSuccess.cshtml
│ │ │ ├── LogOn.cshtml
│ │ │ └── Register.cshtml
│ │ ├── Home
│ │ │ ├── About.cshtml
│ │ │ └── Index.cshtml
│ │ ├── Shared
│ │ │ ├── EditorTemplates
│ │ │ │ └── Book.cshtml
│ │ │ ├── Error.cshtml
│ │ │ ├── _Layout.cshtml
│ │ │ └── _LogOnPartial.cshtml
│ │ ├── ShoppingCart
│ │ │ └── Index.cshtml
│ │ ├── Store
│ │ │ ├── Browse.cshtml
│ │ │ ├── Details.cshtml
│ │ │ └── Index.cshtml
│ │ ├── StoreManager
│ │ │ ├── Create.cshtml
│ │ │ ├── Delete.cshtml
│ │ │ ├── EditC.cshtml
│ │ │ ├── Edit.cshtml
│ │ │ └── Index.cshtml
│ │ ├── _ViewStart.cshtml
│ │ └── Web.config
│ ├── Web.config
│ ├── Web.Debug.config
│ └── Web.Release.config
├── MvcBookStore.sln
├── MvcBookStore.suo
└── packages
├── EFCodeFirst.1.1
│ ├── content
│ │ └── EFCodeFirstReadMe.txt
│ ├── EFCodeFirst.1.1.nupkg
│ └── tools
│ ├── EFCodeFirstReadMe.txt
│ └── install.ps1
├── EntityFramework.4.1.10331.0
│ ├── EntityFramework.4.1.10331.0.nupkg
│ ├── lib
│ │ ├── EntityFramework.dll
│ │ └── EntityFramework.xml
│ └── tools
│ └── install.ps1
└── repositories.config
138 directories, 313 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论