ASP.NET About Box (Page)
I had a request for an ASP.NET version of my windows forms About Box. This is a good idea that I've considered in the past, so I took the time to convert it today:
Clicking details will provide a dump of all loaded assemblies in summary form, with links to the full list of the attributes for each assembly-- exactly the same information the windows forms version provides.
The main page is a HTML template; you can make it look however you want by modifying the markup-- no recompilation required. To display entry assembly attributes, use the named properties defined in the About class, eg Version <%=Version%>
, or call EntryAssemblyAttrib(key)
with any arbitrary attribute key you want to display.
Oh, and populate your damn assembly attributes, because that's where all this information is automatically derived from:
<Assembly: AssemblyTitle("About Page Demo")> <Assembly: AssemblyDescription("A website demonstrating the About page")> <Assembly: AssemblyCompany("Atwood Heavy Industries")> <Assembly: AssemblyProduct("Demos")> <Assembly: AssemblyCopyright(" 2005, Atwood Heavy Industries")> <Assembly: AssemblyTrademark("All Rights Reserved")>
I don't think this is enough to justify another CodeProject article, so I'll host it here and link it from the comments in the original article.
Download the ASP.NET About Page VS.NET 2003 project (12kb)