Home > DeveloperSection > Forums > How to fit Ifrme in mobile browser?
anil babu
anil babu

Total Post:19

Points:133
Posted on    October-28-2013 4:42 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1393  View(s)
Rate this:
I want to open that page in mobile browser that Iframe will fit that mobile browser
How can i do this one?

protected void Page_Load(object sender, EventArgs e)
        {
               String URL = http://www.aspforums.net/;
                 
 
              if (!String.IsNullOrEmpty(URL))
                    {
                        
                        I1.Attributes["src"] = URL;
                    }
}
<body >
    <form id="form1" runat="server">
    <div class="auto-height">
            <iframe id="I1" runat="server" name="I1" class="auto-height" frameborder="0">your browser does not support IFRAMEs</iframe>
    </div>   
    </form>
</body>


Chris Anderson
Chris Anderson

Total Post:65

Points:455
Posted on    October-31-2013 1:25 AM

Hi,

Can you describe your "auto-height" class here.
You can use responsive layout to fit your screen to any browser whether it is mobile, tablet or desktop.

Thanks.

Don't want to miss updates? Please click the below button!

Follow MindStick