Wasn't able to find this.. maybe I wasn't looking correctly. But pretty much this is my view:
<div class="jumbotron">
@foreach (DataRow dr in ds.Tables[0].Rows)
{
<ul>
<li>@dr["Name"].ToString() - @dr["Distance"].ToString()</li>
</ul>
}
</div>
I want to create a new page (using c# and MVC) for each of the bullet points with different URL's depending on the name. How can I do that? Do I use ActionLink? Does it have to do with Routing?
Basically let's say you have a list of Restaurants, I want it so that when you click on a restaurant it takes you to a different URL like yourdomain.com/restaurant-name, and then I want to populate that page with some HTML. How do I go about doing that?