jeudi 16 mai 2019

How to fill the data and forward to a page on one url without template engine

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