I'm trying to use the HTTP context razor method to map a server path within a javascript code block. However it's causing an exception with "illegal characters". I'm not sure which characters to encase it in, so razor see's it as c#.
$(document).ready(function () {
$('#StudentTableContainer').jtable({
title: 'Asset Classes',
paging: true,
sorting: true,
pageSize: 25,
defaultSorting: 'Name ASC',
actions: {
listAction: '@(HttpContext.Current.Server.MapPath("GetAssetData?prod=funds"))'
}
});
});