Hi there
I've successfully added some .NET validation controls to a page (using
<asp:RequiredFi eldValidator ...), however when I try to set the 'display'
property to 'dynamic', my page then throws up the following error in the
browser:
CS1061: 'System.Web.UI. WebControls.Tex tBox' does not contain a definition
for 'Web' and no extension method 'Web' accepting a first argument of type
'System.Web.UI. WebControls.Tex tBox' could be found (are you missing a using
directive or an assembly reference?)
I had the same error when I tried to get a 'CompareValidat or' to work, even
though I wasn't doing anything with the 'display' property (eventually gave
up and used a custom validator).
Code behind for the page specifies the following namespaces (I'm using C#):
using System
using System.Web;
using System.Web.UI;
using System.Web.UI.H tmlControls;
using System.Web.UI.W ebControls;
using System.Web.UI.W ebControls.WebP arts;
I'm using a master page, and the same namespaces are specified in the
code-behind for the master page
I've tried adding system.web as a reference to my project, still no luck.
Does anyone have a solution for this? Any replies gratefully received!
Thanks in advance, Chris :)
I've successfully added some .NET validation controls to a page (using
<asp:RequiredFi eldValidator ...), however when I try to set the 'display'
property to 'dynamic', my page then throws up the following error in the
browser:
CS1061: 'System.Web.UI. WebControls.Tex tBox' does not contain a definition
for 'Web' and no extension method 'Web' accepting a first argument of type
'System.Web.UI. WebControls.Tex tBox' could be found (are you missing a using
directive or an assembly reference?)
I had the same error when I tried to get a 'CompareValidat or' to work, even
though I wasn't doing anything with the 'display' property (eventually gave
up and used a custom validator).
Code behind for the page specifies the following namespaces (I'm using C#):
using System
using System.Web;
using System.Web.UI;
using System.Web.UI.H tmlControls;
using System.Web.UI.W ebControls;
using System.Web.UI.W ebControls.WebP arts;
I'm using a master page, and the same namespaces are specified in the
code-behind for the master page
I've tried adding system.web as a reference to my project, still no luck.
Does anyone have a solution for this? Any replies gratefully received!
Thanks in advance, Chris :)
Comment