Sry I'm very new to VB.net and am trying to create a shopping cart by way of
a book that teaches you VB.net along the way. Unfortunatly I'm stuck cuz I
ran into this error and I can't seem to find out what's wrong. If you want
to see the error that it's giving me you can go to my site at
http://surfnsun.gasner.com. I will also include the script for the page
that is giving me problems. Thanks a lot for all the help.
This is the code for DepartmentList.ascx
'<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="DepartmentList.ascx.vb"
Inherits="surfnsun.gasner.com.DepartmentList"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>'
<asp:DataList id="list" runat="server" CellPadding="0">
<HeaderTemplate>
<IMG alt="" src="Images/DeptHeader.gif" border="0">
</HeaderTemplate>
<SelectedItemTemplate>
»
<asp:HyperLink id=HyperLink2 runat="server"
NavigateUrl='<%# "../default.aspx?DepartmentID=" &
DataBinder.Eval(Container.DataItem, "departmentID") &
"&DepartmentIndex=" & Container.ItemIndex %>'
Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'
CssClass="DepartmentSelected">
</asp:HyperLink>
</SelectedItemTemplate>
<FooterTemplate>
<IMG alt="" src="Images/DeptFooter.gif" border="0">
</FooterTemplate>
<ItemStyle BackColor="Yellow"></ItemStyle>
<ItemTemplate>
»
<asp:HyperLink ID=HyperLink1 Runat="server"
NavigateUrl='<%# "../default.aspx?DepartmentID=" &
DataBinder.Eval(Container.DataItem, "DepartmentID") &
"&DepartmentIndex=" & Conatiner.ItemIndex %>'
Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'
CssClass="DepartmentUnselected">
</asp:HyperLink>
</ItemTemplate>
<HeaderStyle BackColor="Yellow"></HeaderStyle>
</asp:DataList>
End of code.
I can't get my debugger to work on Visual studio's but if someone much
smarter then me can plug this in and find out what's wrong I would love it.
Thanks again.
Davey