p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional ASP.NET MVC 2 (http://p2p.wrox.com/forumdisplay.php?f=588)
-   -   AJAX code needed for Chapter 7 (http://p2p.wrox.com/showthread.php?t=81693)

Fenlander November 24th, 2010 10:00 AM

AJAX code needed for Chapter 7
 
Sorry but the "code snippets" are just too vague. I now have a Northwind.edmx file and would love to get the example product query working but it isn't happening. Why on earth can't you provide at least whole, downloadable files? Oh, I can use a partial view or a whole view but which one did you use?

My ProductSearch Action result gets as far as finding 7 products beginning with "c". This is certainly good. But communication between the index page and the ProductSearch.ascx just isn't there and I get no results at all posted.

I'm using Chrome and Javascript is allowed (simpler examples already worked, anyway).

Fenlander November 24th, 2010 10:05 AM

Fixed it
 
Sorry guys. Not that I wouldn't like some sample code, mind. I changed the viewmodel of the partial from System.Web.Mvc.ViewUserControl<IList<Product>> to System.Web.Mvc.ViewUserControl<IList<AjaxMVC.Model s.Product>> just tell it what on earth a product is!

Shame you don't get compiler errors for that.


All times are GMT -4. The time now is 11:22 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.