fix trad pagina nuovo utente

This commit is contained in:
Samuele E. Locatelli
2013-12-24 11:19:25 +01:00
parent 1d606b8265
commit e6be1d4c34
14 changed files with 96 additions and 46 deletions
Binary file not shown.
@@ -2154,7 +2154,6 @@
<summary>
elimina il file + vecchio
</summary>
<param name="_di"></param>
<returns></returns>
</member>
<member name="F:SteamWare.fileMover.obj">
Binary file not shown.
@@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<NameOfLastUsedPublishProfile>Somaschini-USA</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>Ufficio-ENG %28.17%29</NameOfLastUsedPublishProfile>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
+37 -41
View File
@@ -1,4 +1,4 @@
<%@ Page Language="C#" AutoEventWireup="true" Inherits="autoEnroll" Codebehind="autoEnroll.aspx.cs" %>
<%@ Page Language="C#" AutoEventWireup="true" Inherits="autoEnroll" CodeBehind="autoEnroll.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -7,49 +7,45 @@
</head>
<body>
<form id="form1" runat="server">
<div style="text-align:center;">
<h1>
Registrazione nuovo utente
</h1>
<table>
<tr>
<td>
Cognome:
</td>
<td>
<div style="text-align: center;">
<h1>
<asp:Label runat="server" ID="lblRegNewUser" />
</h1>
<div style="width: 250px; margin: auto; text-align: center; clear:both;">
<div style="float: left;">
<asp:Label runat="server" ID="lblSurname" />:
</div>
<div style="float: right;">
<asp:TextBox ID="txtCognome" runat="server" />
<asp:RequiredFieldValidator ID="rfvCognome" runat="server" ErrorMessage="Richiesto!"
ControlToValidate="txtCognome" />
</td>
</tr>
<tr>
<td>
Nome:
</td>
<td>
<asp:RequiredFieldValidator ID="rfvCognome" runat="server" ErrorMessage="!!!"
ControlToValidate="txtCognome" Display="Dynamic" />
</div>
</div>
<div style="width: 250px; margin: auto; text-align: center; clear:both;">
<div style="float: left;">
<asp:Label runat="server" ID="lblName" />:
</div>
<div style="float: right;">
<asp:TextBox ID="txtNome" runat="server" />
<asp:RequiredFieldValidator ID="rfvNome" runat="server" ErrorMessage="Richiesto!"
ControlToValidate="txtNome" />
</td>
</tr>
<tr>
<td>
email:
</td>
<td>
<asp:RequiredFieldValidator ID="rfvNome" runat="server" ErrorMessage="!!!"
ControlToValidate="txtNome" Display="Dynamic" />
</div>
</div>
<div style="width: 250px; margin: auto; text-align: center; clear:both;">
<div style="float: left;">
<asp:Label runat="server" ID="lblEmail" />:
</div>
<div style="float: right;">
<asp:TextBox ID="txtEmail" runat="server" />
<asp:RequiredFieldValidator ID="rfvEmail" runat="server" ErrorMessage="Richiesto!"
ControlToValidate="txtEmail" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="btnSave" runat="server" Text="Salva" Width="200px"
onclick="btnSave_Click" />
</td>
</tr>
</table>
</div>
<asp:RequiredFieldValidator ID="rfvEmail" runat="server" ErrorMessage="!!!"
ControlToValidate="txtEmail" Display="Dynamic" />
</div>
</div>
<div style="width: 250px; margin: auto; text-align: center;">
<asp:Button ID="btnSave" runat="server" Text="..." Width="250px"
OnClick="btnSave_Click" />
</div>
</div>
</form>
</body>
</html>
@@ -9,7 +9,28 @@ public partial class autoEnroll : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
traduciObj();
}
}
private void traduciObj()
{
lblRegNewUser.Text = traduci("lblRegNewUser");
lblSurname.Text = traduci("lblSurname");
lblName.Text = traduci("lblName");
lblEmail.Text = traduci("lblEmail");
btnSave.Text = traduci("btnSave");
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
protected void btnSave_Click(object sender, EventArgs e)
{
+37 -2
View File
@@ -1,10 +1,9 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
@@ -21,6 +20,24 @@ public partial class autoEnroll {
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// lblRegNewUser control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblRegNewUser;
/// <summary>
/// lblSurname control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblSurname;
/// <summary>
/// txtCognome control.
/// </summary>
@@ -39,6 +56,15 @@ public partial class autoEnroll {
/// </remarks>
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvCognome;
/// <summary>
/// lblName control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblName;
/// <summary>
/// txtNome control.
/// </summary>
@@ -57,6 +83,15 @@ public partial class autoEnroll {
/// </remarks>
protected global::System.Web.UI.WebControls.RequiredFieldValidator rfvNome;
/// <summary>
/// lblEmail control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblEmail;
/// <summary>
/// txtEmail control.
/// </summary>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2154,7 +2154,6 @@
<summary>
elimina il file + vecchio
</summary>
<param name="_di"></param>
<returns></returns>
</member>
<member name="F:SteamWare.fileMover.obj">