Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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
 
Old January 27th, 2010, 05:54 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default foreach

Seems to be missing something or not fully explained

<% foreach(MembershipUser membershipUser in ViewData.Model) { %>

gives me an error about object.

I included this

Inherits="System.Web.Mvc.ViewPageSystem.Web.Security.Membe rshipUserCollection>"

so don't understand why getting this error.
 
Old January 27th, 2010, 06:07 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default solved

It appears I was missing <

if
<System.Web.Security.MembershipUserCollection>

so it works now thanks




Similar Threads
Thread Thread Starter Forum Replies Last Post
Foreach in Chapter 6 sgtwwilson BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 2 January 22nd, 2010 08:57 PM
foreach with two lists silasla C# 13 May 2nd, 2008 12:27 PM
foreach confusion stokerfed C# 2 June 13th, 2007 02:30 PM
Need help with foreach loop Arsi C# 3 September 7th, 2004 09:41 PM
for loops from within foreach richard.york Pro PHP 5 October 2nd, 2003 01:54 AM





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