i cette fonction de contrôleurvue asp.net mvc fortement typé avec PagedList (du produit) vb.net
Public Function Index(ByVal id As System.Nullable(Of Integer)) As ActionResult
using db = New DbDataContext()
Dim prod As PagedList(Of product) = db.products.ToPagedList(If(id, 1), 20)
Return View(prod)
End Using
End Function
je dois créer une vue fortement typé avec prod Dim Comme PagedList (de produits)
<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(PagedList(Of product))" %>
où est mystake?
merci maintenant je vois des collections et peut le cicle – Massimo