Hi,
I've created a menu which has categories created from an MS Access database, and have used the same code before with no problems, but this time, I get an error....
This is my actual code, but I can't work out why it isn't working....
Can anyone help? I have tried starting again a few times but still get the errror.
Thanks
I've created a menu which has categories created from an MS Access database, and have used the same code before with no problems, but this time, I get an error....
VB.NET:
[FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]System.Web.HttpException: Control '_ctl0_ItemTypes__ctl0_ItemType' of type 'LinkButton' must be placed inside a form tag with runat=server.[/FONT]
This is my actual code, but I can't work out why it isn't working....
VB.NET:
<SCRIPT runat="server" language="vb">
<asp:DataList id="ItemTypes" runat="server" OnItemCommand="GetCategory">
<ItemTemplate>
<asp:LinkButton id="ItemType" runat="server" font="Arial" Font-Size="10"
Text= '<%# Container.DataItem("Category") %>'
CommandName='<%# Container.DataItem("Category") %>'/>
</ItemTemplate>
</asp:DataList>
</script>
Can anyone help? I have tried starting again a few times but still get the errror.
Thanks