Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<ActionResult> SearchProduct(SearchModel search , int? page)
- {
- . . . Get data . . . .
- var pageSize = 4;
- int pageNumber=(page ?? 1);
- return PartialView(data.ToPagedList(pageNumber,pageSize));
- }
- //show data from Action SearchProduct
- public class SearchProduct
- {
- public string ProductCode {set;get;}
- public string Price {set;get;}
- public DateTime? from{set;get;}
- public DateTime? to{set;get}
- }
- <input type="text" placeholder="ProductCode"/>
- <input type="text" placeholder="Price"/>
- <input type="text" placeholder="Prom"/>
- <input type="text" placeholder="To"/>
- <button>Send</button>
- <button>Clear</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement