hey gang, I created a custom server control. The control works perfectly when added into a project. The issue I have though, is that in the designer - it shows the error --> "Error creating control - MyControl1 Object Reference not set to an instance of an object"
The error is because I am using this code to load startup scripts
if i comment it out then the designer does not throw the object reference error so I know this is where the problem is. So here is my question: How can I get the designer to ignore the HttpContext.Cur rent.Handler object for rendering puroposes?
The error is because I am using this code to load startup scripts
Code:
Dim pg As Page = HttpContext.Current.Handler
Comment