예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.AppendHeader("Access-Control-Allow-Origin", "*");
        NewManager NM = new NewManager();

        list = NM.GetList().Take(1).ToList();
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        NewManager news = new NewManager();

        list       = news.GetList();
        Page.Title = "News";
        for (int i = 0; i < list.Count; i++)
        {
            title = list[0].NewsName;
        }
    }