NullReference when customizing Links ddl

  •  01-25-2006, 2:23 PM

    NullReference when customizing Links ddl

    The following line gives me a nullreference error :

    dropdown = DirectCast(Editor1.ToolControls("Links").Control, CuteEditor.RichDropDownList)
     
    I am using the code given in the example of how to progrommatically set the links in the ddl. What I don't understand is, I get no error at runtime on these lines:
     
       Editor1.Text = ...
        Editor1.WysiwygModeCss = ...
     
    I have tried this code in several subroutines such as Page_load, Panel_preRender, etc and always get the same results. What am I missing here?
     
View Complete Thread