From cbebfef09d2df0d39df4cdbdab20bd39293c3add Mon Sep 17 00:00:00 2001 From: samuele Date: Wed, 17 Sep 2008 09:25:14 +0000 Subject: [PATCH] Update setup a applicazione corretta git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@4 43c8e981-f90d-406c-a89a-24a2c4268d51 --- XPS/Web.config | 18 +++++++++--------- XPS/mod_lemmiVocab.ascx.cs | 8 ++++++++ XPS/mod_menuBottom.ascx | 5 ++--- XPS/mod_menuBottom.ascx.cs | 4 ---- XPS/mod_vocabolario.ascx | 7 +------ XPS/mod_vocabolario.ascx.cs | 11 ++++++++++- XPS/vocabolario.aspx.cs | 1 + 7 files changed, 31 insertions(+), 23 deletions(-) diff --git a/XPS/Web.config b/XPS/Web.config index 710b243..4f40f77 100644 --- a/XPS/Web.config +++ b/XPS/Web.config @@ -70,7 +70,7 @@ --> - + @@ -84,22 +84,22 @@ - - - - + + + + - - - + + + - + diff --git a/XPS/mod_lemmiVocab.ascx.cs b/XPS/mod_lemmiVocab.ascx.cs index 7dc950c..00ff1d3 100644 --- a/XPS/mod_lemmiVocab.ascx.cs +++ b/XPS/mod_lemmiVocab.ascx.cs @@ -44,6 +44,14 @@ public partial class mod_lemmiVocab : ApplicationUserControl lblNumRec.Text = ""; } } + /// + /// aggiorna i dati mostrati + /// + public void doUpdate() + { + ods.DataBind(); + grView.DataBind(); + } #endregion } diff --git a/XPS/mod_menuBottom.ascx b/XPS/mod_menuBottom.ascx index 682ced0..10bacd2 100644 --- a/XPS/mod_menuBottom.ascx +++ b/XPS/mod_menuBottom.ascx @@ -1,5 +1,4 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_menuBottom.ascx.cs" Inherits="mod_menuBottom" %> - 153 - - \ No newline at end of file +153 - + diff --git a/XPS/mod_menuBottom.ascx.cs b/XPS/mod_menuBottom.ascx.cs index d7bfd81..eb750d5 100644 --- a/XPS/mod_menuBottom.ascx.cs +++ b/XPS/mod_menuBottom.ascx.cs @@ -17,8 +17,4 @@ public partial class mod_menuBottom : System.Web.UI.UserControl lblApp.Text = string.Format("{0} v.{1}.", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev")); lblCopyRight.Text = string.Format("{0}",ConfigurationManager.AppSettings.Get("copyRight")); } - protected void Image1_Click(object sender, ImageClickEventArgs e) - { - Response.Redirect("./chLang.aspx"); - } } diff --git a/XPS/mod_vocabolario.ascx b/XPS/mod_vocabolario.ascx index c77cf87..ef9ea10 100644 --- a/XPS/mod_vocabolario.ascx +++ b/XPS/mod_vocabolario.ascx @@ -25,11 +25,6 @@ ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' /> - - <%-- - --%> @@ -77,7 +72,7 @@ + FilterExpression="Traduzione LIKE '%{0}%' OR Lemma LIKE '%{0}%' " OnUpdated="ods_Updated"> diff --git a/XPS/mod_vocabolario.ascx.cs b/XPS/mod_vocabolario.ascx.cs index 39d0893..c634b26 100644 --- a/XPS/mod_vocabolario.ascx.cs +++ b/XPS/mod_vocabolario.ascx.cs @@ -37,7 +37,9 @@ public partial class mod_vocabolario : ApplicationUserControl { creaNuovoLemma(); } - + /// + /// creazione nuovo lemma + /// private void creaNuovoLemma() { if (txtNewLemma.Text != "") @@ -65,6 +67,7 @@ public partial class mod_vocabolario : ApplicationUserControl { base.aggiornaControlliDataGL(); grView.PageSize = _righeDataGridAnagr; + ods.DataBind(); } protected void grView_DataBound(object sender, EventArgs e) @@ -118,6 +121,11 @@ public partial class mod_vocabolario : ApplicationUserControl selezionatoValore(); } + protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e) + { + selezionatoValore(); + } + #endregion #region area public @@ -137,6 +145,7 @@ public partial class mod_vocabolario : ApplicationUserControl } #endregion + } diff --git a/XPS/vocabolario.aspx.cs b/XPS/vocabolario.aspx.cs index b93e072..60a31ce 100644 --- a/XPS/vocabolario.aspx.cs +++ b/XPS/vocabolario.aspx.cs @@ -31,6 +31,7 @@ public partial class vocabolario : System.Web.UI.Page void Mod_vocabolario1_eh_selezioneValore(object sender, EventArgs e) { Mod_lemmiVocab1.Visible = true; + Mod_lemmiVocab1.doUpdate(); } protected override void OnUnload(EventArgs e)