p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 (http://p2p.wrox.com/forumdisplay.php?f=239)
-   -   Chapter 5 - ShowMenu (http://p2p.wrox.com/showthread.php?t=73922)

JP37421 April 14th, 2009 05:42 PM

Chapter 5 - ShowMenu
If you leave all of the code in the aspx page, the ShowMenu page works great. However, if I move the vb code out of the aspx page and put it in the code behind page, I get this error. Type DataRowView is not defined on this line: <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# CType(Container.DataItem, DataRowView).CreateChildView("MenuLink") %>'>.


JP37421 April 15th, 2009 08:18 PM

The solution was to include the <%@ Import Namespace="System.Data" %> at the top of the aspx page.

All times are GMT -4. The time now is 07:46 PM.

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