Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 24th, 2010, 10:00 AM
Registered User
 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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).
  #2 (permalink)  
Old November 24th, 2010, 10:05 AM
Registered User
 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14 Code page 620, help needed! Safi BOOK: Beginning ASP 3.0 3 December 8th, 2010 12:43 PM
Help on chapter 6 needed leemark2k3 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 September 1st, 2010 06:04 AM
AJAX help needed enggenius Other Programming Languages 0 February 1st, 2007 12:22 PM
Chapter 7 p 214 code didn't work, changes needed.. jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 June 20th, 2004 09:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.