我有一个包含表的UpdatePanel。我正在调用javascript函数来填充表数据。首次呈现页面时,一切工作正常。但是,发生回发时不会显示数据。方法DisplaySvcAgmtFeaturesAndOperational位于单独的.js文件中。我该如何解决?
<form id="PageForm" runat="server" style="WIDTH: 98%; margin: 1px;">
<asp:ScriptManager id="scriptManager" runat="server">
</asp:ScriptManager>
...
<asp:UpdatePanel ID="SummaryUpdatePanel" runat="server" UpdateMode="Conditional">
...
<ItemTemplate>
<tr>
<td>
<% if (!ServiceOrderReadOnly) {%>
<asp:ImageButton ID="DeleteButton" CommandName="Delete" ImageUrl="~/_imgs/16_l_remove.gif" runat="server" Width="16px" Height="16px" OnClientClick="javascript:return confirm('Are you sure you want to delete this resource?');" />
<% } %>
</td>
<td>
<%# Eval("serialNumber") %>: <%# Eval("name") %>
</td>
<td>
<script type="text/javascript">
DisplaySvcAgmtFeaturesAndOperational( <%# Eval("displayServAgmtFeatures")%>, <%# Eval("displayOperationalYesNo")%>, <%# Eval("operational") %>, <%# Eval("emgCov") %>, <%# Eval("autoExp") %>,<%# Eval("accCov") %>,
<%# Eval("expParts") %>, <%# Eval("wtrCov") %> )
</script>
</td>
</tr>