UserControl with CuteEditor

  •  03-03-2008, 10:16 AM

    UserControl with CuteEditor

    Hi,
     
    I am doing a user control that has a CuteEditor control in it... I've implemented my control with all the properties, methods and events I think are more interesant for use and configure my UserControl and the CuteEditor.
     
    I only have one "little" problem... when I want to catch the Save button event, I have to set the "AutoConfigure" and "DisableItemList" properties of CuteEditor inside a "If Not Page.IsPostBack..."
     
    In one of the pages I use my UserControl, I need to catch this event so I have to do this. But in another one page, my control is in a FormView and I set the property AutoConfigure in the .aspx...
     
    If I set the properties inside the IF in the second page the AutoConfigure property that I set has no effect entering in the EditMode of the FormView because a PostBack is produced.
    If I set the properties in the PageLoad outside the IF, the firts page don't launch the PostbackCommand event
     
    Sorry for my English, I know it's no very good but I wish you can understand me.
     
    Thank you for your time!
     
View Complete Thread