I am encountering a peculiar problem. On a button click, I have added the following code.
btnNew.Attributes["onclick"] = "return alert('Great to meet you!')";
But the issue is when I click the nuttom the 1st time, I don't get any
message but on further
clicks I do get this message. Does anybody have any idea as to why this is happening?