tags:

views:

149

answers:

2

Hi, I'm new to jQuery. I've got a dialog with several input boxes in it. I want the user to be able to hit a button and have the values posted back to the server - idealy to be picked up in a server event. What are the ways to achieve this?

Many thanks.

A: 

There are a few different approaches you could take. You are probably going to want to use a jquery plugin.

I would look into Thickbox, its very easy to implement. Other options would be using the jQuery UI plugin or jQModal depending on your needs. Each one offers some pros and cons.

Rob
+1  A: 

If you're going to be doing a postback, why can't you just use standard asp.net controls inside of your dialog? I've been using jqModal, and this seems to work fine.

I use a standard HTML input button to trigger the dialog (which is in the page as a hidden div). When the user clicks on the the asp.net button or controls in the dialog, the server doesn't know or care that the controls were in a modal dialog.

Shea Daniels