Wrox Programmer Forums
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 1st, 2012, 04:35 AM
Authorized User
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default Open Browser

Hi Imar,

I've made my own website and everything seems to be fine except one little issue that I don't understand.

When I open the browser, sometimes all the contents (images, text, ect) appear all together and in other times this is not the case; in other words, the text may appear first and the images would follow after a second.

I would appreciate your advice. the following is the code in the master page:
<%@ Master Language="VB" CodeFile="Elegant.master.vb" Inherits="MasterPages_Elegant" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <asp:ContentPlaceHolder id="head" runat="server"></asp:ContentPlaceHolder>   
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <asp:ScriptReference Path="~/Scripts/jquery-1.4.1.min.js"/>
    <div id="PageWrapper">
        <div id="Header"><a href="~/" runat="server"></a></div> 
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Mobile.jpg"
        style= "border-bottom: medium solid #800080; width: 9cm; height: 2cm; float: right; position: relative;
        top: 0px; left: 0px;"/>    
      <asp:ContentPlaceHolder ID="cpMainContent" runat="server"> 
      <div id="MainContent">
          <p>Thank you for visiting this website.</p>
          <p><strong>Whatever> Introduction.</p>
          <br />
          <p class="End" style="text-align: center; color: #FFFF00;"> Just relax, and we'll do the job.</p>
          <br />
          <br />
          <hr style="border-bottom-style: solid; border-bottom-width: medium; border-bottom-color: #800000;"/>
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

    <div id="Footer"><a href="~/" runat="server"></a></div>
    <div id ="Footer2">@Copyright Elegance Accounting 2012</div>
Old February 1st, 2012, 08:00 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

I think this is by design and depends on your network and server speed. The browser downloads the HTML and while it renders the layout and follows and downloads the images, which may, or may not take longer than the rendering process.


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Khalil (February 1st, 2012)

Similar Threads
Thread Thread Starter Forum Replies Last Post
open new browser window rocksbhavesh ASP.NET 1.0 and 1.1 Basics 2 July 19th, 2007 07:34 AM
browser wouldn't open b00k12 Visual Basic 2005 Basics 0 July 11th, 2007 12:57 AM
Open new browser window amatytfc ASP.NET 2.0 Basics 2 February 22nd, 2007 06:03 AM
How to open window browser in ASP? Andraw Classic ASP Basics 6 March 31st, 2005 07:31 PM
PHP File Doesn't Open in Browser kara333 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 November 29th, 2004 11:40 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.