Author: dean s | Posted on: 12/3/2008 7:46:36 AM | Views : 418

I have a datalist that gets menu items from a database. I am trying to change the CSS class (which will highlight the menu item)  to indicate it is the selected menu item using an if then syntax to see if it in the request object. The code below produces a syntax error in my vb project. I have used it before in a C# project without problem. I can't figure out what I am doing wrong. Does anybody see what I am doing wrong or have an alternative way to do this?
 
 
1 <%@ Control Language="VB" AutoEventWireup="false" CodeFile="AdminMenu.ascx.vb" Inherits="Admin_UserControls_AdminMenu" %>
2
3
4 <asp:DataList ID="list" runat="server" Go to the complete details ...