This commit is contained in:
Virtuworks 2014-12-20 17:03:22 -05:00
commit 35c15aa09d
2 changed files with 17 additions and 1 deletions

View file

@ -73,7 +73,7 @@
<asp:Localize ID="locDomainName" runat="server" meta:resourcekey="locDomainName" Text="Domain name:"></asp:Localize>
</td>
<td class="Normal" width="100%">
<wsp:DomainControl ID="txtDomainName" runat="server" RequiredEnabled="True" ValidationGroup="CreateSpace"></wsp:DomainControl>
<wsp:DomainControl ID="txtDomainName" runat="server" RequiredEnabled="True" ValidationGroup="CreateSpace" AutoPostBack="True" OnTextChanged="txtDomainName_OnTextChanged"></wsp:DomainControl>
</td>
</tr>
</table>

View file

@ -31,6 +31,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
using WebsitePanel.EnterpriseServer;
using WebsitePanel.Portal.UserControls;
using WebsitePanel.Providers.HostedSolution;
namespace WebsitePanel.Portal
@ -266,5 +267,20 @@ namespace WebsitePanel.Portal
{
BindHostingPlan();
}
protected void txtDomainName_OnTextChanged(object sender, DomainControl.DomainNameEventArgs e)
{
if (Utils.IsIdnDomain(txtDomainName.Text))
{
fsMail.Disabled = true;
chkIntegratedOUProvisioning.Checked = false;
chkIntegratedOUProvisioning.Enabled = false;
}
else
{
fsMail.Disabled = false;
BindHostingPlan();
}
}
}
}