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="Dep artmentList.asc x.vb"
Inherits="surfn sun.gasner.com. DepartmentList"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5" %>'
<asp:DataList id="list" runat="server" CellPadding="0" >
<HeaderTemplate >
<IMG alt="" src="Images/DeptHeader.gif" border="0">
</HeaderTemplate>
<SelectedItemTe mplate>
»
<asp:HyperLin k id=HyperLink2 runat="server"
NavigateUrl='<% # "../default.aspx?De partmentID=" &
DataBinder.Eval (Container.Data Item, "department ID") &
"&DepartmentInd ex=" & Container.ItemI ndex %>'
Text='<%# DataBinder.Eval (Container.Data Item, "Name") %>'
CssClass="Depar tmentSelected">
</asp:HyperLink>
</SelectedItemTem plate>
<FooterTemplate >
<IMG alt="" src="Images/DeptFooter.gif" border="0">
</FooterTemplate>
<ItemStyle BackColor="Yell ow"></ItemStyle>
<ItemTemplate >
»
<asp:HyperLin k ID=HyperLink1 Runat="server"
NavigateUrl='<% # "../default.aspx?De partmentID=" &
DataBinder.Eval (Container.Data Item, "Department ID") &
"&DepartmentInd ex=" & Conatiner.ItemI ndex %>'
Text='<%# DataBinder.Eval (Container.Data Item, "Name") %>'
CssClass="Depar tmentUnselected ">
</asp:HyperLink>
</ItemTemplate>
<HeaderStyle BackColor="Yell ow"></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