 |
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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
|
|
|
|
|

January 27th, 2016, 01:30 AM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 19: Using Bundling and Modification
Step 11 states as follows:
"Request the URL set in the href attribute in your browser directly. Your browser's address bar should look similar to this (all on one line):
http://localhost:8631/StyleSheets?v=pEehz...
The CSS code you see should look similar to this:
h1{text-decoration:underline}h1{color:green}
I found no such statements in the HTML source code below. Yet, the heading is underlined and green. Why so?
Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Welcome to Planet Wrox
</title>
<script src="/Scripts/modernizr-2.7.1.js"></script>
<link href="/StyleSheets?v=pEehzO8qi6qpAx9iydIGYPTpID2z0pdm3I0s0GMzTv41" rel="stylesheet"/>
<link href="App_Themes/Monochrome/Monochrome.css" type="text/css" rel="stylesheet" /><style type="text/css">
/* <![CDATA[ */
#Menu1 img.icon { border-style:none;vertical-align:middle; }
#Menu1 img.separator { border-style:none;display:block; }
#Menu1 img.horizontal-separator { border-style:none;vertical-align:middle; }
#Menu1 ul { list-style:none;margin:0;padding:0;width:auto; }
#Menu1 ul.dynamic { z-index:1; }
#Menu1 a { text-decoration:none;white-space:nowrap;display:block; }
#Menu1 a.static { padding-left:0.15em;padding-right:0.15em; }
#Menu1 a.popout-dynamic { background:url("/WebResource.axd?d=YAYach_zykzn7tRotFpEUt2gPodajNlBieNG_4G8IgjUQ-KdUZ6VgQYnL8pgzyi4m34k6AAEEDd9etc31Vy7-esgk-aC5gKEhn2m0s9ms3Q1&t=635817503978775786") no-repeat right center;padding-right:14px; }
/* ]]> */
</style></head>
<body>
<form method="post" action="./" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="FgO8YUHKnyMLb/XzshlTyFvY24EomFqf5/z43kny4iXWkDdtbRQrHC+XnFrW34yM7di5HdOkfwOpGqmi8luxk4xRrrW6gQ2f/nN2r5baXZX0NkrllA2nT67KS/Eh0ZeLjDFlfZzB3zWq8R2Al8Jytd8/4CnuzszZ4Z27cKekfomFxgcYBvibDlKcNFDn2Du+iiosO7U9fP1Un7cMpdb1WFZ7ontcMCiCtbQcFPZv/op9WoNtwpNVtI9/fdM3kBvLLkrrKhMuFzjzsjBjVvcwJa1KpxDK5Q4GivMUepy22/vQd24KVHFgzKdqLD+Fa6OJQfdpcltuawLSuzs2/eMJD3STF4WJ7HNAbpfCyusAXnO11X55RXyBcxaCSE1FpHNmKIpCDy9QGoQKidyNm6vBdmYSFlz19odF3ADOjxdSbGuWkPuQgtMJVpGGgT+L7BHfyNdyjqXxJ/N5h3ZGU7tAO1rlG91iTB50zNwoXnBF3N3BmBsAU2A8jHDjPyxDwJMdw+c3EapR3dH2K9TapjSIGZs3nFKz52WmHwVu6kVz1XV/JlR+vv6w5vhfJprucwTdBMcmTtibPSJL7aZQzZsLL9P8hEnG8WerLECWL++WC1xhhmo6V0YMBfbtRTzscyR0a0Fti6UNL4To4XRzcwVaa3jKF+bFc9V/W3N5+hjZnujwVV3wZSzJEEICm9U1lMbpN661iFI1cA/oy98KlDbKk/8t1uIhXgez/gzy2q2rWcz78VVKvlv6hURoLCafj933gM2O71UzRA1oLV5AG4TY4G0R35i7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C4SE/lWzlFobDcPWOEZ2V2kD3xZpm3Otdd35xIVrP284DL31rE84btcitCS2HSkSwZURhsRQFpeH7rSv9Bndj2ZxTLrqvfLVJDvc89sNXUB0VxnsZvA==" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZDgai6-nUcSUFGUmgrhPqm7GeUg0cSvwDduoD2Z_CJjDg3DOr9TGaNuFFQsavM8ILg2&t=635817503978775786" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=zvkqIRNUspAvS1yKeFhMb4M5FTgjiwDDKmJQP8D_dHH41Vee6EY6Y-SN_wYoNxUH30xMVpjrSsYyPLkY3GG4hd82-gacwY1ePrRmklkqs4DQhiGX9YL4cXGbZpEDepsAPM9rWL0usNstqyDqfOJaeg2&t=ffffffff8140c90e" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=NJmAwtEo3Ipnlaxl6CMhvvFBTh01AWrWCmCC6aDTTTgtQ_sw-F8AmHuV2jleuP8RX7s5ytV6WQ1PSDGjtuB1L_4Nv-x-LrPCxqo3229dB2gFW2X7ITg4o2yFbGVOhR3T34p7WvXcy1wq9G3C4zRzB7jDqPTwXKeQoXVgz3_sbRc1&t=ffffffff99ad5758" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=dwY9oWetJoJoVpgL6Zq8OOgnj9IuWg0g7aEni8haw5A1ROLPqBzkmtgaihxzeGhAdYFSr__1Ls5HEwGGhqllkhi9nKbH2fjzaP-5qRv_HuxFpkN_8QPlYotgKIVEAg09Qrr68tJPWfZR_OpmhfS8tOqgRFyzhzq2SK6q3Rmf8d81&t=ffffffff99ad5758" type="text/javascript"></script>
<script src="Scripts/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="Scripts/WebForms/WebUIValidation.js" type="text/javascript"></script>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="CA0B0334" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="H8tg/lhcqV3hyHNmME5m1lCbHKymE0a3uEHrT2xABRB0jIv87pYz+bVh1+4JKlLw2YuNhxRSeH5Rn24MnWbxlbi4ZRwoTA8XsGia1t3krs6s1aVyErc5nV669vtcOnjO03D7MobccbIgIVjPoQKmZ+SKzJT7A29Th8KzhjtshKw=" />
</div>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ScriptManager1', 'form1', [], [], [], 90, 'ctl00');
//]]>
</script>
<div id="PageWrapper">
<header><a href="/"></a></header>
<nav>
<a href="#Menu1_SkipLink" style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;">Skip Navigation Links</a><div class="MainMenu" id="Menu1">
<ul class="level1">
<li><a title="Go to the homepage" class="level1" href="/Default">Home</a></li><li><a title="Reviews published on this site" class="level1" href="/Reviews/Default">Reviews</a><ul class="level2">
<li><a title="All Reviews Grouped by Genre" class="level2" href="/Reviews/AllByGenre">By Genre</a></li><li><a title="All Reviews" class="level2" href="/Reviews/All">All Reviews</a></li>
</ul></li><li><a title="All Gig Pics" class="level1" href="/PhotoAlbums/">Gig Pics</a><ul class="level2">
<li><a title="All Gig Pics" class="level2" href="/PhotoAlbums/Default">Gig Pics</a></li><li><a title="Create a new Photo Album with Gig Pics" class="level2" href="/NewPhotoAlbum">New Album</a></li>
</ul></li><li><a title="About this Site" class="level1" href="/About/Default">About</a><ul class="level2">
<li><a title="Contact Us" class="level2" href="/About/Contact">Contact Us</a></li><li><a title="About Us" class="level2" href="/About/AboutUs">About Us</a></li><li><a title="My Profile" class="level2" href="/MyProfile">My Profile</a></li>
</ul></li><li><a title="Log in to this web site" class="level1" href="/Login">Login</a></li>
</ul>
</div><a id="Menu1_SkipLink"></a>
</nav>
<section id="MainContent">
<span id="SiteMapPath1"><a href="#SiteMapPath1_SkipLink" style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;">Skip Navigation Links</a><span>Home</span><a id="SiteMapPath1_SkipLink"></a></span>
<br />
<br />
<h1>Hi there visitor and welcome to Planet Wrox</h1>
<p class="Introduction">We're glad you're paying a visit to <a href="http://www.PlanetWrox.com">www.PlanetWrox.com</a>, the coolest music community site on the Internet.</p>
<p class="Introduction">Feel free to have a <a href="Default">look around</a>; there are lots of interesting <strong>reviews and concert pictures</strong> to be found here.</p>
<p>You can <a href="Login">log in</a> here</p>
</section>
<aside id="Sidebar">
Select a theme
<br />
<select name="ctl00$ThemeList" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ThemeList\',\'\')', 0)" id="ThemeList">
<option selected="selected" value="Monochrome">Monochrome</option>
<option value="DarkGrey">DarkGrey</option>
</select>
<br />
<br />
<div id="Banner1_VerticalPanel">
<a href="http://p2p.wrox.com" id="Banner1_VerticalLink" target="_blank">
<img id="Banner1_Image1" src="Images/Banner120x240.gif" alt="This is a sample banner" />
</a>
</div>
<br />
</aside>
<footer>
</footer>
</div>
<script type='text/javascript'>new Sys.WebForms.Menu({ element: 'Menu1', disappearAfter: 500, orientation: 'horizontal', tabIndex: 0, disabled: false });</script></form>
</body>
</html>
|
|

January 27th, 2016, 07:12 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
The code you posted below is the HTML from the homepage; not from the CSS file that has been generated. Looks like you missed a step or looked at the wrong link.
Cheers,
Imar
|
|

January 27th, 2016, 09:31 AM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 19: Using Bundling and Modification
Hi Imar,
Where do I find the URL set in the href attribute? I thought it came from the HTML homepage.
How do I get to the CSS code?
|
|

January 27th, 2016, 11:28 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It does, doesn't it?
<script src="/Scripts/modernizr-2.7.1. js"></script>
<link href=" /StyleSheets?v=pEehzO8qi6qpAx9iydIGYPTpID2z0pdm3I0s 0GMzTv41" rel="stylesheet"/>
You need to request the highlighted URL in your browser to see the CSS. You may have to open the homepage first and get a recent URL.
Imar
|
|

January 30th, 2016, 01:04 AM
|
|
Authorized User
|
|
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Chapter 19: Using Bundling and Modification
Hi Imar,
For the URL, I was looking for something beginning with http://... I now know better.
I found a quicker method to get to the CSS code. You just click on the URL in the HTML homepage.
Thank you.
|
|

January 31st, 2016, 03:44 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
>>For the URL, I was looking for something beginning with http://... I now know better.
I see. The book mentions a link with http as the *final* result you need to enter in your browser.
>> I found a quicker method to get to the CSS code. You just click on the URL in the HTML homepage.
Yep, that works great. I didn't mention this in the book as not all browsers support it.
Cheers,
Imar
|
|
 |
|