运行时错误: 无法获取未定义或 null 引用的属性“innerHTML
<asp:Panelrunat="server"ID="Acceptance"><asp:Repeaterrunat="server"ID="RepAcceptance"...
<asp:Panel runat="server" ID="Acceptance">
<asp:Repeater runat="server" ID="RepAcceptance">
<ItemTemplate>
<a href="javascript:void(0)" id = "buy" val='<%#DataBinder.Eval(Container.DataItem, "ProcInstID")%>'
class="linkButton" onclick="LinkButtonOpen(this)" style="color: #428bca;">
<%#DataBinder.Eval(Container.DataItem, "ApplyCode")%>; </a>
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
.......
function OpenWorkFlowStart(obj) {
var buy = document.getElementById("buy").innerHTML
} 展开
<asp:Repeater runat="server" ID="RepAcceptance">
<ItemTemplate>
<a href="javascript:void(0)" id = "buy" val='<%#DataBinder.Eval(Container.DataItem, "ProcInstID")%>'
class="linkButton" onclick="LinkButtonOpen(this)" style="color: #428bca;">
<%#DataBinder.Eval(Container.DataItem, "ApplyCode")%>; </a>
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
.......
function OpenWorkFlowStart(obj) {
var buy = document.getElementById("buy").innerHTML
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询