refresh x vocab interno a DB principale + try/catch
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@
|
||||
<add key="XPSConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_Vocabolario;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Equa_XPS;Persist Security Info=True;User id=sa;Password=keyhammer"/>
|
||||
<!--Area barcode-->
|
||||
<add key="bCodeRetMain" value="bcex"/>
|
||||
<!-- Setup link a reporting -->
|
||||
|
||||
@@ -16,7 +16,7 @@ public partial class AjaxTitle : System.Web.UI.MasterPage
|
||||
{
|
||||
base.OnLoad(e);
|
||||
Page.Title = SteamWare.memLayer.ML.confReadString("_titoloPagina");
|
||||
|
||||
Mod_pageTitleAndSearch1.doUpdate();
|
||||
}
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
|
||||
@@ -14,24 +14,21 @@ namespace XPS.WebUserControls
|
||||
{
|
||||
public partial class mod_pageTitleAndSearch : SteamWare.UserControl
|
||||
{
|
||||
#region area protected
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
traduciObj();
|
||||
}
|
||||
|
||||
protected string _titolo;
|
||||
protected void traduciObj()
|
||||
public void doUpdate()
|
||||
{
|
||||
DS_Auth.PermessiRow riga = (DS_Auth.PermessiRow)devicesAuthProxy.stObj.permessi.Select(string.Format("URL = '{0}.aspx' OR URL = '{0}'", devicesAuthProxy.pagCorrente))[0];
|
||||
_titolo = riga.NOME;
|
||||
try
|
||||
{
|
||||
DS_Auth.PermessiRow riga = (DS_Auth.PermessiRow)devicesAuthProxy.stObj.permessi.Select(string.Format("URL = '{0}.aspx' OR URL = '{0}'", devicesAuthProxy.pagCorrente))[0];
|
||||
_titolo = riga.NOME;
|
||||
}
|
||||
catch
|
||||
{
|
||||
_titolo = devicesAuthProxy.pagCorrente;
|
||||
}
|
||||
lblTitolo.Text = traduci(_titolo);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user