title: Getting value of properties of dynamicly created controls in asp.net
body: <p>How I can determinate width of some asp.net control, that was created dynamicly?
  For example I have such code:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&gt;
  &lt;encosia:HighslideManager ID="HighslideManager1" runat="server" FadeInOut="true"
      OutlineType="RoundedWhite" ControlBar="false" /&gt;
  &lt;table style="width: 100%; padding-left: 15px; padding-right: 15px;"&gt;
      &lt;tr&gt;
          &lt;td valign="top" style="width: 50%; border-right: dotted 2px White;"&gt;
              &lt;asp:literal id="litText" runat="server" mode="PassThrough"&gt;&lt;/asp:literal&gt;
          &lt;/td&gt;
          &lt;td valign="top" style="width: 50%"&gt;
              &lt;table style="width: 100%;" cellspacing="10"&gt;
                  &lt;tr&gt;
                      &lt;td valign="top" style="width: 50%;" id="imageTD" runat="server"  oninit="imageTD_OnInit"&gt;
                          &lt;asp:literal id="litEmptyText" runat="server" mode="PassThrough"&gt;&lt;/asp:literal&gt;
                          &lt;asp:repeater id="Repeater1" runat="server"&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;center&gt;
                                      &lt;encosia:HighslideImage ID="HighslideImage1" runat="server" Width="200px"
                                              ImageUrl='&lt;%# Eval("ImageURL", "images/images/{0}") %&gt;'
                                              FullImageURL='&lt;%# Eval("ImageURL", "images/images/{0}") %&gt;'
                                              AlternateText='Image &lt;%# Container.ItemIndex%&gt;'/&gt;
  
  
                                      &lt;asp:Label ID="imageDescriptionLabel" 
                                           runat="server" CssClass="longtext"
                                        Text= '&lt;%# CutImageDescText(String.Format("{0}",Eval("Description")),imageTD.Width) %&gt;' /&gt;
                                  &lt;/center&gt;
                              &lt;/ItemTemplate&gt;
                              &lt;SeparatorTemplate&gt;
                                  &lt;%# ((Container.ItemIndex % 2) == 1) ? "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=\"top\" style=\"width:50%;\"&gt;" : "&lt;/td&gt;&lt;td valign=\"top\" style=\"width:50%;\"&gt;"%&gt;
                              &lt;/SeparatorTemplate&gt;    
                          &lt;/asp:repeater&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p>I need to calculate width of imageTD. 
  I've trying to calculate its width in pages events, but this property also like other styles property is empty. (((
  Please help me! 
  Thanks!</p>