I am currently working on a demo site that uses the Adventure works sample data base. It is just for my own amusement and to show potential employers, if need be. I am using pagedlist but cannot get the AjaxOptions() feature to work. I thought I could get
it to work just like my AjaxBeginForm(), but it always does a full page refresh. I downloaded the source from TroyGoode pagedlist. But I am very much the novice and I cannot figure out how to go about making mine work by looking at his code. Specifics would
be appreciated. Thanks in advance!!
Here is the code I have:
The controller method:
public ActionResult All(int? page, string searchString = null)
{
ViewBag.PageTitle = "Products";
if (Request.IsAjaxRequest())
{
var products = repository.GetProducts;
if (!String.IsNullOrEmpty(searchString))
products = products.Where(x => x.Name.ToUpper().StartsWith(searchString.ToUpper()));
else
return nul ...
Go to the complete details ...