Unknown HTML entity on QueryString
Why is ReSharper telling me that it doesn't know about a querystring field?
@foreach (UserEntity user in issue.Items)
{
<tr onclick='top.location.href="AccountDetails?id=@Request.QueryString["id"]&objectguid=@user.ObjectGuid"' onmouseover='style.cursor="pointer"'>
<td>@user.Username</td>
<td>@user.Firstname</td>
<td>@user.Lastname</td>
<td>@user.EmailAddress</td>
</tr>
}
Please sign in to leave a comment.
Technically, you need to HTML-encode the querystring:
AccountDetails?id=@Request.QueryString["id"]&objectguid=@user.ObjectGuid
I didn't realize it needed to be encoded here. That did the trick.
Thanks,
Bobby Cannon