无法在mvc view .cshtml页面上显示谷歌地图

时间:2017-03-20 12:06:38

标签: javascript asp.net-mvc google-maps razor view

我需要在谷歌地图中显示动态经度和纬度。我能够在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();

0 个答案:

没有答案