Hi,
I am using the maskededitextender server control from the Microsoft AJAX Control Tool kit in my webform (ASP .NET 2.0 Visual Studio 2005).
I have declared several instances of the <AjaxToolkit:maskededitextender> control.
There are no compile errors in the webpage. When I run the page, I get this error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
AjaxControlToolkit.MaskedEditExtender.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Control.LoadRecursive() +132
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3747
I have NO idea where to even begin to tackle this error. There is no line number in the error. It seems that the error is in the OnLoad event handler of one of the MaskedEditExtender controls - but firstly, which one? Secondly, I don't have an OnLoad event handler defined for the control. This must be code that is generated automatically or is called implicitly by .NET . Can anyone give me some direction on how to resolve this error?
Thank you in-advance for reading this post and for helping with the problem.
Saad