adel: Ok, let me summrize this again. I ALREADY have a custom button added, when teh button is clicked, a post back command is triggeered to the server and some code gets executed. This all WORKS fine. ALL I need help with is , when that code gets done, how can I open the print dialogue button?without clicking any other buttons or anyhting? hi adel, Try <%@ Page Language="C#" %> <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <script runat="server"> protected override void OnLoad(EventArgs e) { CuteEditor.ToolControl tc = Editor1.ToolControls["insertcustombutonhere"]; if (tc != null) { System.Web.UI.WebControls.Image Image1 = new System.Web.UI.WebControls.Image(); Image1.ToolTip = "Print"; Image1.Attributes["onclick"] = "test();CuteEditor_GetEditor(this).ExecCommand('Print')"; tc.Control.Controls.Add(Image1); base.OnLoad(e); } base.OnLoad(e); } protected void button1_Click(object sender, EventArgs e) { label1.Text = "server side click"; } </script> <body> <form id="form1" runat="server"> <CE:Editor ID="Editor1" runat="server" TemplateItemList="insertcustombutonhere"> </CE:Editor> <asp:Label ID="label1" runat="server"></asp:Label> <asp:Button ID="button1" runat="server" Style="visibility: hidden" OnClick="button1_Click" /> </form> </body> </html> <script> function test() { var button1=document.getElementById('<%= button1.ClientID %>'); button1.click(); } </script> Regards, ken