Saving provider state?

  • Thread starter dotnet_vb_newbie
  • Start date
D

dotnet_vb_newbie

My design-time code produces "name ViewState is not defined". Am I
missing a definition or assignment in my provider code? The beginning
of the code follows:

Imports System.ComponentModel
Imports System.io
Imports System.Web.UI.WebControls
Imports System.Runtime.Serialization.Formatters.Soap
Imports System.Drawing.Design
Imports System.Text.RegularExpressions
Imports System.Runtime.Serialization
Imports System.Web.UI.StateBag
Imports System.Web
Imports System.Web.UI

<Serializable(), DesignTimeVisible(), _
ProvideProperty("RequiredField", GetType(WebControl)), _
ProvideProperty("ErrorColor", GetType(WebControl)), _
ProvideProperty("RegularExpression", GetType(WebControl))> _

Public Class TextBoxValidator

Inherits System.ComponentModel.Component
Implements IExtenderProvider
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top