FindContorl and iframe problem RRS feed

  • Question

  • Hi,

    I have an iframe

     <iframe id="idDial01" src ="Guage.aspx" runat="server">
            <p>Your browser does not support iframes.</p>

    From codebehind, I can get reference of that iframe

    HtmlControls.HtmlGenericControl c3 = (HtmlGenericControl )this.FindControl("idDial01");

    How can I cast that HtmlGenericControl back to my Guage class object? [public partial class Guage : System.Web.UI.Page]

    Let me know if you want more info from me.



    • Moved by Mike Dos Zhang Thursday, May 24, 2012 8:58 AM asp.net topic (From:Visual C# General)
    Wednesday, May 23, 2012 5:29 PM


  • Hi csharpnewbie,

    You are more likely to get more efficient responses to ASP.NET issues at http://forums.asp.net where you can contact ASP.NET experts.

    Bob Shen [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by Mr. Wharty Wednesday, May 30, 2012 2:26 AM
    • Marked as answer by Mr. Wharty Tuesday, June 5, 2012 11:11 PM
    Thursday, May 24, 2012 8:56 AM