views:

1222

answers:

2

I have a button, I need to display a pop-up in javascript. So on its client click I call a javascript function which does that.

if user clicks "yes", I need to do a post back and call buttons server side click event, here is what I am doing inside the javascript function

__doPostBack(deleteLinkButton, 'Click'); 

' Where deleteLinkButton is a variable that has client Id of the button.

Postback happens but it does not go in the click handler for that button.

What can be wrong?

+1  A: 

Try it like this:

__doPostBack('deleteLinkButton', 'Click');
Andreas Grech
I am sorry for not explaining this in the question, deleteLinkButton is the variable that has the button client id.
MOZILLA
A: 

This is not working. it fires page load event but button click event is not getting fired.

Manjulata yadav