ive got some answers from the search but my function is still not running
my code
<a href="javascript:;" onclick='<%# "search(" + Eval("Name") + ");" %>'><%# Eval("Name") %></a></li>
function
function search(val) {
alert(val);
searchPagingTable(val, '#tblUsers');
}
the html looks like
<a onclick="search(Fred);" href="javascript:;">
console error
SCRIPT5009: 'Fred' is undefined
i think i need to get the quotes around the string, but if i put single quotes in the aspx, that fails too with a different error
Thanks for any help