0

I have a view which has one textbox and one submit button. I want untill the user completes the textbox and presses the submit button to execute some queries somehow async.

How can i achive this? with AsyncController?

Thanks!

4

1 回答 1

1

No, you do not need an async contoller for this, a normal controller should do. What you will need to do is make an AJAX request from the page to the normal controller.

Async controllers are really for advanced thread management on the server, not on the client / web browser. An async controller allows server threads to be freed up during long-running tasks, such as network or disk intensive activity.

于 2012-04-10T18:24:47.607 回答