IIS7. Enable/Disable Compression

This commit is contained in:
Sergey 2013-03-06 12:53:22 +02:00
parent c205e3d6e4
commit 181998b145
8 changed files with 144 additions and 10 deletions

View file

@ -129,6 +129,12 @@
<data name="chkAuthBasic.Text" xml:space="preserve">
<value>Enable Basic Authentication</value>
</data>
<data name="chkDynamicCompression.Text" xml:space="preserve">
<value>Enable Dynamic Compression</value>
</data>
<data name="chkStaticCompression.Text" xml:space="preserve">
<value>Enable Static Compression</value>
</data>
<data name="chkAuthWindows.Text" xml:space="preserve">
<value>Enable Integrated Windows Authentication</value>
</data>
@ -159,6 +165,9 @@
<data name="lblAuthentication.Text" xml:space="preserve">
<value>Authentication:</value>
</data>
<data name="lblCompression.Text" xml:space="preserve">
<value>Compression:</value>
</data>
<data name="lblDefaultDocuments.Text" xml:space="preserve">
<value>Default Documents:</value>
</data>

View file

@ -52,6 +52,7 @@
<td><asp:checkbox id="chkDedicatedPool" meta:resourcekey="chkDedicatedPool" Text="Dedicated Application Pool" Runat="server"></asp:checkbox></td>
</tr>
</table>
<asp:PlaceHolder runat="server" id="pnlCustomAuth">
<br />
<table class="Normal" cellSpacing="0" cellPadding="3">
@ -69,8 +70,25 @@
<tr>
<td nowrap><asp:checkbox id="chkAuthBasic" meta:resourcekey="chkAuthBasic" Text="Basic authentication" Runat="server"></asp:checkbox></td>
</tr>
</table>
</table>
</asp:PlaceHolder>
<table class="Normal" cellSpacing="0" cellPadding="3">
<tr>
<td class="NormalBold">
<asp:Label ID="lblCompression" runat="server" meta:resourcekey="lblCompression" Text="Compression:"></asp:Label>
</td>
</tr>
<tr>
<td nowrap><asp:checkbox id="chkDynamicCompression" meta:resourcekey="chkDynamicCompression" Text="Enable dynamic compression" Runat="server"></asp:checkbox></td>
</tr>
<tr>
<td nowrap><asp:checkbox id="chkStaticCompression" meta:resourcekey="chkStaticCompression" Text="Enable static compression" Runat="server"></asp:checkbox></td>
</tr>
</table>
</td>
<td width="30" nowrap></td>
<td valign="top">

View file

@ -81,6 +81,8 @@ namespace WebsitePanel.Portal
chkAuthAnonymous.Checked = item.EnableAnonymousAccess;
chkAuthWindows.Checked = item.EnableWindowsAuthentication;
chkAuthBasic.Checked = item.EnableBasicAuthentication;
chkDynamicCompression.Checked = item.EnableDynamicCompression;
chkStaticCompression.Checked = item.EnableStaticCompression;
// default documents
txtDefaultDocs.Text = String.Join("\n", item.DefaultDocs.Split(',', ';'));
@ -131,6 +133,9 @@ namespace WebsitePanel.Portal
item.EnableAnonymousAccess = chkAuthAnonymous.Checked;
item.EnableWindowsAuthentication = chkAuthWindows.Checked;
item.EnableBasicAuthentication = chkAuthBasic.Checked;
item.EnableDynamicCompression = chkDynamicCompression.Checked;
item.EnableStaticCompression = chkStaticCompression.Checked;
// default documents
item.DefaultDocs = String.Join(",", Utils.ParseDelimitedString(txtDefaultDocs.Text, '\n', '\r', ';', ','));

View file

@ -1,22 +1,15 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.312
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebsitePanel.Portal {
/// <summary>
/// WebSitesHomeFolderControl class.
/// </summary>
/// <remarks>
/// Auto-generated class.
/// </remarks>
public partial class WebSitesHomeFolderControl {
/// <summary>
@ -163,6 +156,33 @@ namespace WebsitePanel.Portal {
/// </remarks>
protected global::System.Web.UI.WebControls.CheckBox chkAuthBasic;
/// <summary>
/// lblCompression 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 lblCompression;
/// <summary>
/// chkDynamicCompression 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.CheckBox chkDynamicCompression;
/// <summary>
/// chkStaticCompression 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.CheckBox chkStaticCompression;
/// <summary>
/// pnlDefaultDocuments control.
/// </summary>