Full Site Version
using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace WebApplication63.Models
{
public class LandingPage
[Key]
public int Id { get; set; }
public string Name{get;set;}
public string Link{get;set;}
}
@model IEnumerable<WebApplication63.Models.LandingPage>
@{
ViewBag.Title = "Links";
<h2>Links</h2>
<table class="table">
@foreach (var item in Model) {
<tr>
<td>
Free Support
</td>
@Html.DisplayFor(modelItem => item.Name)
@Html.DisplayFor(modelItem => item.Link)
</tr>
</table>
using System.Web.Mvc;
using System.Collections.Generic;
public class HomeController : Controller
[HttpGet]
public ActionResult Index()
var links = new List<LandingPage>();
links.Add(new LandingPage
{ Id = 1,
Name="Cells",
Link="https://forum.aspose.com/c/cells"
});
{ Id = 2,
Name="Tasks",
Link="https://forum.aspose.com/c/tasks"
{ Id = 3,
Name="Words",
Link="https://forum.aspose.com/c/words"
return View("index",links);