<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</title>
		<link>http://p2p.wrox.com</link>
		<description>This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593 Read more about Beginning ASP.NET 3.5: In C# and VB  or buy the book from your favorite retailerDownload the code for Beginning ASP.NET 3.5: In C# and VB Buy chapters from this book in PDF</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 13:53:15 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title>Contact form From Chapter 9</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77100-contact-form-chapter-9-a.html</link>
			<pubDate>Fri, 20 Nov 2009 03:13:40 GMT</pubDate>
			<description>Hello,
I am just started learning Asp.net with C#.  I had created a contact form following instruction from the book and I did successfully locally...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I am just started learning Asp.net with C#.  I had created a contact form following instruction from the book and I did successfully locally however now when I tested live using one of the free web hosting, it doesn't work. I have no idea why as I totally new to this. I have been spending day and night on this error and can't move on any further so if you could help me with this I would be the happiest person in the whole world.<br />
<br />
Thank you very much in anticipation.<br />
Following is the error I got and the code in ContactForm.ascx.cs<br />
<br />
<font size="5">Error</font><br />
Could not find file 'C:\sites\content\App_Data\ContactForm.txt'. <br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br />
<br />
Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\sites\content\App_Data\ContactForm.txt'.<br />
<br />
Source Error: <br />
Line 38:     {<br />
Line 39:       string fileName= Server.MapPath(&quot;~/App_Data/ContactForm.txt&quot;);<br />
Line 40:       string mailBody = System.IO.File.ReadAllText(fileName);<br />
Line 41: <br />
Line 42:       mailBody = mailBody.Replace(&quot;##Name##&quot;, txtName.Text);<br />
<br />
<br />
<font size="5"> ContactForm.ascx.cs</font><br />
using System;<br />
using System.Collections;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Linq;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.HtmlControls;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Xml.Linq;<br />
<br />
using System.Net.Mail;<br />
<br />
public partial class Controls_ContactForm : System.Web.UI.UserControl<br />
{<br />
  protected void Page_Load(object sender, EventArgs e)<br />
  {<br />
<br />
  }<br />
<br />
  protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)<br />
  {<br />
    if (txtPhoneHome.Text != string.Empty || txtMobile.Text != string.Empty)<br />
    {<br />
      args.IsValid = true;<br />
    }<br />
    else<br />
    {<br />
      args.IsValid = false;<br />
    }<br />
  }<br />
<br />
  protected void btnSend_Click(object sender, EventArgs e)<br />
  {<br />
    if (Page.IsValid)<br />
    {<br />
      string fileName= Server.MapPath(&quot;~/App_Data/ContactForm.txt&quot;);<br />
      string mailBody = System.IO.File.ReadAllText(fileName);<br />
<br />
      mailBody = mailBody.Replace(&quot;##Name##&quot;, txtName.Text);<br />
      mailBody = mailBody.Replace(&quot;##Email##&quot;, txtEmailAddress.Text);<br />
      mailBody = mailBody.Replace(&quot;##HomePhone##&quot;, txtPhoneHome.Text);<br />
      mailBody = mailBody.Replace(&quot;##BusinessPhone##&quot;, txtMobile.Text);<br />
      mailBody = mailBody.Replace(&quot;##Comments##&quot;, txtComments.Text);<br />
<br />
      MailMessage myMessage = new MailMessage();<br />
      myMessage.Subject = &quot;Response from web site&quot;;<br />
      myMessage.Body = mailBody;<br />
<br />
      myMessage.From = new MailAddress(&quot;susunguyen@tpg.com.au&quot;, &quot;Sender Name Here&quot;);<br />
      myMessage.To.Add(new MailAddress(&quot;susunguyen@tpg.com.au&quot;, &quot;Receiver Name Here&quot;));<br />
<br />
      SmtpClient mySmtpClient = new SmtpClient();<br />
      mySmtpClient.Send(myMessage);<br />
<br />
      lblMessage.Visible = true;<br />
      FormTable.Visible = false;<br />
      PlaceHolder1.Visible = false;<br />
      Heading.Visible = false;<br />
<br />
<br />
    }<br />
  }<br />
}</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>susu2009</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77100-contact-form-chapter-9-a.html</guid>
		</item>
		<item>
			<title>Why do we add an Id column to our tables?</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77075-why-do-we-add-id-column-our-tables.html</link>
			<pubDate>Wed, 18 Nov 2009 13:54:57 GMT</pubDate>
			<description>Hello Imar,

I wanted to ask you a more general question, maybe this topic is outside the scope of the book and I should just accept it as good...</description>
			<content:encoded><![CDATA[<div>Hello Imar,<br />
<br />
I wanted to ask you a more general question, maybe this topic is outside the scope of the book and I should just accept it as good practice to give each item in a table its own Id.<br />
<br />
So my question is; why do you add an Id column to the tables?<br />
<br />
At first sight it seems that we are just adding an extra column to our data that could be considered redundant, because most of the time already a review name for example is unique. And then again if it's not unique the combination of that review name with the genre name makes it unique.<br />
<br />
In the discussion of primary keys on p373, you say that the primary key can span multiple columns, where the columns together form a unique Id. <br />
I haven't been able to find out how to do that, so how is that accomplished?<br />
<br />
Best regards, Robin</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>robbaralla</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77075-why-do-we-add-id-column-our-tables.html</guid>
		</item>
		<item>
			<title>Chapter 18</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77036-chapter-18-a.html</link>
			<pubDate>Sat, 14 Nov 2009 17:00:52 GMT</pubDate>
			<description>Hello Imar,
 
I have a problem with deploying my web site, I have Windows XP Professional and I configured the ASPNET account in the IIS as you wrote...</description>
			<content:encoded><![CDATA[<div>Hello Imar,<br />
 <br />
I have a problem with deploying my web site, I have Windows XP Professional and I configured the ASPNET account in the IIS as you wrote in your book. But when I try to open the web site in the browser it fails. <br />
 <br />
I opened the IIS dialog box and I found under Web Sites node the following : <br />
&quot;Default Web Site (Stopped)&quot;.<br />
 <br />
I right clicked on it and tried to start it but I got the following error :<br />
&quot;The service did not respond to the start or control request in a timely fashion&quot;.<br />
 <br />
Can you please help me find a solution ?<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>rock1233</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77036-chapter-18-a.html</guid>
		</item>
		<item>
			<title>Chapter 18: Viewing Site at http://localhost</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77031-chapter-18-viewing-site-http-localhost.html</link>
			<pubDate>Sat, 14 Nov 2009 05:27:10 GMT</pubDate>
			<description>After completing the lab on pages 653-656 and viewing the site at http://localhost I clicked on a couple pages under Reviews and tried logging in and...</description>
			<content:encoded><![CDATA[<div>After completing the lab on pages 653-656 and viewing the site at <a href="http://localhost" target="_blank">http://localhost</a> I clicked on a couple pages under Reviews and tried logging in and I received the following error message in my inbox: <br />
 <br />
&quot;An attempt to attach an auto-named database for file C:\Users\Erich\Documents\Gateway\Beginning <a href="http://asp.net/" target="_blank"><font color="#0066cc">ASP.NET</font></a> 3.5 <acronym title="vBulletin">VB</acronym>\BegASPNET\Release\App_Data\PlanetWrox.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.<br />
 <br />
I read online that is may have to do with my connection string. I posted this below as a reference.<br />
 <br />
<font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">&lt;</font></font></font></font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">add</font></font></font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">name</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=</font></font></font></font><font size="2"><font color="#000000">&quot;</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">PlanetWroxConnectionString1</font></font></font></font><font size="2"><font color="#000000">&quot;</font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">connectionString</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=</font></font></font></font><font size="2"><font color="#000000">&quot;</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector  y|\PlanetWrox.mdf;Integrated Security=True;User Instance=True</font></font></font></font><font size="2"><font color="#000000">&quot;</font></font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">providerName</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">=</font></font></font></font><font size="2"><font color="#000000">&quot;</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">System.Data.SqlClient</font></font></font></font><font size="2"><font color="#000000">&quot;</font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">/&gt;</font></font></font></font><br />
<br />
<font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff"><font color="black">I verified 3 times that my file system configuration mirrored the books directions.</font></font></font></font></font><br />
<br />
<font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff"><font color="#000000">Any thoughts would be appreciated.</font></font></font></font></font></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>epc</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77031-chapter-18-viewing-site-http-localhost.html</guid>
		</item>
		<item>
			<title><![CDATA[Login & CreateUserWizard controls remember me??]]></title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77025-login-createuserwizard-controls-remember-me.html</link>
			<pubDate>Fri, 13 Nov 2009 20:10:58 GMT</pubDate>
			<description>Hi there,

I have followed the Try it outs on p528 and p532 where the Login and signup pages are being created.

I created some user accounts and...</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
I have followed the Try it outs on p528 and p532 where the Login and signup pages are being created.<br />
<br />
I created some user accounts and tried them out, all seems to work ok. ACCEPT that the Login and CreateUserWizard controls continu to come up in the browser with 1 of the users including password that I created as a default; when I open Login.aspx or SignUp.aspx in the browser the User Name and Password fields are already filled with these values.<br />
I never even checked the &quot;remember me&quot; checkbox.<br />
<br />
I triple checked the code, even threw away my code and replaced it with the source code without any change, this user keeps coming up.<br />
I also checked the web.config and the strange thing is that when I try to log in with this default user that it does not log in, nor can I change the password for it,  it gives the following message &quot;We were unable to access your information. Please try again.&quot;<br />
<br />
So the fault must be somewhere else...but where??<br />
<br />
Any suggestions anybody?<br />
Thanks in advance</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>robbaralla</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77025-login-createuserwizard-controls-remember-me.html</guid>
		</item>
		<item>
			<title>Ch 11 Creating relationships between tables</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77019-ch-11-creating-relationships-between-tables.html</link>
			<pubDate>Fri, 13 Nov 2009 14:14:13 GMT</pubDate>
			<description><![CDATA[In previous versions ASP.NET relationship dialog box had option: "*Cascade Delete Related Records*"; it was radical solution for keeping data...]]></description>
			<content:encoded><![CDATA[<div>In previous versions ASP.NET relationship dialog box had option: &quot;<b>Cascade Delete Related Records</b>&quot;; it was radical solution for keeping data integrity. If this option selected and you delete a department from the database, all its related categories would be automatically deleted by SQL Server. I used this option in my previous projects to let users delete ( after confirmation) record from parent table with all corresponding records in related tables. I don't see this option in ASP.NET 3.5.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>bpl</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77019-ch-11-creating-relationships-between-tables.html</guid>
		</item>
		<item>
			<title>Chapter 9</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77004-chapter-9-a.html</link>
			<pubDate>Thu, 12 Nov 2009 15:06:14 GMT</pubDate>
			<description><![CDATA[Hello Imar,
I have a question about sending emails. I am using the following code in the web.config file :

Code:
---------
<smtp...]]></description>
			<content:encoded><![CDATA[<div>Hello Imar,<br />
I have a question about sending emails. I am using the following code in the web.config file :<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;smtp deliveryMethod=&quot;Network&quot;&gt;<br />
&nbsp;  &lt;network host=&quot;smtp.youprovider.com&quot; userName=&quot;username&quot; password=&quot;password&quot;/&gt;<br />
&lt;/smtp&gt;</code><hr />
</div>My question is about the password, it will be displayed and everyone who will open the web.config file in the production server will be able to see it.<br />
 <br />
Is there any solution for that ?<br />
 <br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>rock1233</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/77004-chapter-9-a.html</guid>
		</item>
		<item>
			<title>Ch14 Try It Out Pg. 506</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76984-ch14-try-out-pg-506-a.html</link>
			<pubDate>Tue, 10 Nov 2009 19:31:56 GMT</pubDate>
			<description><![CDATA[Hi,

I'm working on this try it out and for some reason the title for the ViewDetails.aspx page is not being set programmatically and so my basepage...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm working on this try it out and for some reason the title for the ViewDetails.aspx page is not being set programmatically and so my basepage template raises an error.<br />
<br />
I have this code in the codebehind...<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><br />
Partial Class ViewDetails<br />
&nbsp; Inherits BasePage<br />
<br />
&nbsp; Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
&nbsp; &nbsp; Dim reviewId As Integer = Convert.ToInt32(Request.QueryString.Get(&quot;ReviewId&quot;))<br />
&nbsp; &nbsp; Dim myReview As Review<br />
<br />
&nbsp; &nbsp; Using db As New PlanetWroxDataContext()<br />
&nbsp; &nbsp; &nbsp; myReview = (From r In db.Reviews _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Where r.Id = reviewId _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Select r).Single()<br />
&nbsp; &nbsp; &nbsp; lblTitle.Text = myReview.Title<br />
&nbsp; &nbsp; &nbsp; lblSummary.Text = myReview.Summary<br />
&nbsp; &nbsp; &nbsp; lblBody.Text = myReview.Body<br />
<br />
&nbsp; &nbsp; &nbsp; 'Set the page title programmatically<br />
&nbsp; &nbsp; &nbsp; Me.Title = myReview.Title<br />
&nbsp; &nbsp; End Using<br />
&nbsp; End Sub<br />
End Class</code><hr />
</div>Maybe I misspelled something and I'm not seeing it.<br />
<br />
Update**<br />
When I set the title to the ViewDetails.aspx in markup everything works fine.  The title is changed to the proper one once the page loads.  The error is being raised before the Page_Load event is triggered.  Why is this happening?<br />
<br />
<br />
Chuck</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>eiviery</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76984-ch14-try-out-pg-506-a.html</guid>
		</item>
		<item>
			<title>using pager</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76982-using-pager.html</link>
			<pubDate>Tue, 10 Nov 2009 16:47:57 GMT</pubDate>
			<description>Hello friends,
I have been working on the site for a long time. Everything is going good. But one thing that I want to add or you can say that I...</description>
			<content:encoded><![CDATA[<div>Hello friends,<br />
I have been working on the site for a long time. Everything is going good. But one thing that I want to add or you can say that I wanna modify is that rather showing all images on <b>ManagePhotoGallery.aspx</b> page, only few images be shown (i.e. in form of chunks) and a control for adding new images should be placed at last. For this I have used the pager as in case of <b>PhotoGallery/Default.aspx</b> file. But the control appears on the first page index, and moving to next page fails as control is on first page and without entering values in the description and tooltip etc. with required field controls. So can any one suggest how to place the control for inserting new images at last page. <br />
<br />
Thank you........</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>jack_hilary</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76982-using-pager.html</guid>
		</item>
		<item>
			<title>Am I understanding how the BasePage is called up?</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76981-am-i-understanding-how-basepage-called-up.html</link>
			<pubDate>Tue, 10 Nov 2009 16:43:06 GMT</pubDate>
			<description><![CDATA[I am wondering if I fully understand how the Base Page is called up.

I have installed a file BasePage.vb (not the same coding as the book's) in the...]]></description>
			<content:encoded><![CDATA[<div>I am wondering if I fully understand how the Base Page is called up.<br />
<br />
I have installed a file BasePage.<acronym title="vBulletin">vb</acronym> (not the same coding as the book's) in the App_Code folder.  I am running a file called test.aspx.  It's code behind is<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Partial Class test<br />
&nbsp; &nbsp; Inherits BasePage<br />
<br />
End Class</code><hr />
</div>There is a MasterPage, for which the code behind is:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
Partial Class MasterPage<br />
&nbsp; &nbsp; Inherits System.Web.UI.MasterPage<br />
End Class</code><hr />
</div>Now as I understand Chapter 6, that should mean that running test.aspx will call up the BasePage which will over ride System.Web.UI.Page - is that correct?<br />
<br />
In which case, if I get an error &quot;<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif">Error parsing attribute 'meta_keywords': Type 'System.Web.UI.Page' does not have a public property named 'meta_keywords'.&quot; am I right in deducing that the BasePage has not the coding that includes the public property for </font><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif"> 'meta_keywords', and so does not over ride </font><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif">System.Web.UI.Page?</font><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif">. <br />
<br />
I am not asking for this one to be solved here - just asking if I have understood the book correctly, and so have made the correct deduction.<br />
</font></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>kiwibrit</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76981-am-i-understanding-how-basepage-called-up.html</guid>
		</item>
		<item>
			<title>Chap 7 Navigation</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76967-chap-7-navigation.html</link>
			<pubDate>Mon, 09 Nov 2009 16:57:16 GMT</pubDate>
			<description>Hi,

i am on page 252 and have finished adding Review folders and about!

When i open the Default.aspx page in the root folder the dropdown lists...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
i am on page 252 and have finished adding Review folders and about!<br />
<br />
When i open the Default.aspx page in the root folder the dropdown lists still have a plain white BG and no text.<br />
<br />
When i open the final chapter up ( and other chapters) in VWD and do the same thing, the same happens. The dropdown lists for reviews and about are plain white!<br />
<br />
can anyone help please??</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>benjii82</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76967-chap-7-navigation.html</guid>
		</item>
		<item>
			<title>Complie Issue</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76956-complie-issue.html</link>
			<pubDate>Sun, 08 Nov 2009 22:10:47 GMT</pubDate>
			<description><![CDATA[I transferred my planetwrox site from a laptop to my desktop and now I get a compile-time error in my planetwrox.designer.vb file.  I don't know why...]]></description>
			<content:encoded><![CDATA[<div>I transferred my planetwrox site from a laptop to my desktop and now I get a compile-time error in my planetwrox.designer.<acronym title="vBulletin">vb</acronym> file.  I don't know why this happened since I don't alter the code there.  There are several errors but it looks like the root of the problem is with the Picture class.  I'll post the code that generates the errors.  Also what is the cryptic code at the very bottom?<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;Table(Name:=&quot;dbo.Picture&quot;)&gt;&nbsp; _<br />
Partial Public Class Picture<br />
&nbsp; &nbsp; &nbsp; &nbsp; Implements System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private Shared emptyChangingEventArgs As PropertyChangingEventArgs = New PropertyChangingEventArgs(String.Empty)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private _Id As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private _Description As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private _Tooltip As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private _ImageUrl As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private _PhotoAlbumId As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Private _PhotoAlbum As EntityRef(Of PhotoAlbum)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; #Region &quot;Extensibility Method Definitions&quot;<br />
&nbsp; &nbsp; Partial Private Sub OnLoaded()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnValidate(action As System.Data.Linq.ChangeAction)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnCreated()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnIdChanging(value As Integer)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnIdChanged()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnDescriptionChanging(value As String)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnDescriptionChanged()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnTooltipChanging(value As String)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnTooltipChanged()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnImageUrlChanging(value As String)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnImageUrlChanged()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnPhotoAlbumIdChanging(value As Integer)<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; Partial Private Sub OnPhotoAlbumIdChanged()<br />
&nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; #End Region<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Sub New()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyBase.New<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._PhotoAlbum = CType(Nothing, EntityRef(Of PhotoAlbum))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnCreated<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Column(Storage:=&quot;_Id&quot;, AutoSync:=AutoSync.OnInsert, DbType:=&quot;Int NOT NULL IDENTITY&quot;, IsPrimaryKey:=true, IsDbGenerated:=true)&gt;&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Property Id() As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Me._Id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ((Me._Id = value)&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnIdChanging(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanging<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._Id = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanged(&quot;Id&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnIdChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Column(Storage:=&quot;_Description&quot;, DbType:=&quot;NVarChar(300) NOT NULL&quot;, CanBeNull:=false)&gt;&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Property Description() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Me._Description<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (String.Equals(Me._Description, value) = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnDescriptionChanging(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanging<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._Description = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanged(&quot;Description&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnDescriptionChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Column(Storage:=&quot;_Tooltip&quot;, DbType:=&quot;NVarChar(50) NOT NULL&quot;, CanBeNull:=false)&gt;&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Property Tooltip() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Me._Tooltip<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (String.Equals(Me._Tooltip, value) = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnTooltipChanging(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanging<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._Tooltip = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanged(&quot;Tooltip&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnTooltipChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Column(Storage:=&quot;_ImageUrl&quot;, DbType:=&quot;NVarChar(200) NOT NULL&quot;, CanBeNull:=false)&gt;&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Property ImageUrl() As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Me._ImageUrl<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If (String.Equals(Me._ImageUrl, value) = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnImageUrlChanging(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanging<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._ImageUrl = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanged(&quot;ImageUrl&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnImageUrlChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Column(Storage:=&quot;_PhotoAlbumId&quot;, DbType:=&quot;Int NOT NULL&quot;)&gt;&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Property PhotoAlbumId() As Integer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Me._PhotoAlbumId<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ((Me._PhotoAlbumId = value)&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Me._PhotoAlbum.HasLoadedOrAssignedValue Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Throw New System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnPhotoAlbumIdChanging(value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanging<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._PhotoAlbumId = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanged(&quot;PhotoAlbumId&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.OnPhotoAlbumIdChanged<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Association(Name:=&quot;PhotoAlbum_Picture&quot;, Storage:=&quot;_PhotoAlbum&quot;, ThisKey:=&quot;PhotoAlbumId&quot;, OtherKey:=&quot;Id&quot;, IsForeignKey:=true)&gt;&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Property PhotoAlbum() As PhotoAlbum<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return Me._PhotoAlbum.Entity<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Get<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim previousValue As PhotoAlbum = Me._PhotoAlbum.Entity<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ((Object.Equals(previousValue, value) = false)&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OrElse (Me._PhotoAlbum.HasLoadedOrAssignedValue = false)) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanging<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ((previousValue Is Nothing)&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._PhotoAlbum.Entity = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; previousValue.Pictures.Remove(Me)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._PhotoAlbum.Entity = value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If ((value Is Nothing)&nbsp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = false) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value.Pictures.Add(Me)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._PhotoAlbumId = value.Id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me._PhotoAlbumId = CType(Nothing, Integer)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Me.SendPropertyChanged(&quot;PhotoAlbum&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Set<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Property<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Public Event PropertyChanging As PropertyChangin&#65533;&#65533;&#1232;W&#1500;&#65533;&#65533;&#1181;u0s&#65533;E7&#65533;&#65533;&#999;&#65533;&#65533;8&#65533;</code><hr />
</div>Thanks</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>eiviery</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76956-complie-issue.html</guid>
		</item>
		<item>
			<title>Header Image Display Issue</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76955-header-image-display-issue.html</link>
			<pubDate>Sun, 08 Nov 2009 21:18:04 GMT</pubDate>
			<description>I am applying the concepts of this book to building my own site and I am having an issue with displaying my header image size 814px X 200px. ...</description>
			<content:encoded><![CDATA[<div>I am applying the concepts of this book to building my own site and I am having an issue with displaying my header image size 814px X 200px.  Specifically, the image displays fine in VWD, but as soon as I do ctrl + F5 to view in the browser there is no image diplayed.  Here is my CSS code.  <br />
 <br />
<font size="2"><font color="#a31515"><font size="2"><font color="#a31515">*<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">font-family</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">Tahoma,</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">Verdana,</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">Sans-Serif</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">body<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">background-color</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">#dcdcdc</font></font></font></font><font size="2"><font color="#000000">; </font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">margin</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">10px</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">h1<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">font-size</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">1.25em</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">#PageWrapper<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">margin-left</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">auto</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">margin-right</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">auto</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">width</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">814px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">border</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">15px</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">double</font></font></font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">white</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">#MenuWrapper<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">background-color</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">white</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">width</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">794px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">height</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">50px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">padding-left</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">10px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">padding-right</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">10px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">#Header<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">background-image</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">url(/Images/header.jpg)</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">width</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">814px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">height</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">200px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">#MainContent<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">background-color</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">White</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">width</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">794px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">font-size</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0.8em</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">padding</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">10px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">min-height</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">380px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
</font><font size="2"><font color="#a31515"><font size="2"><font color="#a31515">#Footer<br />
</font></font></font></font><font size="2">{<br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">background-color</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">black</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">width</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">814px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">height</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">37px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">color</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">White</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">text-align</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">center</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">font-size</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">0.7em</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">font-weight</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">bold</font></font></font></font><font size="2"><font color="#000000">;</font><br />
</font><font size="2"><font color="#ff0000"><font size="2"><font color="#ff0000">line-height</font></font></font></font><font size="2"><font color="#000000">: </font></font><font size="2"><font color="#0000ff"><font size="2"><font color="#0000ff">37px</font></font></font></font><font size="2"><font color="#000000">;</font><br />
}<br />
 <br />
 <br />
Thank you!<br />
</font></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>epc</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76955-header-image-display-issue.html</guid>
		</item>
		<item>
			<title>chap 6, page 223 adding control</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76951-chap-6-page-223-adding-control.html</link>
			<pubDate>Sun, 08 Nov 2009 16:19:28 GMT</pubDate>
			<description>Hi,

I have added the dropdown list to the sidebar! when i try and change the ID to 1stPreferredTheme

it tells me that the name is not valid.

can...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have added the dropdown list to the sidebar! when i try and change the ID to 1stPreferredTheme<br />
<br />
it tells me that the name is not valid.<br />
<br />
can anyone help please?</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>benjii82</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76951-chap-6-page-223-adding-control.html</guid>
		</item>
		<item>
			<title>Menu control</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76950-menu-control.html</link>
			<pubDate>Sun, 08 Nov 2009 16:13:43 GMT</pubDate>
			<description>Applying styling pretty much as in the book to the conventional menu control I have a problem.

Using a  .gif background , I get a faint rectangular...</description>
			<content:encoded><![CDATA[<div>Applying styling pretty much as in the book to the conventional menu control I have a problem.<br />
<br />
Using a  .gif background , I get a <a href="http://www.oldwalker.org.uk/images/webstuff/ConvMenu.jpg" target="_blank">faint rectangular patch behind the text</a><br />
<br />
This doesn't happen when using <a href="http://www.oldwalker.org.uk/images/webstuff/ControlAdaptersMenu.jpg" target="_blank">CSS control adapters</a> (which I am still tweaking so can't use live yet), or a <a href="http://www.oldwalker.org.uk/images/webstuff/suckerfish.jpg" target="_blank">Suckerfish-based</a> Menu (which I don't want to use, since I can't figure how to highlight a selected button).<br />
<br />
So the problem does seem to be related to the Menu control.  Is there a way round this (the light background behind the text)?  In case it helps, here is the code:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &lt;div id=&quot;MenuWrapper&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Menu ID=&quot;Menu1&quot; runat=&quot;server&quot; CssClass=&quot;MainMenu&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataSourceID=&quot;SiteMapDataSource1&quot; Orientation=&quot;Horizontal&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StaticEnableDefaultPopOutImage=&quot;False&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;StaticSelectedStyle CssClass=&quot;StaticSelectedStyle&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;StaticMenuItemStyle CssClass=&quot;StaticMenuItemStyle&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DynamicHoverStyle CssClass=&quot;DynamicHoverStyle&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DynamicMenuItemStyle CssClass=&quot;DynamicMenuItemStyle&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;StaticHoverStyle CssClass=&quot;StaticHoverStyle&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:Menu&gt;<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;asp:SiteMapDataSource ID=&quot;SiteMapDataSource1&quot; runat=&quot;server&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ShowStartingNode=&quot;False&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/div&gt;</code><hr />
</div>And here is the CSS:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#MenuWrapper<br />
{<br />
margin-left: 5px;<br />
background-color: #606060;<br />
padding-bottom:1.2em;<br />
}<br />
<br />
.MainMenu<br />
{<br />
}<br />
<br />
.StaticMenuItemStyle, .StaticMenuItemStyle a, StaticMenuItemStyle a:visited<br />
{<br />
&nbsp; &nbsp; color:black;<br />
&nbsp; &nbsp; background-color:white;<br />
&nbsp; &nbsp; background-image:url('/images/menu/css-nav.gif');&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; font-size: .8em;<br />
&nbsp; &nbsp; font-weight: bold;<br />
&nbsp; &nbsp; text-align:center;<br />
&nbsp; &nbsp; text-decoration: none;<br />
&nbsp; &nbsp; line-height:20px;<br />
&nbsp; &nbsp; width:80px;<br />
&nbsp; &nbsp; padding-left: 5px;<br />
}<br />
<br />
.StaticHoverStyle, .StaticHoverStyle&nbsp; a<br />
{<br />
&nbsp; &nbsp;  color:Black;<br />
&nbsp; &nbsp; background-color: Gray;<br />
&nbsp; &nbsp; background-image:url('/images/menu/css-nav-hov.gif');<br />
}<br />
<br />
.StaticSelectedStyle, .StaticSelectedStyle a<br />
{<br />
&nbsp; &nbsp; color:#223188;<br />
&nbsp; &nbsp; background-color: Blue;<br />
&nbsp; &nbsp; background-image:url('/images/menu/css-nav-sel.gif');<br />
}<br />
<br />
.DynamicMenuItemStyle<br />
{<br />
&nbsp; &nbsp; font-size: 14px;<br />
&nbsp; &nbsp; color: #707070;<br />
&nbsp; &nbsp; background-color: #cccccc;<br />
&nbsp; &nbsp; padding: 4px 2px 4px 3px;<br />
}<br />
<br />
.DynamicHoverStyle<br />
{<br />
&nbsp; &nbsp; background-color: #707070;<br />
&nbsp; &nbsp; color: White;<br />
}<br />
<br />
.DynamicHoverStyle a<br />
{<br />
&nbsp; &nbsp; &nbsp; text-decoration: none;<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3-389/">BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3</category>
			<dc:creator>kiwibrit</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-3-5-c-vb-book-isbn-978-0-470-18759-3/76950-menu-control.html</guid>
		</item>
	</channel>
</rss>
