PostBack Event problem!!

  •  03-23-2009, 12:59 PM

    PostBack Event problem!!

    Hi,
    I'm using the postback property for the button "FullPage", it's seems to work.
    my behind code is this, to understand what i'm doing.
    1. Public Sub Editor1_PostBackCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor1.PostBackCommand   
    2.         If e.CommandName.ToLower = "fullpage" And Editor1.FullPage = False Then   
    3.             Editor1.ConfigurationPath = "~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CECertoolFull.config"  
    4.             Editor1.FullPage = True   
    5.         ElseIf e.CommandName.ToLower = "fullpage" And Editor1.FullPage = True Then   
    6.             Editor1.ConfigurationPath = "~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CECertoolNormal.config"  
    7.             'Editor1.Width = New System.Web.UI.WebControls.Unit(300)   
    8.             'Editor1.Height = New System.Web.UI.WebControls.Unit(300)   
    9.             Editor1.FullPage = False   
    10.         End If   
    11.     End Sub  
     
    As you can see in the following code, I'm trying to change the toolbar when the user click on the FullPage button.
    The behavior is this:
    the first time the user click the button, everything works perfectly, from the second time and on, we have to click the button two times and finally the postback event will be captured.
    Can you help me, please?
     
    Thanks
    OaicStef
View Complete Thread