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

August 18th, 2010, 03:49 PM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Menu
PS I chose the cheesy instant fix 3.5 compatibility.... not the best choice but as i am half way through the book i'll peresevere...
The small addition to the web confic did the trick.... and now I have learned somthing about the differences.
Cheers
|
|

August 19th, 2010, 01:50 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Did you send the e-mail to the Wrox account? That doesn't work. It accidentally worked last time but it's not the official way to send me e-mail. I replied to your personal message so hopefully you now know my real e-mail address.
Also, take a look at this:
if (txtPhoneHome.Value != '' || txtPhoneBusiness != '')
Two mistakes here. First value is not with a capital. it should be txtPhoneHome.value instead. Secondly, consider this:
txtPhoneBusiness != ''
You're comparing the entire text box with an empty string. The two will never be the same, and thus validation always succeeds. back at the server, the proper validation rules are applied and thus you only get the error aftert a postback. Add .value and it should work.
Cheers,
Imar
|
|

August 19th, 2010, 05:51 AM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Error validation code
Imar
Thanks for casting your keen eye over the code. My fault for not paying attention to detail when typing Jscript. The function works perfecty now.
if (txtPhoneHome.value != '' || txtPhoneBusiness.value != '')
I am so used to writing VB where the dot parameter dos'nt always have to be used in references. Sloppy on my part. Thanks again for your expertise.
Regards
Gerry
Last edited by HarryBatt; August 19th, 2010 at 07:02 AM..
|
|

August 19th, 2010, 06:52 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Gerry,
Never received anything on my own e-mail address; only the one from Wrox....
Can you please edit your previous message and remove my e-mail address? I am getting enough spam and junk already. That's the reason I didn't post it in the first place....
Thanks,
Imar
|
|

August 19th, 2010, 07:04 AM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Edit
Imar
Details edited as requested (sorry for inconvienience)
The site is working perfectly now so no need to resend.
Gerry
|
|

August 19th, 2010, 07:32 AM
|
|
Authorized User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Imar
Just a small note on the web.config file with email settings. The debug advice in the book was good but I had to also add the outgoing port, in my case "587". just a minor detail but many providers use alternate ports.
<network host="mail.mydomain.co.uk" userName="myname@mydomain" password="password" port="587" />
Gerry
|
|

August 19th, 2010, 07:41 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Thank you.
Yes, that's a common port. I've corrected that for the 4.0 version of the book.
Cheers,
Imar
|
|
 |