I have the following code, but it`s giving me errors
<div id="ChangePassword" title="Change password for "&<%=item.Name%>>
<%Html.RenderPartial("PasswordDetails", Model); %>
</div>
I need to display the name in the title. How can I do that?
I actually want to dipslay the name of the employee in the div when the link is clicked. How can I do that?
<% foreach (var item in Model.employee) { %>
<tr>
<td><%=item.Name %></td>
<td><%= Html.ActionLink("Edit", "Edit", new { userID = item.ID })%></td>
<td><a href="#" id="password_link" >Change Password</a></td>
<td> <%= Html.ActionLink("Delete", "Delete", new { id = item.ID }, new { Class = "deleteLink", title = item.Name })%></td>
</tr>
<% } %>
$("#password_link").click(function() {
$('#ChangePassword').dialog('open');
return false;
});
<div id="ChangePassword" title="Change password for <%=item.Name%>">
<%Html.RenderPartial("PasswordDetails", Model); %>