IPv6 support v1.0
Server: Added IPv6 support for all DNS Providers, but only tested ISC BIND & MS DNS Enterprise Server: Added support for IPv6. Hyper-V not tested, and probably doesn't work. When using IPv6 with Hyper-V it assigns "/CIDR" to the subnet mask, and I don't know if this is the correct implementation. Portal: Modified all IP input masks to accept and validate IPv6. IP Ranges support IP/CIDR format.
This commit is contained in:
parent
90219f284f
commit
c4a1b5f4d6
44 changed files with 3221 additions and 247 deletions
|
@ -1,40 +1,40 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<SiteSettings>
|
||||
<!-- Display Settings -->
|
||||
<PortalName>WebsitePanel</PortalName>
|
||||
<!-- Enterprise Server -->
|
||||
<EnterpriseServer>http://localhost:9002</EnterpriseServer>
|
||||
<!-- General Settings -->
|
||||
<CultureCookieName>UserCulture</CultureCookieName>
|
||||
<ThemeCookieName>UserTheme</ThemeCookieName>
|
||||
<!-- Mail Settings -->
|
||||
<AdminEmail>
|
||||
</AdminEmail>
|
||||
<SmtpHost>
|
||||
</SmtpHost>
|
||||
<SmtpPort>
|
||||
</SmtpPort>
|
||||
<SmtpUsername>
|
||||
</SmtpUsername>
|
||||
<SmtpPassword>
|
||||
</SmtpPassword>
|
||||
<FromEmail>
|
||||
</FromEmail>
|
||||
<!-- Pages -->
|
||||
<DefaultPage>Home</DefaultPage>
|
||||
<LoginPage>Login</LoginPage>
|
||||
<UserHomePage>Home</UserHomePage>
|
||||
<UserCustomersPage>UserCustomers</UserCustomersPage>
|
||||
<SpaceHomePage>SpaceHome</SpaceHomePage>
|
||||
<NestedSpacesPage>NestedSpaces</NestedSpacesPage>
|
||||
<UsersSearchPage>SearchUsers</UsersSearchPage>
|
||||
<SpacesSearchPage>SearchSpaces</SpacesSearchPage>
|
||||
<LoggedUserAccountPage>LoggedUserDetails</LoggedUserAccountPage>
|
||||
<!-- Skins and Containers -->
|
||||
<PortalSkin>Browse2.ascx</PortalSkin>
|
||||
<PortalContainer>Browse.ascx</PortalContainer>
|
||||
<AdminSkin>Edit.ascx</AdminSkin>
|
||||
<AdminContainer>Edit.ascx</AdminContainer>
|
||||
<!-- SSL Settings -->
|
||||
<UseSSL>false</UseSSL>
|
||||
</SiteSettings>
|
||||
<!-- Display Settings -->
|
||||
<PortalName>WebsitePanel</PortalName>
|
||||
<!-- Enterprise Server -->
|
||||
<EnterpriseServer>http://localhost:9005</EnterpriseServer>
|
||||
<!-- General Settings -->
|
||||
<CultureCookieName>UserCulture</CultureCookieName>
|
||||
<ThemeCookieName>UserTheme</ThemeCookieName>
|
||||
<!-- Mail Settings -->
|
||||
<AdminEmail>
|
||||
</AdminEmail>
|
||||
<SmtpHost>
|
||||
</SmtpHost>
|
||||
<SmtpPort>
|
||||
</SmtpPort>
|
||||
<SmtpUsername>
|
||||
</SmtpUsername>
|
||||
<SmtpPassword>
|
||||
</SmtpPassword>
|
||||
<FromEmail>
|
||||
</FromEmail>
|
||||
<!-- Pages -->
|
||||
<DefaultPage>Home</DefaultPage>
|
||||
<LoginPage>Login</LoginPage>
|
||||
<UserHomePage>Home</UserHomePage>
|
||||
<UserCustomersPage>UserCustomers</UserCustomersPage>
|
||||
<SpaceHomePage>SpaceHome</SpaceHomePage>
|
||||
<NestedSpacesPage>NestedSpaces</NestedSpacesPage>
|
||||
<UsersSearchPage>SearchUsers</UsersSearchPage>
|
||||
<SpacesSearchPage>SearchSpaces</SpacesSearchPage>
|
||||
<LoggedUserAccountPage>LoggedUserDetails</LoggedUserAccountPage>
|
||||
<!-- Skins and Containers -->
|
||||
<PortalSkin>Browse2.ascx</PortalSkin>
|
||||
<PortalContainer>Browse.ascx</PortalContainer>
|
||||
<AdminSkin>Edit.ascx</AdminSkin>
|
||||
<AdminContainer>Edit.ascx</AdminContainer>
|
||||
<!-- SSL Settings -->
|
||||
<UseSSL>false</UseSSL>
|
||||
</SiteSettings>
|
|
@ -112,36 +112,42 @@
|
|||
</Compile>
|
||||
<Compile Include="BillingCycles.ascx.cs">
|
||||
<DependentUpon>BillingCycles.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BillingCycles.ascx.designer.cs">
|
||||
<DependentUpon>BillingCycles.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BillingCyclesAddCycle.ascx.cs">
|
||||
<DependentUpon>BillingCyclesAddCycle.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BillingCyclesAddCycle.ascx.designer.cs">
|
||||
<DependentUpon>BillingCyclesAddCycle.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BillingCyclesEditCycle.ascx.cs">
|
||||
<DependentUpon>BillingCyclesEditCycle.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BillingCyclesEditCycle.ascx.designer.cs">
|
||||
<DependentUpon>BillingCyclesEditCycle.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Categories.ascx.cs">
|
||||
<DependentUpon>Categories.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Categories.ascx.designer.cs">
|
||||
<DependentUpon>Categories.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CategoriesAddCategory.ascx.cs">
|
||||
<DependentUpon>CategoriesAddCategory.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CategoriesAddCategory.ascx.designer.cs">
|
||||
<DependentUpon>CategoriesAddCategory.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CategoriesEditCategory.ascx.cs">
|
||||
<DependentUpon>CategoriesEditCategory.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CategoriesEditCategory.ascx.designer.cs">
|
||||
<DependentUpon>CategoriesEditCategory.ascx</DependentUpon>
|
||||
|
@ -153,8 +159,12 @@
|
|||
<Compile Include="Code\Framework\CheckoutBasePage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Code\Framework\ecControlBase.cs" />
|
||||
<Compile Include="Code\Framework\ecModuleBase.cs" />
|
||||
<Compile Include="Code\Framework\ecControlBase.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Code\Framework\ecModuleBase.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Code\Framework\ecPanelFormatter.cs" />
|
||||
<Compile Include="Code\Framework\ecPanelGlobals.cs" />
|
||||
<Compile Include="Code\Framework\ecPanelRequest.cs" />
|
||||
|
@ -181,150 +191,175 @@
|
|||
</Compile>
|
||||
<Compile Include="CustomerPaymentProfile.ascx.cs">
|
||||
<DependentUpon>CustomerPaymentProfile.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomerPaymentProfile.ascx.designer.cs">
|
||||
<DependentUpon>CustomerPaymentProfile.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomersInvoices.ascx.cs">
|
||||
<DependentUpon>CustomersInvoices.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomersInvoices.ascx.designer.cs">
|
||||
<DependentUpon>CustomersInvoices.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomersInvoicesViewInvoice.ascx.cs">
|
||||
<DependentUpon>CustomersInvoicesViewInvoice.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomersInvoicesViewInvoice.ascx.designer.cs">
|
||||
<DependentUpon>CustomersInvoicesViewInvoice.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomersPayments.ascx.cs">
|
||||
<DependentUpon>CustomersPayments.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomersPayments.ascx.designer.cs">
|
||||
<DependentUpon>CustomersPayments.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomersServices.ascx.cs">
|
||||
<DependentUpon>CustomersServices.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomersServices.ascx.designer.cs">
|
||||
<DependentUpon>CustomersServices.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomersServicesUpgradeService.ascx.cs">
|
||||
<DependentUpon>CustomersServicesUpgradeService.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomersServicesUpgradeService.ascx.designer.cs">
|
||||
<DependentUpon>CustomersServicesUpgradeService.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CustomersServicesViewService.ascx.cs">
|
||||
<DependentUpon>CustomersServicesViewService.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomersServicesViewService.ascx.designer.cs">
|
||||
<DependentUpon>CustomersServicesViewService.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DomainNames.ascx.cs">
|
||||
<DependentUpon>DomainNames.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DomainNames.ascx.designer.cs">
|
||||
<DependentUpon>DomainNames.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DomainNamesAddDomain.ascx.cs">
|
||||
<DependentUpon>DomainNamesAddDomain.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DomainNamesAddDomain.ascx.designer.cs">
|
||||
<DependentUpon>DomainNamesAddDomain.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DomainNamesEditDomain.ascx.cs">
|
||||
<DependentUpon>DomainNamesEditDomain.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DomainNamesEditDomain.ascx.designer.cs">
|
||||
<DependentUpon>DomainNamesEditDomain.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DomainRegistrarDirecti.ascx.cs">
|
||||
<DependentUpon>DomainRegistrarDirecti.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DomainRegistrarDirecti.ascx.designer.cs">
|
||||
<DependentUpon>DomainRegistrarDirecti.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DomainRegistrarEnom.ascx.cs">
|
||||
<DependentUpon>DomainRegistrarEnom.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DomainRegistrarEnom.ascx.designer.cs">
|
||||
<DependentUpon>DomainRegistrarEnom.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EcommerceSystemSettings.ascx.cs">
|
||||
<DependentUpon>EcommerceSystemSettings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="EcommerceSystemSettings.ascx.designer.cs">
|
||||
<DependentUpon>EcommerceSystemSettings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostingAddons.ascx.cs">
|
||||
<DependentUpon>HostingAddons.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostingAddons.ascx.designer.cs">
|
||||
<DependentUpon>HostingAddons.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostingAddonsAddAddon.ascx.cs">
|
||||
<DependentUpon>HostingAddonsAddAddon.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostingAddonsAddAddon.ascx.designer.cs">
|
||||
<DependentUpon>HostingAddonsAddAddon.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostingAddonsEditAddon.ascx.cs">
|
||||
<DependentUpon>HostingAddonsEditAddon.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostingAddonsEditAddon.ascx.designer.cs">
|
||||
<DependentUpon>HostingAddonsEditAddon.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostingPlans.ascx.cs">
|
||||
<DependentUpon>HostingPlans.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostingPlans.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlans.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostingPlansAddPlan.ascx.cs">
|
||||
<DependentUpon>HostingPlansAddPlan.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostingPlansAddPlan.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlansAddPlan.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HostingPlansEditPlan.ascx.cs">
|
||||
<DependentUpon>HostingPlansEditPlan.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HostingPlansEditPlan.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlansEditPlan.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="NotificationNewInvoice.ascx.cs">
|
||||
<DependentUpon>NotificationNewInvoice.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="NotificationNewInvoice.ascx.designer.cs">
|
||||
<DependentUpon>NotificationNewInvoice.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="NotificationPaymentReceived.ascx.cs">
|
||||
<DependentUpon>NotificationPaymentReceived.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="NotificationPaymentReceived.ascx.designer.cs">
|
||||
<DependentUpon>NotificationPaymentReceived.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="NotificationServiceActivated.ascx.cs">
|
||||
<DependentUpon>NotificationServiceActivated.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="NotificationServiceActivated.ascx.designer.cs">
|
||||
<DependentUpon>NotificationServiceActivated.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="NotificationServiceCancelled.ascx.cs">
|
||||
<DependentUpon>NotificationServiceCancelled.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="NotificationServiceCancelled.ascx.designer.cs">
|
||||
<DependentUpon>NotificationServiceCancelled.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="NotificationServiceSuspended.ascx.cs">
|
||||
<DependentUpon>NotificationServiceSuspended.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="NotificationServiceSuspended.ascx.designer.cs">
|
||||
<DependentUpon>NotificationServiceSuspended.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OrderFailed.ascx.cs">
|
||||
<DependentUpon>OrderFailed.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OrderFailed.ascx.designer.cs">
|
||||
<DependentUpon>OrderFailed.ascx</DependentUpon>
|
||||
|
@ -338,48 +373,56 @@
|
|||
</Compile>
|
||||
<Compile Include="PaymentMethod2Checkout.ascx.cs">
|
||||
<DependentUpon>PaymentMethod2Checkout.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethod2Checkout.ascx.designer.cs">
|
||||
<DependentUpon>PaymentMethod2Checkout.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethodCreditCard.ascx.cs">
|
||||
<DependentUpon>PaymentMethodCreditCard.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethodCreditCard.ascx.designer.cs">
|
||||
<DependentUpon>PaymentMethodCreditCard.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethodOffline.ascx.cs">
|
||||
<DependentUpon>PaymentMethodOffline.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethodOffline.ascx.designer.cs">
|
||||
<DependentUpon>PaymentMethodOffline.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethodPayPalAccount.ascx.cs">
|
||||
<DependentUpon>PaymentMethodPayPalAccount.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethodPayPalAccount.ascx.designer.cs">
|
||||
<DependentUpon>PaymentMethodPayPalAccount.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\2CO_Payment.ascx.cs">
|
||||
<DependentUpon>2CO_Payment.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\2CO_Payment.ascx.designer.cs">
|
||||
<DependentUpon>2CO_Payment.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\CreditCard_Payment.ascx.cs">
|
||||
<DependentUpon>CreditCard_Payment.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\CreditCard_Payment.ascx.designer.cs">
|
||||
<DependentUpon>CreditCard_Payment.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\Offline_Payment.ascx.cs">
|
||||
<DependentUpon>Offline_Payment.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\Offline_Payment.ascx.designer.cs">
|
||||
<DependentUpon>Offline_Payment.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\PPAccount_Payment.ascx.cs">
|
||||
<DependentUpon>PPAccount_Payment.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PaymentMethods\PPAccount_Payment.ascx.designer.cs">
|
||||
<DependentUpon>PPAccount_Payment.ascx</DependentUpon>
|
||||
|
@ -393,30 +436,35 @@
|
|||
</Compile>
|
||||
<Compile Include="ProductControls\DomainName_ServiceDetails.ascx.cs">
|
||||
<DependentUpon>DomainName_ServiceDetails.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\DomainName_ServiceDetails.ascx.designer.cs">
|
||||
<DependentUpon>DomainName_ServiceDetails.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingAddon_ServiceDetails.ascx.cs">
|
||||
<DependentUpon>HostingAddon_ServiceDetails.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingAddon_ServiceDetails.ascx.designer.cs">
|
||||
<DependentUpon>HostingAddon_ServiceDetails.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingPlan_Brief.ascx.cs">
|
||||
<DependentUpon>HostingPlan_Brief.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingPlan_Brief.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlan_Brief.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingPlan_Highlights.ascx.cs">
|
||||
<DependentUpon>HostingPlan_Highlights.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingPlan_Highlights.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlan_Highlights.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingPlan_ServiceDetails.ascx.cs">
|
||||
<DependentUpon>HostingPlan_ServiceDetails.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductControls\HostingPlan_ServiceDetails.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlan_ServiceDetails.ascx</DependentUpon>
|
||||
|
@ -424,24 +472,28 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ProvisioningSettingsEdit.ascx.cs">
|
||||
<DependentUpon>ProvisioningSettingsEdit.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProvisioningSettingsEdit.ascx.designer.cs">
|
||||
<DependentUpon>ProvisioningSettingsEdit.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="QuickSignup.ascx.cs">
|
||||
<DependentUpon>QuickSignup.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="QuickSignup.ascx.designer.cs">
|
||||
<DependentUpon>QuickSignup.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OrderComplete.ascx.cs">
|
||||
<DependentUpon>OrderComplete.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OrderComplete.ascx.designer.cs">
|
||||
<DependentUpon>OrderComplete.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="OrderCheckout.ascx.cs">
|
||||
<DependentUpon>OrderCheckout.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="OrderCheckout.ascx.designer.cs">
|
||||
<DependentUpon>OrderCheckout.ascx</DependentUpon>
|
||||
|
@ -453,102 +505,119 @@
|
|||
</Compile>
|
||||
<Compile Include="SkinControls\CatalogBreadCrumb.ascx.cs">
|
||||
<DependentUpon>CatalogBreadCrumb.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SkinControls\CatalogBreadCrumb.ascx.designer.cs">
|
||||
<DependentUpon>CatalogBreadCrumb.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontMenu.ascx.cs">
|
||||
<DependentUpon>StorefrontMenu.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontMenu.ascx.designer.cs">
|
||||
<DependentUpon>StorefrontMenu.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontOrderProduct.ascx.cs">
|
||||
<DependentUpon>StorefrontOrderProduct.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontOrderProduct.ascx.designer.cs">
|
||||
<DependentUpon>StorefrontOrderProduct.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontViewCategory.ascx.cs">
|
||||
<DependentUpon>StorefrontViewCategory.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontViewCategory.ascx.designer.cs">
|
||||
<DependentUpon>StorefrontViewCategory.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontWelcome.ascx.cs">
|
||||
<DependentUpon>StorefrontWelcome.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontWelcome.ascx.designer.cs">
|
||||
<DependentUpon>StorefrontWelcome.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontWelcomeEdit.ascx.cs">
|
||||
<DependentUpon>StorefrontWelcomeEdit.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StorefrontWelcomeEdit.ascx.designer.cs">
|
||||
<DependentUpon>StorefrontWelcomeEdit.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\2Checkout_Settings.ascx.cs">
|
||||
<DependentUpon>2Checkout_Settings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\2Checkout_Settings.ascx.designer.cs">
|
||||
<DependentUpon>2Checkout_Settings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\AuthorizeNet_Settings.ascx.cs">
|
||||
<DependentUpon>AuthorizeNet_Settings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\AuthorizeNet_Settings.ascx.designer.cs">
|
||||
<DependentUpon>AuthorizeNet_Settings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\OfflinePayment_Settings.ascx.cs">
|
||||
<DependentUpon>OfflinePayment_Settings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\OfflinePayment_Settings.ascx.designer.cs">
|
||||
<DependentUpon>OfflinePayment_Settings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\PayPalPro_Settings.ascx.cs">
|
||||
<DependentUpon>PayPalPro_Settings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\PayPalPro_Settings.ascx.designer.cs">
|
||||
<DependentUpon>PayPalPro_Settings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\PayPalStandard_Settings.ascx.cs">
|
||||
<DependentUpon>PayPalStandard_Settings.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SupportedPlugins\PayPalStandard_Settings.ascx.designer.cs">
|
||||
<DependentUpon>PayPalStandard_Settings.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Taxations.ascx.cs">
|
||||
<DependentUpon>Taxations.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Taxations.ascx.designer.cs">
|
||||
<DependentUpon>Taxations.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TaxationsAddTax.ascx.cs">
|
||||
<DependentUpon>TaxationsAddTax.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TaxationsAddTax.ascx.designer.cs">
|
||||
<DependentUpon>TaxationsAddTax.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TaxationsEditTax.ascx.cs">
|
||||
<DependentUpon>TaxationsEditTax.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TaxationsEditTax.ascx.designer.cs">
|
||||
<DependentUpon>TaxationsEditTax.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TermsAndConditions.ascx.cs">
|
||||
<DependentUpon>TermsAndConditions.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TermsAndConditions.ascx.designer.cs">
|
||||
<DependentUpon>TermsAndConditions.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TermsAndConditionsEdit.ascx.cs">
|
||||
<DependentUpon>TermsAndConditionsEdit.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TermsAndConditionsEdit.ascx.designer.cs">
|
||||
<DependentUpon>TermsAndConditionsEdit.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\AddonProducts.ascx.cs">
|
||||
<DependentUpon>AddonProducts.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\AddonProducts.ascx.designer.cs">
|
||||
<DependentUpon>AddonProducts.ascx</DependentUpon>
|
||||
|
@ -565,120 +634,140 @@
|
|||
</Compile>
|
||||
<Compile Include="UserControls\ChoosePaymentMethod.ascx.cs">
|
||||
<DependentUpon>ChoosePaymentMethod.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ChoosePaymentMethod.ascx.designer.cs">
|
||||
<DependentUpon>ChoosePaymentMethod.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\CreateUserAccount.ascx.cs">
|
||||
<DependentUpon>CreateUserAccount.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\CreateUserAccount.ascx.designer.cs">
|
||||
<DependentUpon>CreateUserAccount.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\CustomerInvoiceTemplated.ascx.cs">
|
||||
<DependentUpon>CustomerInvoiceTemplated.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\CustomerInvoiceTemplated.ascx.designer.cs">
|
||||
<DependentUpon>CustomerInvoiceTemplated.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\DomainNameBillingCycles.ascx.cs">
|
||||
<DependentUpon>DomainNameBillingCycles.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\DomainNameBillingCycles.ascx.designer.cs">
|
||||
<DependentUpon>DomainNameBillingCycles.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\EmailNotificationEditor.ascx.cs">
|
||||
<DependentUpon>EmailNotificationEditor.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\EmailNotificationEditor.ascx.designer.cs">
|
||||
<DependentUpon>EmailNotificationEditor.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\HostingAddonOneTimeFee.ascx.cs">
|
||||
<DependentUpon>HostingAddonOneTimeFee.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\HostingAddonOneTimeFee.ascx.designer.cs">
|
||||
<DependentUpon>HostingAddonOneTimeFee.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\HostingPlanBillingCycles.ascx.cs">
|
||||
<DependentUpon>HostingPlanBillingCycles.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\HostingPlanBillingCycles.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlanBillingCycles.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\HostingPlanQuotas.ascx.cs">
|
||||
<DependentUpon>HostingPlanQuotas.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\HostingPlanQuotas.ascx.designer.cs">
|
||||
<DependentUpon>HostingPlanQuotas.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\LoginUserAccount.ascx.cs">
|
||||
<DependentUpon>LoginUserAccount.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\LoginUserAccount.ascx.designer.cs">
|
||||
<DependentUpon>LoginUserAccount.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ManualPaymentAdd.ascx.cs">
|
||||
<DependentUpon>ManualPaymentAdd.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ManualPaymentAdd.ascx.designer.cs">
|
||||
<DependentUpon>ManualPaymentAdd.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\PlanDomainOption.ascx.cs">
|
||||
<DependentUpon>PlanDomainOption.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\PlanDomainOption.ascx.designer.cs">
|
||||
<DependentUpon>PlanDomainOption.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\PlanHostingAddons.ascx.cs">
|
||||
<DependentUpon>PlanHostingAddons.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\PlanHostingAddons.ascx.designer.cs">
|
||||
<DependentUpon>PlanHostingAddons.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ProductHighlights.ascx.cs">
|
||||
<DependentUpon>ProductHighlights.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ProductHighlights.ascx.designer.cs">
|
||||
<DependentUpon>ProductHighlights.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\QuickHostingAddon.ascx.cs">
|
||||
<DependentUpon>QuickHostingAddon.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\QuickHostingAddon.ascx.designer.cs">
|
||||
<DependentUpon>QuickHostingAddon.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\QuickHostingPlanCycles.ascx.cs">
|
||||
<DependentUpon>QuickHostingPlanCycles.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\QuickHostingPlanCycles.ascx.designer.cs">
|
||||
<DependentUpon>QuickHostingPlanCycles.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\QuickHostingPlans.ascx.cs">
|
||||
<DependentUpon>QuickHostingPlans.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\QuickHostingPlans.ascx.designer.cs">
|
||||
<DependentUpon>QuickHostingPlans.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\PathBreadCrumb.ascx.cs">
|
||||
<DependentUpon>PathBreadCrumb.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\PathBreadCrumb.ascx.designer.cs">
|
||||
<DependentUpon>PathBreadCrumb.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ProductCategories.ascx.cs">
|
||||
<DependentUpon>ProductCategories.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\ProductCategories.ascx.designer.cs">
|
||||
<DependentUpon>ProductCategories.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\UserAccountDetails.ascx.cs">
|
||||
<DependentUpon>UserAccountDetails.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserControls\UserAccountDetails.ascx.designer.cs">
|
||||
<DependentUpon>UserAccountDetails.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewProductDetails.ascx.cs">
|
||||
<DependentUpon>ViewProductDetails.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ViewProductDetails.ascx.designer.cs">
|
||||
<DependentUpon>ViewProductDetails.ascx</DependentUpon>
|
||||
|
|
|
@ -73,6 +73,7 @@ function confirmation()
|
|||
<td class="NormalBold">
|
||||
<asp:DropDownList ID="ddlRecordType" runat="server" SelectedValue='<%# Bind("RecordType") %>' CssClass="NormalTextBox" AutoPostBack="True" OnSelectedIndexChanged="ddlRecordType_SelectedIndexChanged">
|
||||
<asp:ListItem>A</asp:ListItem>
|
||||
<asp:ListItem>AAAA</asp:ListItem>
|
||||
<asp:ListItem>MX</asp:ListItem>
|
||||
<asp:ListItem>NS</asp:ListItem>
|
||||
<asp:ListItem>TXT</asp:ListItem>
|
||||
|
@ -89,11 +90,11 @@ function confirmation()
|
|||
<tr id="rowData" runat="server">
|
||||
<td class="SubHead"><asp:Label ID="lblRecordData" runat="server" meta:resourcekey="lblRecordData" Text="Record Data:"></asp:Label></td>
|
||||
<td class="NormalBold" nowrap>
|
||||
<asp:TextBox ID="txtRecordData" runat="server" Width="200px" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:TextBox ID="txtRecordData" runat="server" Width="260px" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="valRequireData" runat="server" ControlToValidate="txtRecordData"
|
||||
ErrorMessage="*" ValidationGroup="DnsZoneRecord" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
<asp:regularexpressionvalidator id="IPValidator" runat="server" ValidationExpression="^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"
|
||||
Display="Dynamic" ErrorMessage="Please enter a valid IP" ValidationGroup="DnsZoneRecord" ControlToValidate="txtRecordData" CssClass="NormalBold"></asp:regularexpressionvalidator>
|
||||
<asp:CustomValidator ID="IPValidator" runat="server" ControlToValidate="txtRecordData" ValidationGroup="DnsZoneRecord" Display="Dynamic" CssClass="NormalBold"
|
||||
Text="Please enter a valid IP" OnServerValidate="Validate" meta:resourcekey="IPValidator" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
@ -102,14 +103,14 @@ function confirmation()
|
|||
<td class="NormalBold">
|
||||
<asp:TextBox ID="txtMXPriority" runat="server" Width="30" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="valRequireMxPriority" runat="server" ControlToValidate="txtMXPriority"
|
||||
ErrorMessage="*" ValidationGroup="DnsZoneRecord" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
ErrorMessage="*" ValidationGroup="DnsZoneRecord" Display="Dynamic" />
|
||||
<asp:RegularExpressionValidator ID="valRequireCorrectPriority" runat="server" ControlToValidate="txtMXPriority"
|
||||
ErrorMessage="*" ValidationExpression="\d{1,3}"></asp:RegularExpressionValidator></td>
|
||||
ErrorMessage="*" ValidationExpression="\d{1,3}" ValidationGroup="DnsZoneRecord" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="FormFooter">
|
||||
<asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" Text="Save" CssClass="Button1" OnClick="btnSave_Click" OnClientClick = "ShowProgressDialog('Saving DNS Zone Record ...');" ValidationGroup="DnsZoneRecord" />
|
||||
<asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" Text="Cancel" CssClass="Button1" OnClick="btnCancel_Click" CausesValidation="False" /></td>
|
||||
<asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" Text="Cancel" CssClass="Button1" OnClick="btnCancel_Click" CausesValidation="False" />
|
||||
</div>
|
||||
</asp:Panel>
|
|
@ -109,6 +109,11 @@ namespace WebsitePanel.Portal
|
|||
lblRecordData.Text = "IP:";
|
||||
IPValidator.Enabled = true;
|
||||
}
|
||||
else if (ddlRecordType.SelectedValue == "AAAA")
|
||||
{
|
||||
lblRecordData.Text = "IP (v6):";
|
||||
IPValidator.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblRecordData.Text = "Record Data:";
|
||||
|
@ -116,6 +121,14 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
}
|
||||
|
||||
protected void Validate(object source, ServerValidateEventArgs args) {
|
||||
var ip = args.Value;
|
||||
System.Net.IPAddress ipaddr;
|
||||
args.IsValid = System.Net.IPAddress.TryParse(ip, out ipaddr) && (ip.Contains(":") || ip.Contains(".")) &&
|
||||
((ddlRecordType.SelectedValue == "A" && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) ||
|
||||
(ddlRecordType.SelectedValue == "AAAA" && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6));
|
||||
}
|
||||
|
||||
private void SaveRecord()
|
||||
{
|
||||
if (Page.IsValid)
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3074
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
@ -173,7 +172,7 @@ namespace WebsitePanel.Portal {
|
|||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RegularExpressionValidator IPValidator;
|
||||
protected global::System.Web.UI.WebControls.CustomValidator IPValidator;
|
||||
|
||||
/// <summary>
|
||||
/// rowMXPriority control.
|
||||
|
|
|
@ -113,6 +113,7 @@
|
|||
<td class="NormalBold" width="100%">
|
||||
<asp:DropDownList ID="ddlRecordType" runat="server" SelectedValue='<%# Bind("RecordType") %>' CssClass="NormalTextBox" AutoPostBack="True" OnSelectedIndexChanged="ddlRecordType_SelectedIndexChanged">
|
||||
<asp:ListItem>A</asp:ListItem>
|
||||
<asp:ListItem>AAAA</asp:ListItem>
|
||||
<asp:ListItem>MX</asp:ListItem>
|
||||
<asp:ListItem>NS</asp:ListItem>
|
||||
<asp:ListItem>TXT</asp:ListItem>
|
||||
|
@ -129,14 +130,14 @@
|
|||
<tr id="rowData" runat="server">
|
||||
<td class="SubHead"><asp:Label ID="lblRecordData" runat="server" meta:resourcekey="lblRecordData" Text="Record Data:"></asp:Label></td>
|
||||
<td class="NormalBold" nowrap>
|
||||
<asp:TextBox ID="txtRecordData" runat="server" Width="200px" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:TextBox ID="txtRecordData" runat="server" Width="260px" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="valRequireData" runat="server" ControlToValidate="txtRecordData"
|
||||
ErrorMessage="*" ValidationGroup="DnsZoneRecord" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<asp:regularexpressionvalidator id="IPValidator1" runat="server" ValidationExpression="^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"
|
||||
Display="Dynamic" ErrorMessage="Please enter a valid IP" ValidationGroup="DnsZoneRecord" ControlToValidate="txtRecordData" CssClass="NormalBold"></asp:regularexpressionvalidator>
|
||||
<asp:CustomValidator ID="IPValidator" runat="server" ControlToValidate="txtRecordData" ValidationGroup="DnsZoneRecord" Display="Dynamic"
|
||||
OnServerValidate="Validate" Text="Please enter a valid IP" meta:resourcekey="IPValidator" />
|
||||
</tr>
|
||||
<tr id="rowMXPriority" runat="server">
|
||||
<td class="SubHead"><asp:Label ID="lblMXPriority" runat="server" meta:resourcekey="lblMXPriority" Text="MX Priority:"></asp:Label></td>
|
||||
|
|
|
@ -110,15 +110,27 @@ namespace WebsitePanel.Portal.ExchangeServer
|
|||
if (ddlRecordType.SelectedValue == "A")
|
||||
{
|
||||
lblRecordData.Text = "IP:";
|
||||
IPValidator1.Enabled = true;
|
||||
}
|
||||
IPValidator.Enabled = true;
|
||||
}
|
||||
else if (ddlRecordType.SelectedValue == "AAAA") {
|
||||
lblRecordData.Text = "IPv6:";
|
||||
IPValidator.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblRecordData.Text = "Record Data:";
|
||||
IPValidator1.Enabled = false;
|
||||
IPValidator.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Validate(object source, ServerValidateEventArgs args) {
|
||||
var ip = args.Value;
|
||||
System.Net.IPAddress ipaddr;
|
||||
args.IsValid = System.Net.IPAddress.TryParse(ip, out ipaddr) && (ip.Contains(":") || ip.Contains(".")) &&
|
||||
((ddlRecordType.SelectedValue == "A" && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) ||
|
||||
(ddlRecordType.SelectedValue == "AAAA" && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6));
|
||||
}
|
||||
|
||||
private void SaveRecord()
|
||||
{
|
||||
if (!Page.IsValid)
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.1433
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
@ -230,13 +229,13 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
|||
protected global::System.Web.UI.WebControls.RequiredFieldValidator valRequireData;
|
||||
|
||||
/// <summary>
|
||||
/// IPValidator1 control.
|
||||
/// IPValidator 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.RegularExpressionValidator IPValidator1;
|
||||
protected global::System.Web.UI.WebControls.CustomValidator IPValidator;
|
||||
|
||||
/// <summary>
|
||||
/// rowMXPriority control.
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
<td class="Normal" width="100%">
|
||||
<asp:DropDownList ID="ddlRecordType" runat="server" SelectedValue='<%# Bind("RecordType") %>' CssClass="NormalTextBox" AutoPostBack="True" OnSelectedIndexChanged="ddlRecordType_SelectedIndexChanged">
|
||||
<asp:ListItem>A</asp:ListItem>
|
||||
<asp:ListItem>AAAA</asp:ListItem>
|
||||
<asp:ListItem>MX</asp:ListItem>
|
||||
<asp:ListItem>NS</asp:ListItem>
|
||||
<asp:ListItem>TXT</asp:ListItem>
|
||||
|
@ -51,13 +52,21 @@
|
|||
<tr id="rowData" runat="server">
|
||||
<td class="SubHead"><asp:Label ID="lblRecordData" runat="server" meta:resourcekey="lblRecordData" Text="Record Data:"></asp:Label></td>
|
||||
<td class="Normal" nowrap>
|
||||
<asp:TextBox ID="txtRecordData" runat="server" Width="100px" CssClass="NormalTextBox"></asp:TextBox><uc1:SelectIPAddress ID="ipAddress" runat="server" />
|
||||
<asp:TextBox ID="txtRecordData" runat="server" Width="260px" CssClass="NormalTextBox"></asp:TextBox><uc1:SelectIPAddress ID="ipAddress" runat="server" />
|
||||
<asp:RequiredFieldValidator ID="valRequireData" runat="server" ControlToValidate="txtRecordData"
|
||||
ErrorMessage="*" ValidationGroup="DnsRecord" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
<asp:CustomValidator ID="IPValidator" runat="server" ControlToValidate="txtRecordData" ValidationGroup="DnsRecord" Display="Dynamic" CssClass="NormalBold"
|
||||
OnServerValidate="Validate" Text="Please enter a valid IP" meta:resourcekey="IPValidator"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="rowMXPriority" runat="server">
|
||||
<td class="SubHead"><asp:Label ID="lblMXPriority" runat="server" meta:resourcekey="lblMXPriority" Text="MX Priority:"></asp:Label></td>
|
||||
<td class="Normal">
|
||||
<asp:TextBox ID="txtMXPriority" runat="server" Width="30" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="valRequireMxPriority" runat="server" ControlToValidate="txtMXPriority"
|
||||
ErrorMessage="*" ValidationGroup="DnsRecord" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
<asp:RegularExpressionValidator ID="valRequireCorrectPriority" runat="server" ControlToValidate="txtMXPriority"
|
||||
ErrorMessage="*" ValidationExpression="\d{1,3}" ValidationGroup="DnsRecord" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -138,13 +138,33 @@ namespace WebsitePanel.Portal
|
|||
|
||||
private void ToggleRecordControls()
|
||||
{
|
||||
ipAddress.Visible = (ddlRecordType.SelectedValue == "A");
|
||||
//rowData.Visible = (ddlRecordType.SelectedValue != "A");
|
||||
ipAddress.Visible = (ddlRecordType.SelectedValue == "A" || ddlRecordType.SelectedValue == "AAAA");
|
||||
//rowData.Visible = (ddlRecordType.SelectedValue != "A" && ddlRecordType.SelectedValue != "AAAA");
|
||||
rowMXPriority.Visible = (ddlRecordType.SelectedValue == "MX");
|
||||
if (ddlRecordType.SelectedValue == "A") {
|
||||
lblRecordData.Text = "IP:";
|
||||
IPValidator.Enabled = true;
|
||||
} else if (ddlRecordType.SelectedValue == "AAAA") {
|
||||
lblRecordData.Text = "IP (v6):";
|
||||
IPValidator.Enabled = true;
|
||||
} else {
|
||||
lblRecordData.Text = "Record Data:";
|
||||
IPValidator.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Validate(object source, ServerValidateEventArgs args) {
|
||||
var ip = args.Value;
|
||||
System.Net.IPAddress ipaddr;
|
||||
args.IsValid = System.Net.IPAddress.TryParse(ip, out ipaddr) && (ip.Contains(":") || ip.Contains(".")) &&
|
||||
((ddlRecordType.SelectedValue == "A" && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) ||
|
||||
(ddlRecordType.SelectedValue == "AAAA" && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6));
|
||||
}
|
||||
|
||||
private void SaveRecord()
|
||||
{
|
||||
if (!Page.IsValid) return;
|
||||
|
||||
GlobalDnsRecord record = new GlobalDnsRecord();
|
||||
record.RecordId = (int)ViewState["RecordID"];
|
||||
record.RecordType = ddlRecordType.SelectedValue;
|
||||
|
|
|
@ -1,32 +1,204 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
//
|
||||
// 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 {
|
||||
|
||||
|
||||
public partial class GlobalDnsRecordsControl {
|
||||
protected System.Web.UI.WebControls.Panel pnlRecords;
|
||||
protected System.Web.UI.WebControls.Button btnAdd;
|
||||
protected System.Web.UI.WebControls.GridView gvRecords;
|
||||
protected System.Web.UI.WebControls.Panel pnlEdit;
|
||||
protected System.Web.UI.WebControls.Label lblRecordType;
|
||||
protected System.Web.UI.WebControls.DropDownList ddlRecordType;
|
||||
protected System.Web.UI.WebControls.Label lblRecordName;
|
||||
protected System.Web.UI.WebControls.TextBox txtRecordName;
|
||||
protected System.Web.UI.HtmlControls.HtmlTableRow rowData;
|
||||
protected System.Web.UI.WebControls.Label lblRecordData;
|
||||
protected System.Web.UI.WebControls.TextBox txtRecordData;
|
||||
protected WebsitePanel.Portal.SelectIPAddress ipAddress;
|
||||
protected System.Web.UI.HtmlControls.HtmlTableRow rowMXPriority;
|
||||
protected System.Web.UI.WebControls.Label lblMXPriority;
|
||||
protected System.Web.UI.WebControls.TextBox txtMXPriority;
|
||||
protected System.Web.UI.WebControls.Button btnSave;
|
||||
protected System.Web.UI.WebControls.Button btnCancel;
|
||||
|
||||
/// <summary>
|
||||
/// pnlRecords 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 pnlRecords;
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 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 btnAdd;
|
||||
|
||||
/// <summary>
|
||||
/// gvRecords 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.GridView gvRecords;
|
||||
|
||||
/// <summary>
|
||||
/// pnlEdit 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 pnlEdit;
|
||||
|
||||
/// <summary>
|
||||
/// lblRecordType 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 lblRecordType;
|
||||
|
||||
/// <summary>
|
||||
/// ddlRecordType 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.DropDownList ddlRecordType;
|
||||
|
||||
/// <summary>
|
||||
/// lblRecordName 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 lblRecordName;
|
||||
|
||||
/// <summary>
|
||||
/// txtRecordName 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 txtRecordName;
|
||||
|
||||
/// <summary>
|
||||
/// rowData control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow rowData;
|
||||
|
||||
/// <summary>
|
||||
/// lblRecordData 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 lblRecordData;
|
||||
|
||||
/// <summary>
|
||||
/// txtRecordData 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 txtRecordData;
|
||||
|
||||
/// <summary>
|
||||
/// ipAddress control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebsitePanel.Portal.SelectIPAddress ipAddress;
|
||||
|
||||
/// <summary>
|
||||
/// valRequireData 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.RequiredFieldValidator valRequireData;
|
||||
|
||||
/// <summary>
|
||||
/// IPValidator 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.CustomValidator IPValidator;
|
||||
|
||||
/// <summary>
|
||||
/// rowMXPriority control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlTableRow rowMXPriority;
|
||||
|
||||
/// <summary>
|
||||
/// lblMXPriority 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 lblMXPriority;
|
||||
|
||||
/// <summary>
|
||||
/// txtMXPriority 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 txtMXPriority;
|
||||
|
||||
/// <summary>
|
||||
/// valRequireMxPriority 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.RequiredFieldValidator valRequireMxPriority;
|
||||
|
||||
/// <summary>
|
||||
/// valRequireCorrectPriority 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.RegularExpressionValidator valRequireCorrectPriority;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 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 btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnCancel 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 btnCancel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
<asp:ValidationSummary ID="validatorsSummary" runat="server"
|
||||
ValidationGroup="EditAddress" ShowMessageBox="True" ShowSummary="False" />
|
||||
|
||||
<table cellspacing="0" cellpadding="3">
|
||||
<asp:CustomValidator ID="consistentAddresses" runat="server" ErrorMessage="You must not mix IPv4 and IPv6 addresses." ValidationGroup="EditAddress" Display="dynamic" ServerValidate="CheckIPAddresses" />
|
||||
|
||||
<table cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td style="width:150px;">
|
||||
<asp:Localize ID="locPool" runat="server" meta:resourcekey="locPool" Text="Pool:"></asp:Localize>
|
||||
|
@ -33,7 +35,7 @@
|
|||
<td><asp:Localize ID="lblExternalIP" runat="server" meta:resourcekey="lblExternalIP" Text="IP Address:"></asp:Localize></td>
|
||||
<td>
|
||||
|
||||
<wsp:EditIPAddressControl id="startIP" runat="server" ValidationGroup="EditAddress" Required="true" />
|
||||
<wsp:EditIPAddressControl id="startIP" runat="server" ValidationGroup="EditAddress" Required="true" AllowSubnet="true" />
|
||||
|
||||
<asp:Localize ID="locTo" runat="server" meta:resourcekey="locTo" Text="to"></asp:Localize>
|
||||
|
||||
|
@ -52,7 +54,7 @@
|
|||
<tr id="SubnetRow" runat="server">
|
||||
<td><asp:Localize ID="locSubnetMask" runat="server" meta:resourcekey="locSubnetMask" Text="Subnet Mask:"></asp:Localize></td>
|
||||
<td class="NormalBold">
|
||||
<wsp:EditIPAddressControl id="subnetMask" runat="server" ValidationGroup="EditAddress" Required="true" />
|
||||
<wsp:EditIPAddressControl id="subnetMask" runat="server" ValidationGroup="EditAddress" Required="true" AllowSubnet="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="GatewayRow" runat="server">
|
||||
|
|
|
@ -49,6 +49,7 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
// bind dropdowns
|
||||
try
|
||||
{
|
||||
|
@ -96,7 +97,7 @@ namespace WebsitePanel.Portal
|
|||
string comments = txtComments.Text.Trim();
|
||||
|
||||
// add ip address
|
||||
if (endIP.Text != "")
|
||||
if (endIP.Text != "" || startIP.Text.Contains("/"))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -162,5 +163,12 @@ namespace WebsitePanel.Portal
|
|||
SubnetRow.Visible = vps;
|
||||
GatewayRow.Visible = vps;
|
||||
}
|
||||
|
||||
public void CheckIPAddresses(object sender, ServerValidateEventArgs args) {
|
||||
startIP.Validate(sender, args);
|
||||
endIP.Validate(sender, args);
|
||||
subnetMask.Validate(sender, args);
|
||||
args.IsValid = startIP.IsV6 == endIP.IsV6 && (startIP.IsV6 == subnetMask.IsV6 || subnetMask.IsMask);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.1434
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
@ -31,6 +30,15 @@ namespace WebsitePanel.Portal {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ValidationSummary validatorsSummary;
|
||||
|
||||
/// <summary>
|
||||
/// consistent Addresses 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.CustomValidator consistentAddresses;
|
||||
|
||||
/// <summary>
|
||||
/// locPool control.
|
||||
/// </summary>
|
||||
|
|
|
@ -288,7 +288,7 @@
|
|||
<td>
|
||||
<wsp:EditIPAddressControl id="privateIPAddress" runat="server" Required="true" />
|
||||
/
|
||||
<asp:TextBox ID="privateSubnetMask" runat="server" MaxLength="2" Width="40px" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:TextBox ID="privateSubnetMask" runat="server" MaxLength="3" Width="40px" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="privateSubnetMaskValidator" runat="server" ControlToValidate="privateSubnetMask"
|
||||
Text="*" meta:resourcekey="privateSubnetMaskValidator" Display="Dynamic" SetFocusOnError="true" />
|
||||
</td>
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditIPAddressControl.ascx.cs" Inherits="WebsitePanel.Portal.UserControls.EditIPAddressControl" %>
|
||||
<asp:TextBox ID="txtAddress" runat="server" Width="110px" MaxLength="15" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:TextBox ID="txtAddress" runat="server" Width="260px" MaxLength="45" CssClass="NormalTextBox"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="requireAddressValidator" runat="server" meta:resourcekey="requireAddressValidator"
|
||||
ControlToValidate="txtAddress" SetFocusOnError="true" Text="*" Enabled="false" Display="Dynamic">
|
||||
</asp:RequiredFieldValidator><asp:RegularExpressionValidator id="addressValidator" runat="server"
|
||||
ValidationExpression="^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$"
|
||||
Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtAddress" Text="*" meta:resourcekey="addressValidator">
|
||||
</asp:RegularExpressionValidator>
|
||||
ControlToValidate="txtAddress" SetFocusOnError="true" Text="*" Enabled="false" Display="Dynamic" />
|
||||
<asp:CustomValidator ID="addressValidator" runat="server" ControlToValidate="txtAddress" OnServerValidate="Validate" Text="*" meta:resourcekey="addressValidator"/>
|
|
@ -34,8 +34,16 @@ using System.Web.UI.WebControls;
|
|||
|
||||
namespace WebsitePanel.Portal.UserControls
|
||||
{
|
||||
[Flags]
|
||||
public enum IPValidationMode { V4 = 1, V6 = 2, V4AndV6 = 3 };
|
||||
|
||||
public partial class EditIPAddressControl : WebsitePanelControlBase
|
||||
{
|
||||
|
||||
public IPValidationMode Validation { get; set; }
|
||||
|
||||
public EditIPAddressControl() { Validation = IPValidationMode.V4AndV6; AllowSubnet = false; }
|
||||
|
||||
public bool Required
|
||||
{
|
||||
get { return requireAddressValidator.Enabled; }
|
||||
|
@ -86,5 +94,30 @@ namespace WebsitePanel.Portal.UserControls
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
public bool AllowSubnet { get; set; }
|
||||
public bool IsV6 { get; private set; }
|
||||
public bool IsMask { get; private set; }
|
||||
|
||||
public void Validate(object source, ServerValidateEventArgs args) {
|
||||
IsMask = IsV6 = false;
|
||||
var ip = args.Value;
|
||||
int net = 0;
|
||||
if (ip.Contains("/")) {
|
||||
args.IsValid = AllowSubnet;
|
||||
var tokens = ip.Split('/');
|
||||
ip = tokens[0];
|
||||
args.IsValid &= int.TryParse(tokens[1], out net) && net <= 128;
|
||||
if (string.IsNullOrEmpty(ip)) {
|
||||
IsMask = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
System.Net.IPAddress ipaddr;
|
||||
args.IsValid &= System.Net.IPAddress.TryParse(ip, out ipaddr) && (ip.Contains(":") || ip.Contains(".")) &&
|
||||
(((Validation & IPValidationMode.V6) != 0 && (IsV6 = ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6)) ||
|
||||
((Validation & IPValidationMode.V4) != 0 && ipaddr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork));
|
||||
args.IsValid &= ipaddr.AddressFamily != System.Net.Sockets.AddressFamily.InterNetwork || net < 32;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.1434
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
@ -38,6 +37,6 @@ namespace WebsitePanel.Portal.UserControls {
|
|||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RegularExpressionValidator addressValidator;
|
||||
protected global::System.Web.UI.WebControls.CustomValidator addressValidator;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
<pages controlRenderingCompatibilityVersion="3.5">
|
||||
<controls>
|
||||
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
|
||||
</controls>
|
||||
</pages>
|
||||
<compilation targetFramework="4.0">
|
||||
</compilation>
|
||||
</system.web>
|
||||
</configuration>
|
||||
<system.web>
|
||||
<pages controlRenderingCompatibilityVersion="3.5">
|
||||
<controls>
|
||||
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
|
||||
</controls>
|
||||
</pages>
|
||||
<compilation targetFramework="4.0" debug="true"/>
|
||||
</system.web>
|
||||
</configuration>
|
|
@ -18,7 +18,7 @@
|
|||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -690,11 +690,11 @@
|
|||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>False</AutoAssignPort>
|
||||
<DevelopmentServerPort>9001</DevelopmentServerPort>
|
||||
<DevelopmentServerPort>9021</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost/WebPortal</IISUrl>
|
||||
<IISUrl>http://localhost:9021/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue