// if we don't find the connection string in session state, assume that we// need to initialize all session variablesif (this.Session["connect_comersus"] == null){ this.Session.Add("connect_comersus", (string) strConnect);}
private string GetBuildText() { string strPath = null, strVersion = null, strDate = null, strReturn = null; FileInfo fiMain = null; Assembly objMain = null; strPath = ConfigurationSettings.AppSettings["dll_path"]; fiMain = new FileInfo(strPath); if (fiMain.Exists) { objMain = Assembly.LoadFrom(strPath); strDate = fiMain.LastWriteTime.ToString("ddMMMyyy HH:mm"); strVersion = objMain.GetName().Version.ToString(); strReturn = strVersion + " ♦ " + strDate; } else strReturn = String.Empty; return strReturn; }
Powered by: newtelligence dasBlog 2.1.8102.813
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Shawn Neal
E-mail