Fixed: AddWebsitePointer: Postback was not handled, resetting the input values

to default
This commit is contained in:
robvde 2012-10-14 20:04:50 +04:00
parent 981d7e7ddc
commit 44e3953c85
3 changed files with 11 additions and 7 deletions

View file

@ -47,17 +47,19 @@ namespace WebsitePanel.Portal
{
domainsSelectDomainControl.PackageId = PanelSecurity.PackageId;
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
if (!IsPostBack)
{
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
//if (Utils.CheckQouta(Quotas.WEB_ENABLEHOSTNAMESUPPORT, cntx))
//{
//if (Utils.CheckQouta(Quotas.WEB_ENABLEHOSTNAMESUPPORT, cntx))
//{
txtHostName.Visible = lblTheDotInTheMiddle.Visible = true;
UserSettings settings = ES.Services.Users.GetUserSettings(PanelSecurity.LoggedUserId, UserSettings.WEB_POLICY);
txtHostName.Text = String.IsNullOrEmpty(settings["HostName"]) ? "" : settings["HostName"];
//}
//else
//}
//else
//txtHostName.Visible = lblTheDotInTheMiddle.Visible = false;
}
}