相关疑难解决方法(0)

使用MVC Razor传递列表对象

我正在使用一个对象但在对象内部我有一个属性是一个对象列表.我希望将该对象与其中的列表对象一起传递,但是当我提交表单时列表为空.我不知道如何处理这个问题.

public class VSTAttendance
{
    public int MemberID { get; set; }
    public string Name { get; set; }
    public string Surname { get; set; }
    public bool Attendant { get; set; }
}

public class ServiceAttendance 
{
    public int AttendanceID { get; set; }
    public int AttendanceTypeID { get; set; }
    public string AttendanceType { get; set; }
    public DateTime Service { get; set; }
    public int ServiceID { get; set; }
    public string Speaker { get; set; …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc-4

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

asp.net-mvc-4 ×1

c# ×1