<input type="checkbox" name="checkBoxes" onclick="Utility('<%# Eval("id") %>');" />
运行 JS 的 onclick
<script type="text/javascript" language="javascript">
var SelectedUtilityId = -1;
var UtilityCompanyId = -1;
function Utility(id) {
SelectedUtilityId = id;
UtilityCompanyId = UtilityCompanyId;
WorkItemMgr.DisplayLabelIfTrue(SelectedUtilityId, UtilityCompanyId);
}
Eval("id") 绑定到 Id,但我也想绑定到 UtilityCompanyId,因为我也想将该值传递给 JS……这是如何完成的?
谢谢