<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl(Of ContactManager.Group)" %> <%@ Import Namespace="ContactManager" %> <% For Each item in Model.Contacts %> <% Next %>
Edit Delete Name Phone Email
Edit <%= Ajax.ImageActionLink("../../Content/Delete.png", "Delete", "Delete", New with { .id = item.Id }, New AjaxOptions With { .Confirm = "Delete contact?", .HttpMethod = "Delete", .UpdateTargetId = "divContactList" })%> <%= Html.Encode(item.FirstName) %> <%= Html.Encode(item.LastName) %> <%= Html.Encode(item.Phone) %> <%= Html.Encode(item.Email) %>