I am calling javascript function through:
<a href='javascript:void(0)' onclick='javascript:onEditRevPrepare("<%#
Convert.ToString(Eval("ReviewTitle")))%>")'>
When single quot (') is present in Eval("ReviewTitle")
its not calling the function.
I tried with:
Convert.ToString(Eval("ReviewTitle"))).Replace("'","\")
But this does not worked.
Also tried with:
<a href='javascript:void(0)' onclick='javascript:onEditRevPrepare(""<%#
Convert.ToString(Eval("ReviewTitle")))%>"")'>
But this also not worked.
EDIT
As and when i add ' or / in replace i stops getting line of javascript , which indicates function calling is not correct:
Please look at the broken line after replace