I create a Control (Dynamically):
Example:
Button myButton = new Button();
myButton.Id = "button1";
.. and so far..
So, but now, how do I add this Button a jquery Function?
Something like this didn’t work for me:
$("#button1").live('click', function () {
alert("hi iam getting dynamic added button");});
What can I do? Hope u guys can help me 🙁
you could create a generic js function that takes the Id of the control which has been clicked
then on the server side
if you don’t want raise a post back: