Aside from the mis-matched quotes, adding an unconditional
return
to the
OnClientClick
will break the behaviour of the
LinkButton
, since it relies on executing additional JavaScript
after that code has executed.
Try:
<asp:LinkButton
id="lnkBtnDelete" runat="server"
OnClientClick='<%# "if(!confirm("وضعیت پلن به" + (Eval("pStatus").ToString().Equals("0") ? "به غیر فعال تغیر کند؟" : "فعال تغیر کند؟") + "")){return false;}" %>'
....