473,761 Members | 3,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ValidateInput - Compilation Error

When I open a certain page, I receive a "Compilatio n Error" as
follows:

Compiler Error Message: CS0117: 'System.Web.UI. HtmlControls.Ht mlForm'
does not
contain a definition for 'ValidateInput'
Source Error:
Line 712: this.EnableView StateMac = true;
Line 713: this.SmartNavig ation = true;
Line 714: this.Request.Va lidateInput();
Line 715: }
Line 716:
Source File: c:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary
ASP.NET
Files\twrgrp_ap ps_inspectionsv 2\0eeca9c5\cb7e 36a7\5uspnrgt.0 .cs
Line: 714

This file is autogenerated by ASP.NET - I have no control over it. I
looked up "ValidateInput( )" - the documentation says it is only in
version 1.1 of the framework. My application was originally desinged
in 1.0 of the framework - maybe that has something to do with it?
Visual Studio converted it to 1.1 for me when I upgraded. Also, the
web form has a couple embedded user controls - if that affects
anything.

Just looking at this code - it's clearly asking for
REQUEST.Validat eInput() - why does it complain that there is no
HTMLFORM.Valida teInput()? Does anybody have any idea what's going on
here??
Nov 18 '05 #1
2 2062
Hi Patrick,

That sounds weird. I've looked at this feature extensively[1] and by your
posted code it looks like the parser-generated class is just plain wrong. It
would really help if you could post a very little sample to repro the issue.

[1] http://weblogs.asp.net/vga/archive/2003/05/02/6329.aspx

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

Patrick Huffer" <pa***********@ hotmail.com> wrote in message
news:c9******** *************** ***@posting.goo gle.com...
When I open a certain page, I receive a "Compilatio n Error" as
follows:

Compiler Error Message: CS0117: 'System.Web.UI. HtmlControls.Ht mlForm'
does not
contain a definition for 'ValidateInput'
Source Error:
Line 712: this.EnableView StateMac = true;
Line 713: this.SmartNavig ation = true;
Line 714: this.Request.Va lidateInput();
Line 715: }
Line 716:
Source File: c:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\Te mporary
ASP.NET
Files\twrgrp_ap ps_inspectionsv 2\0eeca9c5\cb7e 36a7\5uspnrgt.0 .cs
Line: 714

This file is autogenerated by ASP.NET - I have no control over it. I
looked up "ValidateInput( )" - the documentation says it is only in
version 1.1 of the framework. My application was originally desinged
in 1.0 of the framework - maybe that has something to do with it?
Visual Studio converted it to 1.1 for me when I upgraded. Also, the
web form has a couple embedded user controls - if that affects
anything.

Just looking at this code - it's clearly asking for
REQUEST.Validat eInput() - why does it complain that there is no
HTMLFORM.Valida teInput()? Does anybody have any idea what's going on
here??

Nov 18 '05 #2
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> wrote in message news:<ea******* *******@TK2MSFT NGP10.phx.gbl>. ..
Hi Patrick,

That sounds weird. I've looked at this feature extensively[1] and by your
posted code it looks like the parser-generated class is just plain wrong. It
would really help if you could post a very little sample to repro the issue.


Hi Victor -

Thanks for your reply. I found the cause of the problem - the
reference to "HtmlForm" made me think of the web page's <form> tag -
and it turns out that somehow that tag was given the id "Request". I
don't name my <form>'s - I always suspected that Visual Studio
generates a name for you based on the name of your file - but in this
case the file was called "Results.as px", so I don't know how it
happened. Anyway I removed the "id=Request " from the <form> tag (and I
also removed "method=pos t"), and the problem went away. It seems that
somehow the HtmlForm (which is what your <form> tag becomes, right?)
was interpreted as a Request object because it was named "Request"?
Very interesting!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2160
by: konf | last post by:
Hallo, I tried to compile PGSQL 7.4 and I got error (durring make): ar: command not found What is it? Whe I can found it? I have: $ uname -a SunOS ... 5.8 Generic_108528-03 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
10
2359
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and begun to use GNU Autotools. I'm sorry to say I'm new to gcc as well :( Now I get the most ridiculous compile error which I'm unable to solve. Can someone, please, help me with this? gcc output together with the files mentioned in the gcc error...
6
2224
by: Joachim | last post by:
I made some project changes (which seems it doesn't help if I undo) which have created compilation error: " Server Error in '/PCSWebApp1' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details
0
1475
by: James Zhuo | last post by:
hi all I changed the name of the class LoginPage to a different name "LoginPageOne" But the same error gets generated with the Wiliam.Request.LoginPageOne. That pretty much leaves me clueless at this point. Please help Cheer
3
3351
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\1f575646\ad3a161b\assembly\dl2\57ca505e\044565c0_f84fc401\Test1.DLL' The problem is that the control is defined in two different assemblies
6
2904
by: Plat | last post by:
I've Googled this for a while, to no avail. Hopefully someone can help me. Maybe I'm using the wrong terminology. Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax error. For example, broken.aspx might only contain the following line of code: <% Dim x as %> When I visit this page from my Web browser, I see all the helpful ASP.NET Server Error information, including:
3
8710
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of possible elements expected: 'assemblies, buildProviders, codeSubDirectories, expressionBuilders'. Here's what the web config looks like. The error doesn't cause any issues and according to the MSDN documentation this is valid. So why is VS2005
0
1752
by: Stimp | last post by:
I've created an aspx page called HistoryManage.aspx. The page works fine on my local machine but when I load it off the web I get the following strange error... Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
1
2812
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I incorporate the same logic within my simulation, the class that implements the functor logic has problems compiling. I get the following errors: -- Building myTest.cpp --
0
9377
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.