Bài đăng

Debug visually with Code Map debugger integration

Link gốc: http://s.ch9.ms/Series/Visual-Studio-2012-Premium-and-Ultimate-Overview/Visual-Studio-Ultimate-2012Debug-visually-with-Code-Map-debugger-integration

Controller và Actions trong ứng dụng ASP.NET MVC theo http://jou.vn

Bài viết đầu tiên của chương thứ II sẽ giới thiệu với bạn về controller và action trong ứng dụng ASP.NET MVC. Nền tảng ASP.NET MVC ánh xạ các URL đến các lớp được gọi là controller. Các controller được dùng để xử lý các request gọi đến, quản lý dữ liệu được nhập bởi người dùng, tương tác, và thực thi logic ứng dụng hợp lý. Một lớp controller thường gọi các view để sinh ra mã HTML trả về cho request. Lớp cơ bản nhất được các controller kế thừa có tên là ControllerBase, lớp này cung cấp các mã quản lý mô hình MVC chung nhất. Lớp Controller được kế thừa từ ControllerBase, và là lớp mặc định dùng cho việc cài đặt controller. Lớp Controller có trách nhiệm: TÌm kiếm action thích hợp để gọi và kiểm ra xem thử action đó có thể gọi được hay không. Lấy các giá trị được gởi lên từ request để sử dụng như là tham số cho các action Xử lý tất cả các lỗi có thể xảy ra trong suốt quá trình thực thi phương thức ac

Facebook Style Wall Posts and Comments using Knockout.js and ASP.NET Web API by http://techbrij.com

Hình ảnh
In this article, we will implement Facebook style wall posting with following features using Knockout.js , jQuery and ASP.NET MVC 4 with Web API . 1. Add new post and display the latest post first 2. Add new comment to post 3. Display date time in fuzzy time stamps (e.g. 5 mins ago..) 4. Auto-grow textarea for long posting and commenting 5. Comment link to toggle comment box 6. Display user avatar for posts and comments Here is the final output: Database Structure: The edmx view generated from database is as follows: In UserProfile table, AvatarExt is used to store extension of user thumbnail and it is stored in the application with UserId + . + AvatarExt. Post table is used for Wall posts and PostComment table is used for comments. Other tables(not displayed in the image, common tables) are used to implement SimpleMembershipProvider. Getting Started: 1. Create ASP.NET MVC 4 > Internet Application Project in VS2012. 2. In Models, Add new item “ADO.