For example,
1. GET /search/users
2. GET /search/users?UserName=xxx
For the 1st request by ajax, if I send it in index.html, I need the controller forward to search.html , and do nothing.
For the 2nd request by ajax, if I send it in index.html, I need the controller forward to search.html and return the data then render the page.
If I send it in search.html, just return the data and render the page.
Aucun commentaire:
Enregistrer un commentaire