i am generating a anchor from code behind and on its onclick function i want to call javascript function with string as a argument. i am trying this:-
function show(data)
{
alert(data);
}
and calling :-
string data = "<a onclick='show(\""+Task+"\")' >" + anchor inner text + "</a>";
i am adding this string to a table cell and my project requirement is, when user click on that specific cell a popup show the content which i pass as an argument to javascript function.