>Is there a way to add a control dynamically on a Web form? I would like to add a label control named Javascript everytime a Page_Load() event occurs. I have one right now but I have to paste it on all my Web forms. I thought there could be a way to do that in my generic Page_Load() code.
Yes there is. Controls.Add(...) or Controls.AddAt(...). ie:
Label myLabel = new Label();
myLabel.Text = "This is added at runtime:" + DateTime.Now.ToString();
Controls.Add(myLabel);
Cetin