Ok I'l do my best to put most of the code from the user control out here but
there is a problem and the & things dont show up as what they are supposed
to. Here is the entire code for the page witht the problems.
"<%@ 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>
Thank you very much for your help if you would like to see anything else
just tell me it is very much apprietiated.
Davey
"df******@hotma il.com" wrote:
I am very new at all of this and am using a book to put together an
e-commerce website using VS.NET 2003. I have run into a problem and have
looked around the web but with no help. I am getting the following error
when I try to load my website.
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: The server tag is not well formed.
Source Error:
Line 6: <SelectedItemTe mplate>
Line 7: »
Line 8: <asp:HyperLin k id=HyperLink2 runat="server"
Line 9: NavigateUrl='<% # "../default.aspx?De partmentID=" &
Line 10: DataBinder.Eval (Container.Data Item, "department ID") &
If any one would like to check out the error my website's address is
http://surfnsun.gasner.com
Thanks very much in advance
Davey