multiple editors - cannot change properties dynamically (FindControl method doesn't work)

  •  09-01-2005, 1:04 PM

    multiple editors - cannot change properties dynamically (FindControl method doesn't work)

    Hello,
    since I decided to use more than one editor within the same page, I haven't been able to set up any properties dynamically...
    I have a datalist "dl_editors", and a dynamic number of editors ("intCount") on the page
    Setting any property in Page_Load would not do anything (the code runs with no error but nothing is displayed in the editor):

    Dim myCont1 As CuteEditor.Editor
    For i=0 to intCount
        myCont1 = FindControl("dl_editors:_ctl" & i & ":CMS_Editor") 
        If Not myCont1 Is Nothing Then 
            'the code definitely gets here, but nothing happens
            myCont1.Text = "Hello" & i 
        End If 
        myCont1 = Nothing
    Next
    Any help would be really appreciated!!!!
    pistik
View Complete Thread