Show navigation | Frontpage | Contact us | Sitemap

<%@ Control Language="c#"%>
<script language="C#" runat="server"> 
 private void Page_Load(object sender, System.EventArgs e) 
 {  
   IEnumerator KeyEnumerator = this.Attributes.Keys.GetEnumerator();

   while( KeyEnumerator.MoveNext() )
   {
    string KeyName = (string)KeyEnumerator.Current;
    string Value = this.Attributes[ KeyName ];

    string attribDesc = String.Format( "<li>{0} : {1}</li>", KeyName, Value );
    LiteralControl L = new LiteralControl( attribDesc );

    this.Controls.Add( L );
   }
 }
</script>

My modules


© 2008 Composite A/S, Danmark
Tlf: +45 39 15 76 00 | info@composite.net
Composite A/S er Microsoft Certified Partner
Composite CMS overholder standarden for valid CSS
Composite CMS overholder standarden for valid XHTML 1.0
Printet fra http://www.composite.net/composite-1589.htm
Findes på denne sti: Composite Developer | 3.x technologies | ASP.NET | Embedding ASP.NET User Controls | User Control Samples | ListAttributes.ascx