G
Guest
I'm experimenting with a provider to extend WebControl TextBox
validation. Everything shows up ok in the designer. However, if you
close and reopen the aspx file, the values don't seem to persist. Any
ideas what could cause this? Here's a snippet of the definition code.
I can provide more code if it would help...
<Serializable(), _
ProvideProperty("RequiredField", GetType(WebControl)), _
ProvideProperty("ErrorColor", GetType(WebControl)), _
ProvideProperty("RegularExpression", GetType(WebControl))> _
Public Class TextBoxValidator
Inherits System.ComponentModel.Component
Implements IExtenderProvider
#Region " Component Designer generated code "
Public Sub New(ByVal Container As
System.ComponentModel.IContainer)
MyClass.New()
'Required for Windows.Forms Class Composition Designer support
Container.Add(Me)
End Sub
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
validation. Everything shows up ok in the designer. However, if you
close and reopen the aspx file, the values don't seem to persist. Any
ideas what could cause this? Here's a snippet of the definition code.
I can provide more code if it would help...
<Serializable(), _
ProvideProperty("RequiredField", GetType(WebControl)), _
ProvideProperty("ErrorColor", GetType(WebControl)), _
ProvideProperty("RegularExpression", GetType(WebControl))> _
Public Class TextBoxValidator
Inherits System.ComponentModel.Component
Implements IExtenderProvider
#Region " Component Designer generated code "
Public Sub New(ByVal Container As
System.ComponentModel.IContainer)
MyClass.New()
'Required for Windows.Forms Class Composition Designer support
Container.Add(Me)
End Sub
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub