I move my js code to jQuery and jQuery UI. I have a problem with the dialog plugin.
Up to now I have used YUI where ther I have to write the buttons of my own. Therefore I was able to use server side buttons (<asp:Button runat="server" ... />
) of my own and pass an id to the YUI plugin.
Now, in jQuery UI dialog, in order to add buttons I must pass an option like this:
buttons:{
nameOfButton:function () {
//what to do when clicked
}
}
How should I treat to asp.NET buttons which has server events (MyButton.Click += ....) and used in server side (in my aspx.cs I have used those buttons)?
How can I use them in the jQuery UI dialog?