OnClientClick = ‘<%# Eval(“IsActive”).ToString() == “True” ? “return confirm(‘Are you sure? This will remove the control from Brand-Mappings as well.’);” : “” %>’
Hi guys, what i want to do over here is that i want to enable return confirm only when IsActice evaluates to true. I am getting server tag not formed error.
Please help.
The problem is with your single quotes (e.g
'), you have one pair of single quotes at the beginning of theOnClientClick, and then another pair in theconfirm(). Try escaping the second pair for instance: