我需要在谷歌地图中显示动态经度和纬度。我能够在html页面中显示地图标记,但我无法在.cshtml页面中显示。在控制台窗口中也没有显示错误。
查看页面代码
public class A { public B MemberB { get; set; }}
public class B { public string Name { get; set; }}
List<A> listt = new List<A>{
new A{ MemberB = new B{Name ="a"}},
new A{ MemberB = new B{Name ="b"}},
new A{ MemberB = new B{Name ="u"}},
new A{ MemberB = new B{Name ="l"}},
new A{ MemberB = new B{Name ="i"}}
};
var rr = OrderByQuery(listt.AsQueryable(), "MemberB.Name", SortDirection.Ascending).ToList();