diff --git a/Blazor.WebForm.Components.1.1.8.5.nupkg b/Blazor.WebForm.Components.1.1.8.5.nupkg deleted file mode 100644 index a594291..0000000 Binary files a/Blazor.WebForm.Components.1.1.8.5.nupkg and /dev/null differ diff --git a/Blazor.WebForm.Components.1.1.8.6.nupkg b/Blazor.WebForm.Components.1.1.8.6.nupkg new file mode 100644 index 0000000..996273d Binary files /dev/null and b/Blazor.WebForm.Components.1.1.8.6.nupkg differ diff --git a/Blazor.WebForm.Components/Base/BaseCompareValidatorControlComponent.cs b/Blazor.WebForm.Components/Base/BaseCompareValidatorControlComponent.cs new file mode 100644 index 0000000..43bc650 --- /dev/null +++ b/Blazor.WebForm.Components/Base/BaseCompareValidatorControlComponent.cs @@ -0,0 +1,41 @@ +using Microsoft.AspNetCore.Components; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace Blazor.WebForm.UI.ControlComponents +{ + public abstract class BaseCompareValidatorControlComponent : BaseValidatorControlComponent + where TControl : BaseCompareValidator, new() + { + [Parameter] + public ValidationDataType Type + { + get + { + return this.Control.Type; + } + set + { + this.Control.Type = value; + } + } + + [Parameter] + public bool CultureInvariantValues + { + get + { + return this.Control.CultureInvariantValues; + } + set + { + this.Control.CultureInvariantValues = value; + } + } + } +} diff --git a/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj b/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj index 8c9d903..f11c2cd 100644 --- a/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj +++ b/Blazor.WebForm.Components/Blazor.WebForm.Components.csproj @@ -4,7 +4,7 @@ net5.0 true Blazor.WebForm.Components.pfx - 1.1.8.5 + 1.1.8.6 asp Jurio li Blazor.WebForm.Components @@ -17,7 +17,7 @@ - + diff --git a/Blazor.WebForm.Components/CompareValidator.razor b/Blazor.WebForm.Components/CompareValidator.razor index 7112cfc..f7a4523 100644 --- a/Blazor.WebForm.Components/CompareValidator.razor +++ b/Blazor.WebForm.Components/CompareValidator.razor @@ -2,7 +2,7 @@ @using Blazor.WebForm.UI.ControlComponents @using System.Web.UI @using System.Web.UI.WebControls -@inherits BaseValidatorControlComponent +@inherits BaseCompareValidatorControlComponent @this.RenderWithInner(this.Control) @code { [Parameter] diff --git a/Blazor.WebForm.Components/RangeValidator.razor b/Blazor.WebForm.Components/RangeValidator.razor index 28e7122..251eb46 100644 --- a/Blazor.WebForm.Components/RangeValidator.razor +++ b/Blazor.WebForm.Components/RangeValidator.razor @@ -2,7 +2,7 @@ @using Blazor.WebForm.UI.ControlComponents @using System.Web.UI @using System.Web.UI.WebControls -@inherits BaseValidatorControlComponent +@inherits BaseCompareValidatorControlComponent @this.RenderWithInner(this.Control) @code { [Parameter]