The following code works on ASP 1.x but I haven't tested it on 2.0:
Code:
// Bind the version label
Assembly myAssembly;
// Instantiate a target object.
Int32 intToGetType = new Int32();
Type myType;
// Set the Type instance to the target class type.
myType = intToGetType.GetType();
// Instantiate an Assembly class to the assembly housing the Integer type.
myAssembly = Assembly.GetAssembly(intToGetType.GetType());
// Display the name of the assembly currently executing
string myName = Assembly.GetExecutingAssembly().GetName().Version.ToString();
lblVersion.Text = myName;
The assembly exposes other useful properties as well.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.