Re: Howto: insert a custom image/button in the toolbar and capture the command event in C# codebehind?

  •  09-02-2004, 2:25 PM

    Re: Howto: insert a custom image/button in the toolbar and capture the command event in C# codebehind?

    Ok, now I see my Image,
     
    System.Web.UI.WebControls.ImageButton customToolbarImg1 = new System.Web.UI.WebControls.ImageButton();

    customToolbarImg1.ImageUrl = "~/Editor_Resources/Themes/Office2003/save.gif";

    customToolbarImg1.ID = "customToolbarImg1";

    customToolbarImg1.Click += new ImageClickEventHandler( customToolbarImg1_Click );

    ce1.RegisterCustomButton(customToolbarImg1);

     
    but
     
    Now when I click this image I want to call my c# method:
     
    private void customToolbarImg1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
    {
        ....
    }
     
    This is NOT working????

    Regards,
    »»» KenA
View Complete Thread