2 ajax forms on the same page posting same textbox

Posted by rod on Stack Overflow See other posts from Stack Overflow or by rod
Published on 2010-05-06T23:10:55Z Indexed on 2010/05/06 23:18 UTC
Read the original article Hit count: 148

Filed under:
|

Hi All,

Is it possible to post, say like a value in a textbox, to 2 different ajax forms that are on the same page? It doesn't have to be at the same time?

What I'm trying to do is this: I have a search page that searches for customers and displays them on a paged grid. Users can specify up to 5 parameters (5 textboxes) to narrow the search.

On the same page I have an export option. Well since I want all the customers for the search and not just the paged data I need a way to post back to the server for this option passing the same parameters used in the grid.

I'm using a ViewModel which would be nice if I can pass that back to the server rather than the individual search fields that are backed by the view model.

Thanks, rodchar

© Stack Overflow or respective owner

Related posts about jquery-ajax

Related posts about asp.net-mvc