[Tin tức] ASP.NET MVC – #34: Tạo trang chi tiết sản phẩm | Create product detail page | TEDU



Mã nguồn bài học Onlineshop:
Khóa học làm dự án thực tế với ASP.NET MVC, WebAPI, AngularJS:
Bài này chúng ta sẽ đọc dữ liệu ra trang chi tiết sản phẩm với ASP.NET MVC

ASP.NET MVC – #34: Tạo trang chi tiết sản phẩm | Create product detail page | TEDU

▶ More information about TEDU:
Website:
Hotline: 0966 036 626
Email: tedu.international@gmail.com

▶ CLICK TO SUBSCRIBE:
#tedu #aspnetmvc #mvc

DO NOT REUPLOAD

28 bình luận về “[Tin tức] ASP.NET MVC – #34: Tạo trang chi tiết sản phẩm | Create product detail page | TEDU”

  1. Mình đang cần làm các tính năng nâng cao trong trong trang chi tiết sản phẩm cho công ty như: hiển thị nhiều ảnh và room lên, review product, add to wishlist, add to compare, Newsletters Signup. Muốn đặt hàng admin làm video hướng dẫn, admin xem giá cả thế nào?

    Trả lời
  2. Anh Toàn cho hỏi nếu muốn dùng @Html() truyền tham số cho partialView thì có lưu ý gì ko?
    Sao mình truyền đều ko đc, nó toàn báo giá trị null trong Controller ?
    Ví dụ: @Html("View1","Controler1, new (Bien1=item.MaHang)
    Vào trong controller nó toàn báo giá trị Biến là null !

    Trả lời
  3. Anh ơi cho em hỏi với ! Lúc em tải template về rồi chèn vào nhưng em hay sửa lại css cho phù hợp với ý muốn của mình .

    Nhưng khi sửa xong build lại thì nó không chạy đúng với css em thêm vào mà khoảng 1 , 2 lần tắt máy e mở lên làm như mọi khi thì lâu sau nó mới chạy css đó.

    Sao nó không dạng như debug trong DreamWeaver viết xong save lại là chạy ngay vậy Anh? Em cám ơn anh

    Trả lời
  4. bác ơi giúp em với
    public HoaDonNhap Detai(int id)
    {
    return db.HoaDonNhaps.Find(id);
    }
    public HoaDonNhap Detai(int id)
    {
    return db.HoaDonNhaps.Find(id);
    }
    var link = "/Views/ChiTietSanPham/ChiTiet/" + item.MaHoaDon;
    khi em click vào sản phẩm để hiển thị chi tiết sản phẩm thì nó báo:

    HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly

    em thử hết các cách rồi mà vẫn sai đường dẫn link. bác giúp em với

    Trả lời
  5. Chào a,như e muốn khi kích vô chi tiết sản phẩm,trang chi tiết sản phẩm ngoài hiển thị thông tin bên trên,bên dưới e còn 1 bảng các thông số kỹ thuật,vậy có cần tạo 1 bảng chi tiết sản phẩm ko,nếu có thì join nó như thế nào a,thks a

    Trả lời
  6. thầy giúp em lỗi này với ạ: e ko show ra được chi tiết sản phẩm:
    Nullable object must have a value.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Nullable object must have a value.

    Source Error:

    Line 29: {
    Line 30: var product = new ProductDao().ViewDetail(id);
    Line 31: ViewBag.Category = new ProductCategoryDao().ViewDetail(product.CategoryID.Value);
    Line 32: ViewBag.RelatedProducts = new ProductDao().ListRelatedProducts(id);
    Line 33: return View(product);

    Source File: e:Dự án WEB ASP.NetOnlineShopOnlineShopControllersProductController.cs Line: 31

    Trả lời

Viết một bình luận

bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
antalya bayan escort
antalya bayan escort
antalya bayan escort