RangeValidaor throwing exception

  • Thread starter Thread starter Anup
  • Start date Start date
A

Anup

Hi Group,

In my application I am using "Range Validator", validator is set for a
textbox with range 1900 - 9999.
and I am also using "Validation Summary" problem is when I run the
application i get a run-time exception

Compiler Error Message: CS0234: The type or namespace name 'Global'
does not exist in the class or namespace
'System.Web.UI.WebControls.RangeValidator' (are you missing an assembly
reference?)


Source Error:

Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : RangeValidator.Global {
Line 29:
Line 30: private static bool __initialized = false;

I am using ASP1.x

what could be the problem and whats the solution?

Regards,
Anup
 
Hi,

can you post some code?
especially the aspx page, problems like this at runtime usually occur due
you fail to include the correct namespace in the page declaration
like this:
<% @Import Namespace="System.Collections" %>
 
Hi,
Thank you for ur valuable post, you are right this is problem related
to namespsces, I got the solution, actually I named my program
"RangeValidator" thus there was a conflict in namespaces.
It wa sreally a silly mistake :)

Thanks and Regards,
Anup
 
Back
Top