How to control placement of control in code behind

Posted by teshio on Stack Overflow See other posts from Stack Overflow or by teshio
Published on 2010-04-19T09:08:36Z Indexed on 2010/04/19 9:13 UTC
Read the original article Hit count: 154

Filed under:
|

Is it possible to control the placement of a generated control in asp .net 2.0 (c#)?

So for example in my page_load I create a new Panel() and then do Form.Controls.Add(pnl). However I'm finding it renders right at the end of the form.

I would like it rendering as the first element in the form.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#