finding an HtmlGenericControl
<pre><code>   System.Web.UI.HtmlControls.HtmlGenericControl div = (System.Web.UI.HtmlControls.HtmlGenericControl)pnl.Controls[0].FindControl("divMessage");
</code></pre>

<p>i am trying to find <code>divMessage</code> somethign like the above but i am getting null...:</p>

<p>below is how my div resides.</p>

<pre><code> &lt;mobile:Panel ID="pnl" Runat="server"&gt;
   &lt;mobile:DeviceSpecific ID="device" runat="server"&gt;
            &lt;ContentTemplate&gt;
          &lt;div id="divMessage" runat="server"&gt;test.....&lt;/div&gt;
       &lt;/ContentTemplate&gt;
          &lt;/mobile:DeviceSpecific&gt;
 &lt;/mobile:Panel&gt;
</code></pre>
