Some notes on software development... RSS 2.0
# Thursday, 01 May 2008

When I changed the ContentPlaceHolderID in the Master Page (and the content pages) and then tried to view and content pages in design mode I got the following error:

"The page has one or more <asp:Content> controls that do not correspond with <asp:ContentPlaceHolder> controls in the Master Page"

image

For some reason the Visual Studio 2008 web page designer mode does not like having XML shorthand notation of the <title /> tag in the <head> section in the master page.

So this causes the error:
image

Changing the <title /> to <title></title> fixes the problem:

image 

Job done.

Thursday, 01 May 2008 13:43:40 (GMT Standard Time, UTC+00:00)  #    -
Web Dev
# Wednesday, 30 April 2008

Below are the parameter details for the window.open() (popup) JavaScript function:

image

The list details are taken from the Blazonry website.

Wednesday, 30 April 2008 10:10:32 (GMT Standard Time, UTC+00:00)  #    -
Web Dev
# Tuesday, 29 April 2008
Tuesday, 29 April 2008 07:52:49 (GMT Standard Time, UTC+00:00)  #    -
SQL Server
# Monday, 28 April 2008

Scott Gu has a nice article describing the null coalescing operator when used with LINQ queries.

A quick example:
image 

The Qty & Size properties for the anonymous type will be defined as integer types NOT nullable integers. If any of the spec.Attribute("x") values are null or don't exist for any reason, the value returned will be a simple integer zero.
This is because using the null coalescing operator (??) is enforcing that null can never ever happen.

LINKS
Scott Gu blog article

Monday, 28 April 2008 17:01:12 (GMT Standard Time, UTC+00:00)  #    -
C#
Navigation

Sign In
Extras
Statistics
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2018
Hadrian Phillips

All Content © 2018, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)