Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books 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 30th, 2003, 11:12 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp ,net e-commerce chapter 3 Eroor

wrox joke shop!!

hey guys in chapter 3 making the department list i get this error when i run it???? does any 1 no what it means

Compiler Error Message: BC30456: 'Eva1' is not a member of 'System.Web.UI.DataBinder'.

Source Error:



Line 6: <SelectedItemTemplate>
Line 7: &nbsp;&raquo;
Line 8: <asp:HyperLink id="HyperLink2" runat="server"
Line 9: CssClass="DepartmentSelected"
Line 10: NavigateUrl='<%# "../default.aspx?DepartmentId=" &amp;


Source File: http://localhost/SpeedyFreaks/UserCo...tmentList.ascx Line: 8

  #2 (permalink)  
Old December 1st, 2003, 04:22 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Are you trying to use DataBinding? In that case, I think you're referring to Eval (with an l instead of an 1).
Since you didn't post all your code, I can't be sure, but it looks to me that could be the problem.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old December 1st, 2003, 02:11 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok heres the rest of code

<%@ Control Language="vb" AutoEventWireup="false" Codebehind="DepartmentList.ascx.vb" Inherits="SpeedyFreaks.DepartmentList" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>

<img src="images/DeptHeader.gif" border="0">

<asp:DataList id="List" runat="server">
    <SelectedItemTemplate>
    &nbsp;&raquo;
        <asp:HyperLink id="HyperLink2" runat="server"
        CssClass="DepartmentSelected"
        NavigateUrl='<%# "../default.aspx?DepartmentId=" &amp;
        DataBinder.Eva1(container.DataItem, "departmentId") &amp;
        "&amp;DepartmentIndex=" &amp; Container.ItemIndex %>'
        Text='<%# DataBinder.Eva1(Container.DataItem, "Name") %>'>
        </asp:HyperLink>
    </SelectedItemTemplate>
    <ItemTemplate>
    &nbsp;&raquo;
        <asp:HyperLink id="HyperLink1" runat="server"
        CssClass="DepartmentUnselected"
        NavigateUrl='<%# "../default.aspx?DepartmentId=" &amp;
        DataBinder.Eva1(container.DataItem, "departmentId") &amp;
        "&amp;DepartmentIndex=" &amp; Container.ItemIndex %>'
        Text='<%# DataBinder.Eva1(Container.DataItem, "Name") %>'>
        </asp:HyperLink>
    </ItemTemplate>
</asp:DataList>


  #4 (permalink)  
Old December 1st, 2003, 02:53 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, it's what I though it was (did you even try my recommendation??)
Quote:
quote:<asp:DataList id="List" runat="server">
    <SelectedItemTemplate>
    &nbsp;&raquo;
        <asp:HyperLink id="HyperLink2" runat="server"
        CssClass="DepartmentSelected"
        NavigateUrl='<%# "../default.aspx?DepartmentId=" &amp;
        DataBinder.Eva1(container.DataItem, "departmentId") &amp;
        "&amp;DepartmentIndex=" &amp; Container.ItemIndex %>'
        Text='<%# DataBinder.Eva1(Container.DataItem, "Name") %>'>
        </asp:HyperLink>
    </SelectedItemTemplate>
It says Eva1 and not Eval.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #5 (permalink)  
Old December 1st, 2003, 03:45 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok thx thats got rid off that error but no i get this 1 =(

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30201: Expression expected.

Source Error:



Line 6: <SelectedItemTemplate>
Line 7: &nbsp;&raquo;
Line 8: <asp:HyperLink id="HyperLink2" runat="server"
Line 9: CssClass="DepartmentSelected"
Line 10: NavigateUrl='<%# "../default.aspx?DepartmentId=" &amp;


Source File: http://localhost/SpeedyFreaks/UserCo...tmentList.ascx Line: 8

  #6 (permalink)  
Old December 1st, 2003, 04:09 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What language are you using? Maybe &amp; should in fact be & to concatenate?

It's not clear where you get your data binding from, so I am not sure what the problem is..... Is this the exact code from the book? If so, compare your code with the original downloadable samples....

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a book ( ASP.Net E-Commerce with VB.Net ) duclelo ASP.NET 1.0 and 1.1 Basics 3 January 16th, 2004 12:12 AM
Beginning ASP.NET E-Commerce using VB.NET KJ All Other Wrox Books 2 December 2nd, 2003 09:01 AM





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