How to find build date of an asp.net assembly


How to find build date of an asp.net assembly and name of connection string 


Let us first have a label named lblversion, where we shall display the name of the connection string and build date of assembly


Code to be placed in codebehind :


lblVersion.Text = String.Format("Schema: {0}Build Date: {1}", Schema, System.IO.File.GetLastWriteTime (System.Reflection.Assembly.GetExecutingAssembly().Location).
ToShortDateString());

No comments:

Post a Comment