G
Guest
hi there,
I looked up posts on how to get a javascript confirm on the onclick of a
button to determine whether to run server code and i wrote this on the page
load..
string jsalert = "javascript:if(confirm ('Is the employee a rehire?') ==
false) return false";
btnEdit.Attributes["onclick"]=jsalert;
however I'm getting the error message in my subject heading. what have i
done wrong? when i start to write it i get intellisense so i know it
recognises btnEdit.
I looked up posts on how to get a javascript confirm on the onclick of a
button to determine whether to run server code and i wrote this on the page
load..
string jsalert = "javascript:if(confirm ('Is the employee a rehire?') ==
false) return false";
btnEdit.Attributes["onclick"]=jsalert;
however I'm getting the error message in my subject heading. what have i
done wrong? when i start to write it i get intellisense so i know it
recognises btnEdit.