//aspx
<script type="text/javascript">
function linkRenderer(value, meta, record) {
var customerUrl = '<%=GetPageUrlWithQuery(Pages.CustomerDetails) %>';
return String.format("<a href='{0}'>{1}-{2}</a>",customerUrl, value, record.id);
}
</script>
//aspx.cs
public string GetPageUrlWithQuery(Pages pageType, string param = null){
//..................
}
How can I pass javascript parameter record.id to method '<%=GetPageUrlWithQuery(Pages.CustomerDetails) %>' ?