Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 1st, 2012, 04:35 AM
Authorized User
Points: 400, Level: 6
Points: 400, Level: 6 Points: 400, Level: 6 Points: 400, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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>
Reply With Quote
  #2 (permalink)  
Old February 1st, 2012, 08:00 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
Khalil (February 1st, 2012)

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 06:04 PM.

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