Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
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 33
Search took 0.01 seconds.
Search: Posts Made By: philip_cole
Forum: Javascript October 21st, 2012, 01:27 PM
Replies: 1
Views: 825
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...
Forum: ADO.NET July 5th, 2009, 05:50 PM
Replies: 3
Views: 2,467
Posted By philip_cole
Hi Slake, Have you tried changing the code...

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: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 June 13th, 2009, 07:23 AM
Replies: 1
Views: 722
Posted By philip_cole
This is the error message you are telling the...

This is the error message you are telling the page to display if the connection fails, so it's a bit tricky to know what is going wrong. Here's some suggestions:

1. Have you checked that you have...
Forum: Javascript June 12th, 2009, 03:32 PM
Replies: 6
Views: 2,273
Posted By philip_cole
Hi Aspless, I assume you can see the form...

Hi Aspless,

I assume you can see the form and enter the details OK but the form isn't submitting properly?

window.navigate is an IE-only function, and has never been properly implemented...
Forum: BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 June 11th, 2009, 02:20 PM
Replies: 2
Views: 1,090
Posted By philip_cole
Hi Philthy, You are calling reader.Read() in...

Hi Philthy,
You are calling reader.Read() in GetProfiles(), which will set the pointer to the first item.
Then in GetProfilesCollectionFromReader, you are using while(reader.Read()), so the first...
Forum: BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 May 11th, 2009, 05:13 AM
Replies: 2
Views: 906
Posted By philip_cole
Hi Sandeep, The code looks fine - it looks like...

Hi Sandeep,
The code looks fine - it looks like there is a problem with the email server settings. You need to at least try to get the error the mail function is calling.

In PHP5 the default is...
Forum: BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 April 4th, 2009, 06:08 AM
Replies: 3
Views: 1,834
Posted By philip_cole
I think i see the issue. Just under the...

I think i see the issue. Just under the assessments heading you have this code


<p class="stTxt"><p><span style="font-family: 'times new roman'; font-size: 16px;">
<div style="font-family:...
Forum: BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 April 2nd, 2009, 05:57 PM
Replies: 3
Views: 975
Posted By philip_cole
Hi Sandeep, If you mean, why does the...

Hi Sandeep,

If you mean, why does the function not work, it is because the $num parameter is being passed by value, which is the default for basic types such as ints, booleans etc. In other words,...
Forum: BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio March 30th, 2009, 03:45 AM
Replies: 7
Views: 1,320
Posted By philip_cole
Here we go, this compiled for me: Public...

Here we go, this compiled for me:

Public Function SortByPropertyName(ByVal propertyName As String, ByVal ascending As Boolean) As List(Of T)
'Create a Lambda expression to dynamically...
Forum: ASP.NET 2.0 Basics March 26th, 2009, 06:06 AM
Replies: 4
Views: 1,996
Posted By philip_cole
The main issue with this is that you have double...

The main issue with this is that you have double quotes embedded within the OnClientClick attribute, which means asp.net cannot parse it (which " ends the attribute?).
You have to put the...
Forum: Javascript How-To March 25th, 2009, 09:39 AM
Replies: 5
Views: 7,561
Posted By philip_cole
Storing the value in some sort of form field as...

Storing the value in some sort of form field as you are doing is probably the easiest way - it has to be sent to the server somehow.
Just changing the textbox to an <input type="hidden" /> will...
Forum: Pro Visual Basic 2005 March 24th, 2009, 08:09 PM
Replies: 4
Views: 1,045
Posted By philip_cole
I'm confused. You are initialising cn to Nothing...

I'm confused. You are initialising cn to Nothing then setting the ConnectionString property - this should throw a NullReferenceException on line 2. Then you are using .CommandText without wrapping it...
Forum: ASP.NET 3.5 Basics March 24th, 2009, 03:45 PM
Replies: 12
Views: 1,612
Posted By philip_cole
[:confused:] Doug, Please correct me if I'm...

[:confused:]
Doug,
Please correct me if I'm misunderstanding your last post, but why do repeaters necessarily have to have items on separate "rows"?


<%@ Page Language="C#" %>
<script...
Forum: ASP.NET 3.5 Basics March 24th, 2009, 05:39 AM
Replies: 12
Views: 1,612
Posted By philip_cole
You can do this as a repeater in a very similar...

You can do this as a repeater in a very similar to the allfashiongo site and is probably a good solution in this case.
They just have a containing div with a fixed width, then have each individual...
Forum: ASP.NET 3.5 Basics March 22nd, 2009, 03:33 PM
Replies: 9
Views: 1,372
Posted By philip_cole
Hi chobo I'm not sure why your first problem...

Hi chobo

I'm not sure why your first problem is happening - to be clear, is this when the customer has put confirmed the payment in Paypal and they are taken back to your site? If so, I would have...
Forum: MySQL March 22nd, 2009, 10:34 AM
Replies: 14
Views: 5,993
Posted By philip_cole
Hi Sabra You can download it here: ...

Hi Sabra
You can download it here:
http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi

Note that 2.2.11 is the latest stable version so it is recommended to...
Forum: Javascript March 19th, 2009, 01:09 PM
Replies: 2
Views: 925
Posted By philip_cole
You are probably meaning to use...

You are probably meaning to use document.getElementById (NO s!).
If that does not fix it, please post what error is being thrown, so we have a better chance of knowing how to fix it!

Thanks
Phil
Forum: ASP.NET 3.5 Basics March 16th, 2009, 07:51 PM
Replies: 8
Views: 1,049
Posted By philip_cole
Err right I think I see what you're looking for....

Err right I think I see what you're looking for. Do you want to have that layout for one news item, then the same for each of the other four beneath it? e.g.

You can put pretty much whatever HTML...
Forum: C# 2005 March 16th, 2009, 06:28 AM
Replies: 4
Views: 1,607
Posted By philip_cole
Post Generic List Find methods

Are you saying you want to create a generic Find method which lets you filter by any property in the object type? I had the same issue a few years back and created a couple of methods you can put in...
Forum: BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 March 15th, 2009, 04:02 PM
Replies: 1
Views: 3,638
Posted By philip_cole
Is your user data within the DEV01\JOEY database...

Is your user data within the DEV01\JOEY database specified in the ConnectionStrings section? If so you should change the membership provider to use connectionStringName="ConnectionString".
It...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 March 15th, 2009, 08:23 AM
Replies: 15
Views: 3,628
Posted By philip_cole
No problem. Sorry I can't be of more assistance....

No problem. Sorry I can't be of more assistance. Hopefully one of the Apache gurus will be of more use than my random Googlings.
Good luck with the book once you get this working!
Forum: ASP.NET 3.5 Basics March 15th, 2009, 07:51 AM
Replies: 4
Views: 2,815
Posted By philip_cole
DBNull does not implement the == and !=...

DBNull does not implement the == and != operators, although can use DBNull.Value.Equals(object). The preferred method is Convert.IsDBNull(object) as chobo used.

For strongly typed DataSets...
Forum: BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 March 14th, 2009, 01:58 PM
Replies: 15
Views: 3,628
Posted By philip_cole
Hi Jason, You say an error is occurring...

Hi Jason,
You say an error is occurring preventing Apache restarting. Do you have any actual error message or number available, or are you doing the restart and it's just doing nothing?
I'm by no...
Forum: Classic ASP Professional March 14th, 2009, 01:38 PM
Replies: 3
Views: 1,398
Posted By philip_cole
Use a Dictionary to show and retrieve values

Hi Ashok,
There isn't a way to get the text value they selected just by using Request.Form - you only ever get back the value part (you may be thinking of how ASP.NET allows you to use it, but that...
Forum: Classic ASP Basics March 12th, 2009, 09:19 AM
Replies: 1
Views: 1,102
Posted By philip_cole
Hi Matt, Here is a simple way to do it, just...

Hi Matt,

Here is a simple way to do it, just setting the pattern as the match string.


Function strCount(theStr, subStr)

Set re = New RegExp
re.Pattern = subStr
re.Global = True
Showing results 1 to 25 of 33

 


All times are GMT -4. The time now is 09:07 AM.


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