Reference CuteEditor in a DetailsView

Last post 05-29-2008, 1:49 PM by ddavison. 1 replies.
Sort Posts: Previous Next
  •  05-29-2008, 6:38 AM 40883

    Reference CuteEditor in a DetailsView

    I have the Editor inside a DetailsView.
    How do I reference this?
     
    My DetailView is called DetailsView
    My Editor is called txtContent
     
    I am using:
    Dim myEDITOR As CuteEditor.Editor = DetailsView1.FindControl("txtContent")
    myEDITOR.Setting("security:ImageGalleryPath") = "~/COMPANY_FILES/" & appGlobal.company_id_pk & "/"

    But this gives me a Object Not Found error.

    This should work!
    Help!
     
  •  05-29-2008, 1:49 PM 40909 in reply to 40883

    Re: Reference CuteEditor in a DetailsView

    Try putting your code into the DataBound event for your control.  When I've had problems finding controls in the past, it was because they weren't created at the time I made my call.


    -Doug
     
View as RSS news feed in XML