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)