Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
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 28th, 2013, 07:54 AM
Authorized User
 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 14 : Mapping data model to an object model

I am trying to use the information from this chapter on a different website that I am creating, and I have managed to get it working, however the All.aspx page is ignoring my master page.
Do you know why this may be?

Here is the code for my All.aspx page
Code:
 
<%@ Page Title="Articles - All" Language="VB" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="false" CodeFile="All.aspx.vb" Inherits="Articles_All" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</asp:Content>
And here is the code for my masterpage

Code:
<%@ Master Language="VB" CodeFile="Frontend.master.vb" Inherits="MasterPages_Frontend" %>

<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="no-js ie9" lang="en" itemscope itemtype="http://schema.org/Product"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 9]><!--> <html class="no-js" lang="en" itemscope itemtype="http://schema.org/Product"> <!--<![endif]-->
<!--[if IE]><link rel="stylesheet" type="text/css" href="css/iestylesheet.css" /> <![endif]-->
  
    
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">

  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/b/378 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title>Vista Panels</title>
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <meta name="author" content="humans.txt">
  
  <link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
  
  <!--Facebook Metadata /-->
  <meta property="fb:page_id" content="" />
	<meta property="og:image" content="" />
	<meta property="og:description" content=""/>
	<meta property="og:title" content=""/>
  
  <!--Google+ Metadata /-->
	<meta itemprop="name" content="">
	<meta itemprop="description" content="">
	<meta itemprop="image" content="">

  <!-- Mobile viewport optimized: j.mp/bplateviewport -->
  <meta name="viewport" content="width=device-width,initial-scale=1">

  <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->

  <!-- CSS: implied media=all -->
  <!-- CSS concatenated and minified via ant build script-->
  <!-- <link rel="stylesheet" href="css/minified.css"> -->
  <link href='http://fonts.googleapis.com/css?family=Rambla' rel='stylesheet' type='text/css'> <!--CHRIS added to use "Rambla" font from google API-->
  <!-- CSS imports non-minified for staging, minify before moving to production-->
  <link rel="stylesheet" href="css/imports.css">
  <!-- end CSS-->

  <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->

  <!-- All JavaScript at the bottom, except for Modernizr / Respond.
       Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
       For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
  <script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body class="sixteen colgrid">
    <form id="form1" runat="server">
    <div class="container">
  <div id="mainbodyBG" class="row"> <!-- Main body BG -->

      <!-- Header -->
      <section class="row">
          <div class="four columns margin10 topcontactsection">
             <%-- <div class="TopContact">
                  <span class="contactLgelogo">
                      <img src="img/PhoneIcon2.png/"></span><span>0151 608 1423</span></div>
              <div class="TopContact"><span class="contactLgelogo">
                  <img src="img/FaxIcon2.png/"></span><span>0151 608 5474</span></div>
              <div class="TopContact"><span class="contactLgelogo">
                  <img src="img/EmailIcon2.png/"></span><span>info@vista-panels.co.uk</span></div>--%>
              <div class="contactsection">
              <div class="TopContact"><img src="img/PhoneIcon.png" class="contactLgelogo logoleft"/><a href="tel://0151 608 1423">0151 608 1423</a></div>
               <div class="TopContact"> <img src="img/FaxIcon.png" class="contactLgelogo logoleft"/>0151 608 5474</div>
              <div class="TopContact"><img src="img/EmailIcon.png" class="contactLgelogo"/><a href=mailto:info@vista-panels.co.uk>info@vista-panels.co.uk</a></div>
                  </div>
          </div>

          <hr class="mobile" />

          <div class="eight columns strapline">
              Market Leaders in Composite Doors & PVCu Panels
          </div>
          <div class="four columns margin10">
              <img src="img/NewLogo2.png" />
          </div>
      </section>
      <!-- Header END -->

        <!-- Main nav menu -->
            <div class="row basicnav">  
                
                <div class="ten columns centered" >
                   <div class="navbar">
                     <ul class="active">
                        <li><a href="Default.aspx">HOME</a></li>
                        <li><a href="News.aspx">NEWS</a></li>
                        <li><a href="Panels.aspx">PANELS</a></li>
                        <li><a href="Composites.aspx">COMPOSITES</a></li>
                        <li class="noborder"><a href="OrderOnline.aspx">ORDER ONLINE</a></li>
                    </ul>
                       </div>
                </div>
                
            </div>
        <!-- Main nav menu END -->

        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>

<!--bottom nav menu -->
        <div class="row basicnav bottomnav">  
                
                <div class="six columns centered" >
                   <div class="navbar">
                     <ul class="active">
                        <li><a href="Accreditation.aspx">accreditations</a></li>
                        <li><a href="Contact.aspx">contact</a></li>
                        <li class="noborder"><a href="http://www.vistapanels.co.uk/terms_of_sale.pdf">terms of sale</a></li>
                    </ul>
                       </div>
                </div>
            </div>
        <!-- bottom nav section END -->

        <!-- bottom contact info -->

      <!--mobile bottom nav -->
      <div class="four columns margin10 topcontactsection mobile">
              <div class="contactsection">
              <div class="TopContact"><img src="img/PhoneIcon.png" class="contactLgelogo logoleft"/><a href="tel://0151 608 1423">0151 608 1423</a></div>
               <div class="TopContact"> <img src="img/FaxIcon.png" class="contactLgelogo logoleft"/>0151 608 5474</div>
              <div class="TopContact"><img src="img/EmailIcon.png" class="contactLgelogo"/><a href=mailto:info@vista-panels.co.uk>info@vista-panels.co.uk</a></div>
                  </div>
          </div>
      <!--mobile botton nav END -->


       <div class="row"> 
           <div class="contactsection nonmobile">
               <div class="two columns push_five">
               
                   <div class="contacttext"><img src="img/PhoneIcon.png" class="contactlogo2 logoleft"/>0151 608 1423</div>
               </div>
               <div class="two columns">
                  
                   <div class="contacttext"> <img src="img/FaxIcon.png" class="contactlogo2 logoleft"/>0151 608 5474</div>
               </div>
               <div class="three columns">
                   
                   <div class="contacttext email"><img src="img/EmailIcon.png" class="contactlogo2"/><a href=mailto:info@vista-panels.co.uk>info@vista-panels.co.uk</a></div>
               </div>
           </div>
       </div>
        <!-- bottom contact info END -->
      <hr class="mobile" />
      <!-- bottom address -->
      <div class="row">
          <div class="four columns push_six address">
              <p>
                  Unit H1
                  <br />
                  Prenton Way
                  <br />
                  North Cheshire Trading Estate<br />
                  Wirral<br />
                  CH43 3DU
              </p>
          </div>
      </div>
      <!-- bottom address END -->
        
 
        </div> <!-- Main body BG END -->
  </div> <!--! end of #container -->
    </form>
    <!-- JavaScript at the bottom for fast page loading -->

  <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>

  <script src="js/libs/gumby.min.js"></script>
  <script src="js/plugins.js"></script>
  <script src="js/main.js"></script>
  <!-- end scripts-->


  <!-- Prompt IE 6 users to install Chrome Frame. We suggest that you not support IE 6.
       chromium.org/developers/how-tos/chrome-frame-getting-started -->
  <!--[if lt IE 7 ]>
    <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
    <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
  <![endif]-->
  
  <!-- Social Widget Rendering Javascript /-->
  <script src="http://platform.twitter.com/widgets.js"></script>
  <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
  <script type="text/javascript">
      (function () {
          var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
          po.src = 'https://apis.google.com/js/plusone.js';
          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
      })();
  </script>
  <!-- End Social Widget Rendering Javascript /-->
</body>
</html>
Every other page is working fine, but all.aspx is showing no formatting or images etc (screenshot: https://dl.dropbox.com/u/25490275/Ch...blemScreen.JPG)

Thank you

P.S. I'm using visual studio express 2012 and am planning on using your new book, but I can't afford that one right now, and I already have the previous one
 
Old February 28th, 2013, 09:10 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What do you see when you look at the final HTML in the browser? Is the page correctly merged with the master? To me, this looks like a CSS issue more than a EF issue.

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!
 
Old February 28th, 2013, 09:32 AM
Authorized User
 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

That link in the last post was in browser. Here is the HTML for it
Code:

<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="no-js ie9" lang="en" itemscope itemtype="http://schema.org/Product"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 9]><!--> <html class="no-js" lang="en" itemscope itemtype="http://schema.org/Product"> <!--<![endif]-->
<!--[if IE]><link rel="stylesheet" type="text/css" href="css/iestylesheet.css" /> <![endif]-->
  
    
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">

  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/b/378 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title>Vista Panels</title>
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <meta name="author" content="humans.txt">
  
  <link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
  
  <!--Facebook Metadata /-->
  <meta property="fb:page_id" content="" />
	<meta property="og:image" content="" />
	<meta property="og:description" content=""/>
	<meta property="og:title" content=""/>
  
  <!--Google+ Metadata /-->
	<meta itemprop="name" content="">
	<meta itemprop="description" content="">
	<meta itemprop="image" content="">

  <!-- Mobile viewport optimized: j.mp/bplateviewport -->
  <meta name="viewport" content="width=device-width,initial-scale=1">

  <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->

  <!-- CSS: implied media=all -->
  <!-- CSS concatenated and minified via ant build script-->
  <!-- <link rel="stylesheet" href="css/minified.css"> -->
  <link href='http://fonts.googleapis.com/css?family=Rambla' rel='stylesheet' type='text/css'> <!--CHRIS added to use "Rambla" font from google API-->
  <!-- CSS imports non-minified for staging, minify before moving to production-->
  <link rel="stylesheet" href="css/imports.css">
  <!-- end CSS-->

  <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->

  <!-- All JavaScript at the bottom, except for Modernizr / Respond.
       Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
       For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
  <script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body class="sixteen colgrid">
    <form method="post" action="All.aspx" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="i2GNM9VP0Hr/nMKbKgA/RfeEXQp7y/RC9JSGQi3uURtfgRjDjuqDzs8KSjb2HiDxfA32AWSgM3Lq4YFnfreEVC0FONr0X22x3aDUsbww2qnLPtTDGivXUFURwyzYYUgOc8FJn8X98LfCP4pgnfYMQZrKKaqsTCn3XwhhArFX9/AJ3H4zAxSA9m9eBp3qO+yTvFSOilpAvd63SBRBep07WOyj1tbJbFMBrVlyZ4++7zkOWKYAQtJvriK2aYEx1N1a/yLtWKpBZn1hJF0DllHTcOaoumwq6umWLBMAkcS4qVMN3k0yGfG4T2zJ4ZZvOpHHT89E/iqGLnEJV5CT/E7umTvuCGB2m+OIfecP2W3vpWqnUffa+q4rgBSiUqwUP09E/BMTi6T9TBO5IF2PMbzaIZRDZ2+MTLvK3XdYptBpGhDsinzhQabg+RssUuF0kNopybgZD8FsXc5VQS1lStEGJ/M/XKckuHgRfEu9EHtJhkCJ6WeVnW/56Q9cabvO7lJh9GiOoy8ub2ThhCbKzZzRuXaRgCNgzozrxESqcfzF0OC45wo4N3qS86VjVreYWSaRXzKJHXZBDyJhqv4eF/8s9vslZ99DxzsiyPU42vUWtfZtwCj794IgcVSL1UZ8LT/c27R3IOwV7KHjMSoSgh4eb9gslgTmAI35OhJ0aaQn7Xrnim1z2HOz2DXTH1Cx2/D4Za6S1/5rDelBx5oHmTm+FySKsEKhKxY+z8dp/D8jzkB82eAWrZfTxIb7TgWkIZsz+Sy8AWnwCizjQhUtlywqKCp5NRxrsUWH9xKJS7+l37ABRlzJA3j3ah3XCVVcww7r4XJzq0VPyQS4BTMD8yhjdOQjgvyKdjPkvf0GYJGfHmtKAHrxkqkVckQ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jmazqcL9pTaIzjPjwBQaOYxwdyfsW7bA2hHvXX6mUOQS8DMrk7bJ5Gq22bz90Dlc/0dSK1V22J7tv5WSr77hH8GybRfGM/1AlQhltiTfuZ74OfCwpkl3UZa5kGQIMC25ZUWwFN/PczwD0aoFc7v+JiPH6Fj/hc0NZKYdCP89+n3sddCD76iJbGtENEeiF2HOlO86eKTLQvd9TRX5rpJwxiRJlVqg6PDdOdtHxcxEYU2SV4y7lTh8EGAD0dMCD98+utwDoOLDd4oSwel5Ht0OLUjjiLNMNYi6jXg4MPCfJz/YHQ4ZKsico0cksx0WvQ2svsiQlG16aW5roEdIo1wQab4or9yWofykuGJbc1YGjzksK+mpnQ22nvBE4VM4ji5jXMfKrYN0HKZ+XLroyDRIjeVRLIO7q9a02rS3l8W+Htuoajr1LgJYBLGxMYT969k4aEyMk6yFQb6H9rD2EKfJxX0pLh5WW/F9TKWV6nESbTUaK5uaQwX7ZZtEHaA+uNx3df1/p3rk8uHcA1qRrPBXRzfYL89SC3joGZyOEJBK08arvPDKd5+KlMMEGlS5O68rVYk5x2y8KNc2Gmbb4es9sKP0mi5RWYFp6eoOVYMPbKlMAXkyFoxCknkA2ea/7c6MZ5Oh52Kqj90djHMbOt0lrGGbWn3vOVOXo6rDTc3wbV5KK4Th3z+1wIIgfEquYow6aTaDvE9loJPShn677CelQQuLpIjkFBPBeM7eLLUnlZyY9+VlA6jtWY0WybUUaQsn/hgdNPfwyAynz9+2/2rh+6m5azfyn7bCE90NKMJ8ILbHG/fjsHX+ObSsZBErY7979+oP/UaPAM+aWH4P3Gu7dZ59wnCmLoKDbl0Cl3UZOl1OdmqMJHbVLZr4Eq/c+CfR/CqdfQA2vVFEp4=" />
</div>

    <div class="container">
  <div id="mainbodyBG" class="row"> <!-- Main body BG -->

      <!-- Header -->
      <section class="row">
          <div class="four columns margin10 topcontactsection">
             
              <div class="contactsection">
              <div class="TopContact"><img src="img/PhoneIcon.png" class="contactLgelogo logoleft"/><a href="tel://0151 608 1423">0151 608 1423</a></div>
               <div class="TopContact"> <img src="img/FaxIcon.png" class="contactLgelogo logoleft"/>0151 608 5474</div>
              <div class="TopContact"><img src="img/EmailIcon.png" class="contactLgelogo"/><a href=mailto:info@vista-panels.co.uk>info@vista-panels.co.uk</a></div>
                  </div>
          </div>

          <hr class="mobile" />

          <div class="eight columns strapline">
              Market Leaders in Composite Doors & PVCu Panels
          </div>
          <div class="four columns margin10">
              <img src="img/NewLogo2.png" />
          </div>
      </section>
      <!-- Header END -->

        <!-- Main nav menu -->
            <div class="row basicnav">  
                
                <div class="ten columns centered" >
                   <div class="navbar">
                     <ul class="active">
                        <li><a href="Default.aspx">HOME</a></li>
                        <li><a href="News.aspx">NEWS</a></li>
                        <li><a href="Panels.aspx">PANELS</a></li>
                        <li><a href="Composites.aspx">COMPOSITES</a></li>
                        <li class="noborder"><a href="OrderOnline.aspx">ORDER ONLINE</a></li>
                    </ul>
                       </div>
                </div>
                
            </div>
        <!-- Main nav menu END -->

        
    <div>
	<table cellspacing="0" rules="all" border="1" id="ContentPlaceHolder1_GridView1" style="border-collapse:collapse;">
		<tr>
			<th scope="col">ID</th><th scope="col">Title</th><th scope="col">ShortDesc</th><th scope="col">MainContent</th><th scope="col">DateCreated</th><th scope="col">UpdateDateTime</th>
		</tr><tr>
			<td>17</td><td>Another In Browser test</td><td>twelfth test article</td><td>bla bla bla bla blab lab labl ab </td><td>26/02/2013 15:28:03</td><td>&nbsp;</td>
		</tr><tr>
			<td>6</td><td>Test Article 6</td><td>Sixth test article</td><td>bla bla bla bla bla</td><td>26/02/2013 13:50:16</td><td>&nbsp;</td>
		</tr><tr>
			<td>5</td><td>Test Article 5</td><td>Fifth test article</td><td>bla bla bla bla bla </td><td>26/02/2013 13:47:52</td><td>&nbsp;</td>
		</tr><tr>
			<td>4</td><td>Test Article 4</td><td>Fourth test article</td><td>bla bla bla bla bla bla </td><td>26/02/2013 13:47:36</td><td>&nbsp;</td>
		</tr><tr>
			<td>3</td><td>Test Article 3 </td><td>Third test article</td><td>bla bla bla bla bla</td><td>26/02/2013 13:46:29</td><td>&nbsp;</td>
		</tr><tr>
			<td>2</td><td>Test Article 2</td><td>Second test article</td><td>bla bla bla bla</td><td>26/02/2013 13:46:15</td><td>&nbsp;</td>
		</tr><tr>
			<td>1</td><td>Test Article1</td><td>First test article</td><td>bla bla lorem ipsum</td><td>26/02/2013 13:45:56</td><td>&nbsp;</td>
		</tr><tr>
			<td>7</td><td>Test Article 7</td><td>Seventh test article</td><td>This one was created in browser</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>10</td><td>Eight test article</td><td>second one made in browser with date input hidden</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>11</td><td>Eight test article</td><td>second one made in browser with date input hidden</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>12</td><td>Eight test article</td><td>second one made in browser with date input hidden</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>13</td><td>Ninth test article</td><td>This one should hopefully have a date</td><td>fgnsfgnsfgjsnfg</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>14</td><td>tenth test article</td><td>does this one show the date?</td><td>dsrgnnsrkgnslkfgnskfng</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>15</td><td>Eleventh test article</td><td>date?</td><td>gfskgnslkfgn</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr><tr>
			<td>16</td><td>test</td><td>dtthfhjj</td><td>dghdfgdf</td><td>&nbsp;</td><td>&nbsp;</td>
		</tr>
	</table>
</div>


<!--bottom nav menu -->
        <div class="row basicnav bottomnav">  
                
                <div class="six columns centered" >
                   <div class="navbar">
                     <ul class="active">
                        <li><a href="Accreditation.aspx">accreditations</a></li>
                        <li><a href="Contact.aspx">contact</a></li>
                        <li class="noborder"><a href="http://www.vistapanels.co.uk/terms_of_sale.pdf">terms of sale</a></li>
                    </ul>
                       </div>
                </div>
            </div>
        <!-- bottom nav section END -->

        <!-- bottom contact info -->

      <!--mobile bottom nav -->
      <div class="four columns margin10 topcontactsection mobile">
              <div class="contactsection">
              <div class="TopContact"><img src="img/PhoneIcon.png" class="contactLgelogo logoleft"/><a href="tel://0151 608 1423">0151 608 1423</a></div>
               <div class="TopContact"> <img src="img/FaxIcon.png" class="contactLgelogo logoleft"/>0151 608 5474</div>
              <div class="TopContact"><img src="img/EmailIcon.png" class="contactLgelogo"/><a href=mailto:info@vista-panels.co.uk>info@vista-panels.co.uk</a></div>
                  </div>
          </div>
      <!--mobile botton nav END -->


       <div class="row"> 
           <div class="contactsection nonmobile">
               <div class="two columns push_five">
               
                   <div class="contacttext"><img src="img/PhoneIcon.png" class="contactlogo2 logoleft"/>0151 608 1423</div>
               </div>
               <div class="two columns">
                  
                   <div class="contacttext"> <img src="img/FaxIcon.png" class="contactlogo2 logoleft"/>0151 608 5474</div>
               </div>
               <div class="three columns">
                   
                   <div class="contacttext email"><img src="img/EmailIcon.png" class="contactlogo2"/><a href=mailto:info@vista-panels.co.uk>info@vista-panels.co.uk</a></div>
               </div>
           </div>
       </div>
        <!-- bottom contact info END -->
      <hr class="mobile" />
      <!-- bottom address -->
      <div class="row">
          <div class="four columns push_six address">
              <p>
                  Unit H1
                  <br />
                  Prenton Way
                  <br />
                  North Cheshire Trading Estate<br />
                  Wirral<br />
                  CH43 3DU
              </p>
          </div>
      </div>
      <!-- bottom address END -->
        
 
        </div> <!-- Main body BG END -->
  </div> <!--! end of #container -->
    </form>
    <!-- JavaScript at the bottom for fast page loading -->

  <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>

  <script src="js/libs/gumby.min.js"></script>
  <script src="js/plugins.js"></script>
  <script src="js/main.js"></script>
  <!-- end scripts-->


  <!-- Prompt IE 6 users to install Chrome Frame. We suggest that you not support IE 6.
       chromium.org/developers/how-tos/chrome-frame-getting-started -->
  <!--[if lt IE 7 ]>
    <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
    <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
  <![endif]-->
  
  <!-- Social Widget Rendering Javascript /-->
  <script src="http://platform.twitter.com/widgets.js"></script>
  <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
  <script type="text/javascript">
      (function () {
          var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
          po.src = 'https://apis.google.com/js/plusone.js';
          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
      })();
  </script>
  <!-- End Social Widget Rendering Javascript /-->
</body>
</html>
This part
Code:
<link rel="stylesheet" href="css/imports.css">
should link to a file that links to four different style sheets, but when I clicked it within the source to view the files source code, it was the source code for a 404 error page, so for some reason the all.aspx page is breaking this link, yet every other page looks fine using the same master page
 
Old February 28th, 2013, 04:16 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Maybe All.aspx is in a sub folder whereas your other files are at the root?

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!
 
Old February 28th, 2013, 04:42 PM
Authorized User
 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

no, all.aspx is in the root.
Perhaps I might not even need to do this.
What do you suggest I do? I need to have an updatable news page.
Relatively simple, basically a blog page that will have multiple story snippets, that you can then click on "read more" and it will take you to the story page like this. http://109.228.29.164/fullsite/%28S%...x?category=all
The client needs to be able to add the news items.
Do you suggest a small CMS or is that overkill for one page?

Sorry about all of the questions, I'm just really in a bind
 
Old March 2nd, 2013, 07:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What's the address for All.aspx in the browser? Does the site have a CSS folder in the root? And did you set the Virtual Path to /?

Hard to say whether you need a CMS or not. They are designed for the task you're describing, but if this is all you need, it may be a bit overkill.

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!
 
Old March 5th, 2013, 05:35 AM
Authorized User
 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

I just Double checked and the all.aspx was not in the root folder. Sorry about that. I was following the steps in chapter 14 p482 step 8.

Now the customer has said that I can update the page from here if they simply send me what they want to update, so this takes some of the pressure off, but I would still like to keep it database based so that I can still have everything stored neatly and allow them to have a CMS is the future.

What do you suggest is the best method for this?

I'm sorry for all of the questions, you are the best at this
 
Old March 5th, 2013, 09:34 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> What do you suggest is the best method for this?

I really can't say anything about that without knowing more. There are so many variables to take into account (budget, hosting, type of data, frequency of change, skills of developers, security and a lot more) that I don't know anything about. If you're able to describe those, I may be able to recommend something. Otherwise, getting a local consultant on your project to help you with these type of decisions would be my recommendation.

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!
 
Old March 5th, 2013, 09:52 AM
Authorized User
 
Join Date: May 2012
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

Oh Ok,
I see what you mean.
I am the development team at the moment and I am not very experienced.

I'll leave it for now and simply add the pages as standard HTML, that way if they require a CMS in the future, I can simply add the pages to the database and use that as a starting point.

Thank you for helping me again ^_^





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14: Entity Model Code WILL NOT WORK! pittfurg BOOK: Beginning ASP.NET 4 : in C# and VB 6 February 28th, 2013 07:48 AM
Chapter 14 - ADO.NET Entity Data Model Sean1980 BOOK: Beginning ASP.NET 4 : in C# and VB 3 July 15th, 2011 12:24 PM
SharePoint Object Model SPMAN SharePoint Development 0 May 11th, 2011 01:10 PM
Excel Object Model Yagilh Excel VBA 5 February 22nd, 2005 04:38 PM





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