I'm using MOSS 2007 in my webpart within my CreateChildControls() method I have the code below:
protected override void CreateChildControls()
{
base.CreateChildControls();
Panel myPanel = new Panel();
myPanel.ID = "SelectionPanel";
this.Controls.Add(myPanel);
this.myGridView = new GridView();
createMyGridView(ref myGridView);
myPanel.Controls.Add(myGridView);
this._btnUpdate = new Button();
this._btnUpdate.Text = "Update";
myPanel.Controls.Add(_btnUpdate);
this._btnUpdate.Click += new EventHandler(_btnUpdate_Click);
}
My question is how do insert html so I can wrap a div around these controls, without using the RenderWebPart() method.
I am trying to acheive this because i dont want to use a panel whose id will be an autogenerated client id.
Many Thanks,