Hello -
I have 2 tables that I creat @ run time in my application and I make them appear by doing Page.Controls.Add(myTable)
This works great, but since I am adding 2 tables, I am unable to get a <BR> (line break) between them.
So, by adding them at runtime I'm unable to format the space between them like I could if I had dragged and dropped them onto the page in design view.
Is there a way to add "html" or "text" or something using Page.Controls.Add ? This would also be very useful in the future.
And, just as an affirmation of my technique - am I doing handling this properly considering that I'm creating the elements @ run time? Meaning - Is Page.Controls.Add a good way to add run-tim built controls to a page so they show up @ run time?
Thanks as always!!!
I have 2 tables that I creat @ run time in my application and I make them appear by doing Page.Controls.Add(myTable)
This works great, but since I am adding 2 tables, I am unable to get a <BR> (line break) between them.
So, by adding them at runtime I'm unable to format the space between them like I could if I had dragged and dropped them onto the page in design view.
Is there a way to add "html" or "text" or something using Page.Controls.Add ? This would also be very useful in the future.
And, just as an affirmation of my technique - am I doing handling this properly considering that I'm creating the elements @ run time? Meaning - Is Page.Controls.Add a good way to add run-tim built controls to a page so they show up @ run time?
Thanks as always!!!