Set Position of an ASP.NET Control at Runtime

Yesterday, I got an email asking this question.

The LEFT and TOP attributes in the following code sets the left and top positions of a control. You can call this code from any where in your code.

For example, if I have a Calendar control and want to change the position of the control dynamically, this is the code I need to add.

Calendar1.Attributes.Item("style") = "Z-INDEX: 176; LEFT: 584px; POSITION: absolute; TOP: 176px"

Mindcracker
Founded in 2003, Mindcracker is the authority in custom software development and innovation. We put best practices into action. We deliver solutions based on consumer and industry analysis.