Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 166
Search took 0.04 seconds.
Search: Posts Made By: philip_cole
Forum: Java Basics March 12th, 2013, 08:11 AM
Replies: 2
Views: 1,336
Posted By philip_cole
Hi Alex, Yes this is one of the main differences...

Hi Alex,

Yes this is one of the main differences between an interface and an abstract class. Just create it as a normal method:


public abstract class MyAbstractClass {

// abstract method
...
Forum: BOOK: Ivor Horton's Beginning Visual C++ 2012 January 7th, 2013, 06:47 AM
Replies: 2
Views: 1,044
Posted By philip_cole
Hi, I'm not great at C++ and I don't have a...

Hi,

I'm not great at C++ and I don't have a compiler on this machine, but I suspect you have put both code files in the same C++ project and they are conflicting with each other.

Although you have...
Forum: BOOK: Professional ASP.NET MVC 4 January 4th, 2013, 11:56 AM
Replies: 1
Views: 844
Posted By philip_cole
Hi Ash, Try doing a Rebuild of the AccountModels...

Hi Ash,

Try doing a Rebuild of the AccountModels project, sometimes just building doesn't work. Also obviously make sure it is referenced by the project containing the Controller.

Phil
Forum: ASP.NET 4 General Discussion January 4th, 2013, 09:55 AM
Replies: 2
Views: 4,884
Posted By philip_cole
BindJQueryControls is called on page load, not...

BindJQueryControls is called on page load, not immediately, so $('#DateOfBirth').datepicker("setDate", "01/12/2013"); will probably run before the datepicker is initialized. Try adding that code to...
Forum: C# 2012/5.0 General Discussion January 4th, 2013, 08:20 AM
Replies: 1
Views: 925
Posted By philip_cole
Hi jllouis, Even tho you write an enumeration...

Hi jllouis,

Even tho you write an enumeration value in code kind of looking like a string and they can appear the same when printed to the screen, strings and enumerations are two different types of...
Forum: Classic ASP Professional January 4th, 2013, 07:58 AM
Replies: 3
Views: 9,574
Posted By philip_cole
This is probably because it is being treated as...

This is probably because it is being treated as an Internet/Untrusted site by your browser so it will not pass your windows NTLM credentials to it and so the site is running as the default anonymous...
Forum: Classic ASP Professional January 4th, 2013, 07:28 AM
Replies: 3
Views: 9,574
Posted By philip_cole
According to MSDN...

According to MSDN (http://msdn.microsoft.com/en-gb/library/windows/desktop/aa746471(v=vs.85).aspx), if you do not pass username/password at all, you will connect as the current windows user, in this...
Forum: BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio December 31st, 2012, 10:36 AM
Replies: 1
Views: 1,690
Posted By philip_cole
Hi Carterly, Type.GetCustomAttributes will...

Hi Carterly,

Type.GetCustomAttributes will always return an object array, so in your LINQ statement, q is of type object. You will need to cast each one to QueryFieldAttribute to check it.

Luckily...
Forum: Classic ASP Professional December 31st, 2012, 10:04 AM
Replies: 2
Views: 1,246
Posted By philip_cole
How did you set the Reply-To header?

How did you set the Reply-To header?
Forum: ASP.NET 4 General Discussion December 31st, 2012, 07:54 AM
Replies: 1
Views: 635
Posted By philip_cole
Hi Brandon, you probably want to use...

Hi Brandon,

you probably want to use arrFileLP(intIndex) or you will definitely get an IndexOutOfRangeException.

Also I guess the 2nd FileReader should read _InventoryFile not FileName_IN?

HTH
Phil
Forum: BOOK: PHP and MySQL 24-Hour Trainer October 21st, 2012, 02:31 PM
Replies: 2
Views: 879
Posted By philip_cole
Hi willyb, It looks like your file isn't being...

Hi willyb,

It looks like your file isn't being interpreted as PHP by the web server. It is just coming down as plain text. Do a view source on your browser and you'll see the php tags.

This means...
Forum: Javascript October 21st, 2012, 02:27 PM
Replies: 1
Views: 745
Posted By philip_cole
Hi SillyPants, You've got too many closing...

Hi SillyPants,

You've got too many closing brackets (}) in your code snippet.

Once you've fixed that up, try to work out what the scope of your passes variable is, i.e. is it global to the page or...
Forum: BOOK: Beginning ASP.NET Security October 12th, 2012, 11:28 AM
Replies: 2
Views: 7,951
Posted By philip_cole
Hi nthoeming, I haven't code the code for that...

Hi nthoeming,

I haven't code the code for that snippet, but is that not just registering the event handler for PreRender, in the same way as the PreSendRequestHeaders handler is being set in...
Forum: BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 February 7th, 2010, 03:31 PM
Replies: 5
Views: 1,443
Posted By philip_cole
Hi Sophia, The actual error is saying that it is...

Hi Sophia,

The actual error is saying that it is trying to convert an Id value with an empty string to an integer. If they have clicked a Play button on an item, I would assume that the item would...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 January 31st, 2010, 05:36 PM
Replies: 4
Views: 1,247
Posted By philip_cole
Hi Your code looks correct - this looks more...

Hi

Your code looks correct - this looks more like a setup issue with using PHP with MySQL.

Have you managed to connect to MySQL at all with PHP? If not, look back at the configuration steps in...
Forum: Javascript How-To July 16th, 2009, 06:25 PM
Replies: 1
Views: 663
Posted By philip_cole
Hi I assume you are just using javascript to set...

Hi

I assume you are just using javascript to set the src of an image to a picture on your server, along the lines of:

document.getElementById('myimage').src = 'images/' + dateEntered + '.jpg';

If...
Forum: BOOK: Beginning C# 2005 Databases July 16th, 2009, 05:58 PM
Replies: 2
Views: 2,460
Posted By philip_cole
Hi As the book says, King does not fall between...

Hi

As the book says, King does not fall between Quentin and Zyryrab - these names are the last names of the employees.

If you were to remove the ename condition in the statment so you are just...
Forum: Visual Basic 2008 Professionals July 11th, 2009, 09:25 AM
Replies: 1
Views: 1,060
Posted By philip_cole
Hi, Well it's not a myth, it's to do with the...

Hi,
Well it's not a myth, it's to do with the registry.

I search on google for "Creating File Associations visual basic" and this was the first result, which gives you a worked example as a good...
Forum: ADO.NET July 5th, 2009, 06:50 PM
Replies: 3
Views: 2,342
Posted By philip_cole
Hi Slake, Have you tried changing the code to...

Hi Slake,

Have you tried changing the code to use abookdatePicker1.Value instead, which gets the value as an actual DateTime?
There isn't always a direct link between what format a .NET control...
Forum: ASP.NET 3.5 Basics June 17th, 2009, 07:22 PM
Replies: 10
Views: 26,962
Posted By philip_cole
Any time Dave. No Lee unfortunately it's not on...

Any time Dave.

No Lee unfortunately it's not on MSDN - I had to find out the hard way by swearing at my screen for most of a day. If you debug a page with breakpoints in Page_Load and ItemCreated,...
Forum: Classic ASP Basics June 17th, 2009, 04:23 PM
Replies: 3
Views: 753
Posted By philip_cole
Yes, the name clauses will apply to the second...

Yes, the name clauses will apply to the second select only. I'm assuming you are using SQL Server here, but I guess it would be similar for Access.

There are two ways you can do this: put the (and...
Forum: ASP.NET 3.5 Basics June 15th, 2009, 02:05 PM
Replies: 10
Views: 26,962
Posted By philip_cole
Indeed, depending on how it is bound. But...

Indeed, depending on how it is bound. But remember ItemCreated is also raised before Page_Load on each request, so update events etc can be raised, at which point it will not be binding.
It works in...
Forum: ASP.NET 3.5 Basics June 15th, 2009, 01:10 PM
Replies: 10
Views: 26,962
Posted By philip_cole
Sorry Lee, there is a slight error in your code....

Sorry Lee, there is a slight error in your code. [:p]

OK I had to dig deep to find it, but it's worth mentioning that ItemCreated is raised each time the layout of the ListView is created, not just...
Forum: ASP.NET 3.5 Basics June 13th, 2009, 04:12 PM
Replies: 10
Views: 26,962
Posted By philip_cole
Cast to ListViewDataItem

Hi David,

In the ItemDataBound event for items which are ListViewItemType.DataItem, e.Item is of type ListViewDataItem. You can cast e.Item to this and then use its DataItem property the same as...
Forum: Javascript June 13th, 2009, 08:28 AM
Replies: 4
Views: 4,337
Posted By philip_cole
Hi Amit, I'm not sure what you mean - JavaScript...

Hi Amit,

I'm not sure what you mean - JavaScript is run on the client by the browser and ASP.NET is run on the web server. You probably want to post your question here -...
Showing results 1 to 25 of 166

 


All times are GMT -4. The time now is 02:56 AM.


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