Music Store Study notes (July 8, 2015)

Source: Internet
Author: User

today's basic tasks:One. The guide to the Music Store project under the http://www.cnblogs.com/haogj/archive/2011/11/23/2246032.html continues to learn, and was completed yesterday at the ASP. NET MVC Music Store-5. Create an edit form from the bracket, the goal today is the ASP. NET MVC Music Store-8. Use Ajax to update your shopping cart. Two. The following points are recorded in the blog: in the development process encountered, need to pay attention to the forgotten place, as well as the problems encountered and solutions, personal experience, to record. The completion situation:One. 100%. Restore the entire project with tutorials and code, over-completion. Two: The following: one. In the reference ASP. NET MVC Music Store-5. Create an edit form from a bracket when you experiment with adding or deleting an action, the discovery operation does not affect the persisted object. Then add Storedb.savechanges () and complete the operation on the database. Two. The addition of dataannotations in the model greatly facilitates Service SideThe code that checks the format is written.

There are three notable issues with server-side validation:

    1. When submitting a form, the user must wait, verify that it is on the server side, and send the results of the validation back to the browser.
    2. The user cannot immediately get a response when the error is entered in order to pass the validation rule check.
    3. We give the server the work that can be done in the browser, wasting the resources of the server.

The ASP. NET MVC3 Bracket template also provides built-in client-side validation, but requires a script that references jQuery in the page.

Three. Use the ASP. NET Site Configuration tool to add an administrator account, which is. NET provides a method of role management, simple and rude, to meet the needs of the general small site. ‘

Four. SQL Server Compact 4.0 (SQL CE) as a lightweight embedded database, with EF's Code First development model, can easily complete the operation of the database, but only for small and medium-sized Web sites, the database is not complex system.

Five. Use JQuery for Ajax updates. The university curriculum does not have the JS language, so this side looks very laborious, the effect is very poor, the next few days I speak with the video material and the JS book to its critical.

Six. Anonymous users use the session to store the shopping cart when they submit a request for items purchased in the shopping cart.

Thoughts: today pulled Dugigo asked a lot of questions, such as about our company in role management, rights Management, database management, Js,ajax questions, solve some of the problem of knowledge direction, understand in the learning framework need to focus on the place, Dugigo very patient and enthusiastic, This has greatly stimulated my enthusiasm for learning. The company's loose culture, and passion for work also infects me.

Music Store Study notes (July 8, 2015)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.