<ItemTemplate>
<tr class="row">
<td style="width: 88%;">
<input id="hdnPackageProuctId" type="hidden" value='<%# Eval("ID")%>' />
<div style="float:left; margin-top:5px;height:18px;">
<input type="radio" id="ChkIsProduct" name="chkProductsList" onclick="hdnSelectedProdName.value='<%# HttpUtility.JavaScriptStringEncode(Eval("Name"))%>'; hdnSelectedProdID.value='<%# Eval("ID")%>';" />
</div>
<div style="float:left;font-size:12px;margin-top:5px; font-weight:bold; width:300px;height:18px;" class="gvColSet tLightBlack gvtruncate" title='<%# Eval("Name")%>'>
<%# Eval("Name")%>
</div>
</td>
<td align="right" style="width: 12%;">
<div id="dvPrice" class="gvColSet tLightBlack gvColAlignLeft" style="font-size:12px; float:left; width:95px; "><%# FormatNumber(Eval("SalePrice"), 2)%></div>`enter code here`
<input id="hdnUnitPrice" type="hidden" value='<%# FormatNumber(Eval("SalePrice"), 2)%>' />
</td>
</tr>
</ItemTemplate>
This specific section functions as the item template for a repeater. However, I am encountering a Javascript error when clicking on the checkbox:
onclick="hdnSelectedProdName.value = '<%# HttpUtility.JavaScriptStringEncode(Eval("Name"))%>';
hdnSelectedProdID.value='<%# Eval("ID")%>';
I have attempted to troubleshoot the issue but have been unsuccessful in identifying the root cause.