Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Johno #1
Page is null
I'm converting a custom webcontrol from ASP.NET 1.1 to 2.0 to take advantage
of 2.0's new features, particularly using the WebResource handler to embed
Javascript includes and GIFs within the assembly instead of placing such
files in an aspnet_client sub-directory. The only problem I've found with the
conversion is that when I call :
this.Page.ClientScript.GetWebResourceUrl()
as a result of calling EnsureChildControls() in property get and set
methods, this.Page is null; I guess this is because the control hasn't been
inserted in the Page's controls collection.
Is there some way to force the control to add itself to the page so that I
can avoid this error?
I guess I could move the calls to this.Page.ClientScript.GetWebResourceUrl()
to the control's prerender method but I'd rather void this if possible.
Are there any good web resources on the differences/enhancements for
creating ASP.NET 2.0 custom web controls? I've looked at Nikhil Kothari's
blog. Any others worth checking out?
Any info/advice gratefully appreciated.
Johno Guest
-
NULL NULL Error
I have run out of things to check for and could use some help. We are on a unix box, CFMX 7, and have started to use the CFDOCUMENT tag. The tag... -
"null null" error on line -1
Hi, A different, new, ocasional error this time. Since we are using CFMX7, occasionally we get this error: " Application Exception Monitor... -
Error: ?null? is null or not an object
eloine: That is a bogus error message in that it probably refers to something you have done (or not done) on the page. So, looking in the... -
How to ensure if column A is null, column B has to be null
Thank you Delbert! -
Calling a html page from an asp page then returning to the next statement on the original asp page
Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are...



Reply With Quote

