Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 1st, 2012, 04:35 AM
Authorized User
Points: 393, Level: 6
Points: 393, Level: 6 Points: 393, Level: 6 Points: 393, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 68
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:
Code:
<%@ 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">
   <title></title>
   <asp:ContentPlaceHolder id="head" runat="server"></asp:ContentPlaceHolder>   
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <scripts>
    <asp:ScriptReference Path="~/Scripts/jquery-1.4.1.min.js"/>
    </scripts>   
    </asp:ScriptManager>  
    <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"> 
      </asp:ContentPlaceHolder>       
      <div id="MainContent">
          <h1>Welcome</h1>
          <p>Thank you for visiting this website.</p>
          <p><strong>Whatever> Introduction.</p>
                    <p>Whatever2.</p>
          <p>Whatever3.</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;"/>
          </div>
      
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
    </asp:ContentPlaceHolder>
    </div>

    <div id="Footer"><a href="~/" runat="server"></a></div>
    <div id ="Footer2">@Copyright Elegance Accounting 2012</div>
    </form>
  </body>
</html>
Thanks
Reply With Quote
  #2 (permalink)  
Old February 1st, 2012, 08:00 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
Khalil (February 1st, 2012)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.