Error on __doPostBack, Object doesn't support property or method 'replace'
My goal is to trigger CheckedChanged event on server side with javascript
this is the function:
<script language="javascript" type="text/javascript">
function confirmation(checkbox) {
if (checkbox.checked == true) {
var answer = confirm('Really confirm ');
when I get to __doPostBack(checkbox, ''); I get error in the title.
I'm using script manager in asp and when I remove it, all works well, but I need script manager for ajax.
In debug :
_uniqueIDToClientID: function PageRequestManager$_uniqueIDToClientID(uniqueID) {
->> return uniqueID.replace(/\$/g, '_'); here error is thrown
Bookmarks