Asp.net mvc asp.net mvc 3 razor和html iframe
我有一个页面,有一个按钮显示iframe,其中有一个小列表,可点击的行如下:Asp.net mvc asp.net mvc 3 razor和html iframe,asp.net-mvc,asp.net-mvc-3,iframe,razor,Asp.net Mvc,Asp.net Mvc 3,Iframe,Razor,我有一个页面,有一个按钮显示iframe,其中有一个小列表,可点击的行如下: <tr onclick="location.href = '@(Url.Action("Show", "Messages", new { id = item.FriendID }))'"> 因此,我的问题是,当用户单击tr Redirect时,我想在i框架上重定向我的父页面。而不是location.href,使用top.href或parent.href <tr onclick="top.href
<tr onclick="location.href = '@(Url.Action("Show", "Messages", new { id = item.FriendID }))'">
因此,我的问题是,当用户单击tr Redirect时,我想在i框架上重定向我的父页面。而不是location.href,使用top.href或parent.href
<tr onclick="top.href = '@(Url.Action("Show", "Messages", new { id = item.FriendID }))'">