Wrox Programmer Forums
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 28th, 2010, 03:28 PM
Authorized User
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default Index

Am I missing something or have I not got to the section where the Index pages have been removed from the home folder.

I get an error when I added this section to my main page

<% var poll = (new TheBeerHouseDataContext()).Polls.CurrentPoll(); %>

if (poll != null && Request.Cookies["poll_" + poll.PollID] == null) { %>
<% Html.RenderPartial(
"~/Views/Shared/Poll/PollItem.ascx", poll); %>
<% }
else { %>
<% Html.RenderPartial(
"~/Views/Shared/Poll/PollResultItem.ascx", poll); %>
<% } %>

The error is on the TheBeerhousedataContext()

Similar Threads
Thread Thread Starter Forum Replies Last Post
Index carumuga SQL Server 2000 1 December 31st, 2007 12:42 PM
create an index bonekrusher XSLT 5 July 31st, 2006 08:14 AM
Index with Pagenumbers alleycat XSLT 0 March 15th, 2006 10:53 AM
Index question Gert SQL Server 2000 3 February 26th, 2004 05:26 AM

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