Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: RenderControl throws an error
Re: RenderControl throws an error
11-23-2005, 11:43 AM
webreality
Joined on 11-24-2004
Posts 6
Re: RenderControl throws an error
Reply
Quote
ingig,
Did you ever get a solution to this? I am doing something similar, where I want to hide one Editor and show another using a callback, but in order to do that I need to render the control to an htmlwriter, but get the same error:
exception.ToString() "System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at CuteEditor.a.a(ContextMenuEnable A_0, String A_1)
at CuteEditor.a.e(HtmlTextWriter A_0)
at CuteEditor.a.j(HtmlTextWriter A_0)
at CuteEditor.a.i(HtmlTextWriter A_0)
at CuteEditor.a.k(HtmlTextWriter A_0)
at CuteEditor.Editor.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
.........
Any help anyone could give me would be great.
Cheers,
Tom.
UPDATE: I just found a solution to this problem - the Editor needs to be added to the controls collection of the parent control again (whether it be a UserControl, Page, or in my case a PlaceHolder), even though the actual control itself wasn't null on the Callback. I imagine that one of the internal controls is being nullified at some point, and it would be obvious if all of the runtime code wasn't obfuscated. Hey ho. Hope this helps some people. Great control - best of breed as far as I can tell. Cheers CuteSoft (you should get together with ComponentArt - you could make some awesome controls!!!)
View Complete Thread