Author: ultravi0let | Posted on: 10/26/2010 9:08:41 AM | Views : 236

Hello,

I created a User Control :


<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCSousMenuPrincipal.ascx.cs"
    Inherits="view_usercontrols_UCSousMenuPrincipal" %>
    
<asp:DataList ID="dataListSousMenuPrincipal" runat="server" RepeatDirection="Horizontal" >
    <ItemTemplate>
        <asp:HyperLink ID="HyperLink1" runat="server"><%# Container.DataItem %></asp:HyperLink>
         
    </ItemTemplate>
</asp:DataList>


to which I added a property, so I can bind the DataList :


using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
usin ...

Go to the complete details ...