Eliminazione componenti desueti da ADM

This commit is contained in:
Samuele E. Locatelli
2018-10-19 21:20:58 +02:00
parent cb350c6e85
commit f2e31570db
15 changed files with 0 additions and 927 deletions
-25
View File
@@ -1,25 +0,0 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_resetDb.ascx.cs"
Inherits="MoonPro_site.WebUserControls.mod_resetDb" %>
<h1>
Reset DB</h1>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Panel ID="pnlUpload" Visible="false" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Reset DB" />
</td>
</tr>
</table>
</asp:Panel>
</td>
<td valign="top">
<asp:Panel ID="pnlPasswd" runat="server" Visible="true">
Password di autorizzazione:&nbsp;<asp:TextBox ID="txtPwd" runat="server" TextMode="Password"
AutoPostBack="true" OnTextChanged="txtPwd_TextChanged"></asp:TextBox>
</asp:Panel>
</td>
</tr>
</table>
@@ -1,48 +0,0 @@
using System;
using System.Configuration;
namespace MoonPro_site.WebUserControls
{
public partial class mod_resetDb : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
checkAuth();
}
private void checkAuth()
{
// se in session è auth alora mostro pannello caricamento..
if (Convert.ToBoolean(Session["isAuthResetDb"]))
{
pnlUpload.Visible = true;
pnlPasswd.Visible = false;
}
else
{
pnlUpload.Visible = false;
pnlPasswd.Visible = true;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
// eseguo la stored di refresh del db
utility.obj.resetDb();
}
protected void txtPwd_TextChanged(object sender, EventArgs e)
{
string _pwdOk = ConfigurationManager.AppSettings.Get("_pdwRefreshDb");
// verifico la password ed eventualmente mostro pannello caricamento..
if (txtPwd.Text != "" && txtPwd.Text == _pwdOk)
{
Session["isAuthResetDb"] = true;
checkAuth();
}
else
{
Session["isAuthResetDb"] = false;
checkAuth();
}
}
}
}
-53
View File
@@ -1,53 +0,0 @@
//------------------------------------------------------------------------------
// <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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MoonPro_site.WebUserControls
{
public partial class mod_resetDb {
/// <summary>
/// pnlUpload 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.Panel pnlUpload;
/// <summary>
/// Button1 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.Button Button1;
/// <summary>
/// pnlPasswd 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.Panel pnlPasswd;
/// <summary>
/// txtPwd 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.TextBox txtPwd;
}
}