20 lines
873 B
C#
20 lines
873 B
C#
using System;
|
|
using System.Configuration;
|
|
using System.Diagnostics;
|
|
using System.Web.UI;
|
|
|
|
public partial class mod_menuBottom : System.Web.UI.UserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
// sistemo le stringhe...
|
|
//lblApp.Text = string.Format("<b>{0}</b> v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev"));
|
|
var versionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
|
lblCopyRight.Text = $"<b>{versionInfo.LegalCopyright}</b> 2006 - {DateTime.Now.Year}";
|
|
lblApp.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
|
}
|
|
}
|
|
}
|