0

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?

10
  • What's the question/problem you're asking about specifically? Commented Apr 1, 2012 at 7:16
  • How do I add an existing asp.net button to jquery dialog? Commented Apr 1, 2012 at 7:19
  • hiya if you are wondering about how to bind the dynamic generated button id "ctl100_..." read some stuff here: stackoverflow.com/questions/716827/… , cheerios! Commented Apr 1, 2012 at 7:21
  • @Tats_innit: I am wondering how to add an existing asp.net button to jquery dialog. Not how to bind the dynamic generated button id. Commented Apr 1, 2012 at 7:24
  • 1
    stackoverflow.com/questions/757232/… ?? this might help, cheerios! Commented Apr 1, 2012 at 7:41

1 Answer 1

0

you can add click event to binding a javascript function like this:

<asp:Button runat="server" OnClick="buttonClick"... /> 
Sign up to request clarification or add additional context in comments.

1 Comment

How does this helps me to add this button to jquery dialog?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.