|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Util_ConnStringEncrypt.aspx.cs" Inherits="Util_ConnStringEncrypt" %>
<!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" >
<head runat="server">
<title>Web.Config Connection Strings Encryption Utility</title>
</head>
<body>
<form id="form1" runat="server">
<H3>ASP.Net Utility - Connection String Encryption</H3><hr />
<asp:Label ID="lblStatus" runat="server" Text=""></asp:Label><br />
<asp:Button ID="btnEncrypt" runat="server" Text="Encrypt" OnClick="btnEncrypt_Click" /><br />
<asp:Button ID="btnDecrypt" runat="server" Text="Decrypt" OnClick="btnDecrypt_Click" /><br />
<hr />
Connection Strings: <asp:GridView ID="grdConnStrings" runat="server" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
GridLines="Vertical">
<FooterStyle BackColor="#CCCC99" />
<RowStyle BackColor="#F7F7DE" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<br />
<hr />
<table>
<tr>
<td style="width: 100px">
Connection String Key:</td>
<td style="width: 149px">
<asp:TextBox ID="txtConnStringKey" runat="server"></asp:TextBox></td>
<td style="width: 21px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtConnStringKey"
ErrorMessage="RequiredFieldValidator" ValidationGroup="vgrpAdd">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px">
Connection String Value:</td>
<td style="width: 149px">
<asp:TextBox ID="txtConnStringValue" runat="server" Width="387px"></asp:TextBox></td>
<td style="width: 21px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtConnStringValue" ErrorMessage="RequiredFieldValidator" ValidationGroup="vgrpAdd">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px">
Provider:</td>
<td style="width: 149px">
<asp:TextBox ID="txtProvider" runat="server"
Width="398px"></asp:TextBox></td>
<td style="width: 21px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtProvider"
ErrorMessage="Please enter the Value for the connection string." ValidationGroup="vgrpAdd">*</asp:RequiredFieldValidator></td>
</tr>
</table>
<br />
<asp:Button ID="btnAdd" runat="server" Text="Add" OnClick="btnAdd_Click" /><br />
<br />
<asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="The following data is required for adding a new Connection String" ValidationGroup="vgrpAdd" />
<br />
<br />
</form>
</body>
</html> |