TR 元素内的 AJAX.ACTIONLINK 不执行部分更新
我有两个操作链接。一个在表格内部(一列和一行,仅用于测试目的),以及该链接在表格外部的副本。
只有表外的链接才会进行 AJAX 更新。
这是我的观点:
Dim TaskPanelUpdateOptions As AjaxOptions = New AjaxOptions() 'setup the ajax options. this will target a div for a partial update
With TaskPanelUpdateOptions
.UpdateTargetId = "taskpanel"
.InsertionMode = InsertionMode.Replace
End With
%>
<table>
<tr>
<td>
<%
Response.Write(Ajax.ActionLink("Show in grid", "ShowDetails", "Workflow", New With {.WorkflowMasterId = CType(Model.WorkflowsList.Rows(0), vantageTEM.Business.WorkflowDataset.OpenWorkflowRow).Wfm_Id}, TaskPanelUpdateOptions, Nothing))
%>
</td>
</tr>
</table>
<% Response.Write(Ajax.ActionLink("Show not in grid", "ShowDetails", "Workflow", New With {.WorkflowMasterId = CType(Model.WorkflowsList.Rows(0), vantageTEM.Business.WorkflowDataset.OpenWorkflowRow).Wfm_Id}, TaskPanelUpdateOptions, Nothing))
当我单击不在网格中的链接时,它会正确更新 div。
当我单击网格中的链接时,它似乎仅呈现部分视图?
知道为什么,或者我如何克服这个问题吗?
I have two action links. One inside a table (with one column and one row, just for testing purposes) and a copy of the that link OUTSIDE a table.
Only the link outside the table does an AJAX update.
Here is my view:
Dim TaskPanelUpdateOptions As AjaxOptions = New AjaxOptions() 'setup the ajax options. this will target a div for a partial update
With TaskPanelUpdateOptions
.UpdateTargetId = "taskpanel"
.InsertionMode = InsertionMode.Replace
End With
%>
<table>
<tr>
<td>
<%
Response.Write(Ajax.ActionLink("Show in grid", "ShowDetails", "Workflow", New With {.WorkflowMasterId = CType(Model.WorkflowsList.Rows(0), vantageTEM.Business.WorkflowDataset.OpenWorkflowRow).Wfm_Id}, TaskPanelUpdateOptions, Nothing))
%>
</td>
</tr>
</table>
<% Response.Write(Ajax.ActionLink("Show not in grid", "ShowDetails", "Workflow", New With {.WorkflowMasterId = CType(Model.WorkflowsList.Rows(0), vantageTEM.Business.WorkflowDataset.OpenWorkflowRow).Wfm_Id}, TaskPanelUpdateOptions, Nothing))
When I click The link NOT in the grid it updates the div correctly.
When I click the link IN the grid it seems to render ONLY the partial view?
Any idea why, or how I can overcome this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论