35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System;
|
|
using System.Configuration;
|
|
using System.Web.UI;
|
|
|
|
namespace MP_IO
|
|
{
|
|
public partial class status : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
lblVers.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// url completo immagine
|
|
/// </summary>
|
|
/// <param name="url"></param>
|
|
/// <returns></returns>
|
|
public string ImgUrl(object url)
|
|
{
|
|
return string.Format("./images/macchine/{0}", url);
|
|
}
|
|
/// <summary>
|
|
/// evento selezione
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
Session["idxMacchina"] = grView.SelectedDataKey["idxMacchina"];
|
|
}
|
|
}
|
|
} |