protected override void CreateChildControls() { v = new RsFileViewer(); v.ID = UWeb.GetUniqueName(this, "v"); Controls.Add(v); be = new RsImageButton(); be.ID = UWeb.GetUniqueName(this, "be"); be.CommandName = be.ToolTip = "Edit"; be.ImageUrl = UWeb.ResUrl(this, "be.ico"); be.Click += new ImageClickEventHandler(be_Click); Controls.Add(be); bd = new RsImageButton(); bd.ID = UWeb.GetUniqueName(this, "bd"); bd.CommandName = bd.ToolTip = "Delete"; bd.ImageUrl = UWeb.ResUrl(this, "bd.ico"); bd.Click += new ImageClickEventHandler(bd_Click); bd.Attributes.Add("onclick", "return confirm('Are you sure you want to delete?');"); Controls.Add(bd); bs = new RsImageButton(); bs.ID = UWeb.GetUniqueName(this, "bs"); bs.CommandName = bs.ToolTip = "Save"; bs.ImageUrl = UWeb.ResUrl(this, "bs.ico"); bs.Click += new ImageClickEventHandler(bs_Click); bs.Visible = false; Controls.Add(bs); bc = new RsImageButton(); bc.ID = UWeb.GetUniqueName(this, "bc"); bc.CommandName = bc.ToolTip = "Cancel"; bc.ImageUrl = UWeb.ResUrl(this, "bc.ico"); bc.Click += new ImageClickEventHandler(bc_Click); bc.Visible = false; Controls.Add(bc); fu = new FileUpload(); fu.Width = new Unit(200, UnitType.Pixel); fu.ID = UWeb.GetUniqueName(this, "fu"); fu.Visible = false; Controls.Add(fu); }