Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public async Task<ActionResult> SearchProduct(SearchModel search , int? page)
  2. {
  3. . . . Get data . . . .
  4.  
  5. var pageSize = 4;
  6. int pageNumber=(page ?? 1);
  7. return PartialView(data.ToPagedList(pageNumber,pageSize));
  8. }
  9.  
  10. //show data from Action SearchProduct
  11.  
  12. public class SearchProduct
  13. {
  14. public string ProductCode {set;get;}
  15. public string Price {set;get;}
  16. public DateTime? from{set;get;}
  17. public DateTime? to{set;get}
  18. }
  19.  
  20. <input type="text" placeholder="ProductCode"/>
  21. <input type="text" placeholder="Price"/>
  22. <input type="text" placeholder="Prom"/>
  23. <input type="text" placeholder="To"/>
  24. <button>Send</button>
  25. <button>Clear</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement