Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #31 (permalink)  
Old August 18th, 2010, 03:49 PM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #32 (permalink)  
Old August 19th, 2010, 01:50 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #33 (permalink)  
Old August 19th, 2010, 05:51 AM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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..
Reply With Quote
  #34 (permalink)  
Old August 19th, 2010, 06:52 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #35 (permalink)  
Old August 19th, 2010, 07:04 AM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Edit

Imar

Details edited as requested (sorry for inconvienience)

The site is working perfectly now so no need to resend.

Gerry
Reply With Quote
  #36 (permalink)  
Old August 19th, 2010, 07:32 AM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #37 (permalink)  
Old August 19th, 2010, 07:41 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Thank you.

Yes, that's a common port. I've corrected that for the 4.0 version of the book.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
how create menubar, menu, menu item in xsl vijayanmsc XSLT 1 June 5th, 2006 06:43 AM
Menu Help in statusbar at mousemove over Menu item Kaustav VB Components 1 September 14th, 2005 09:28 AM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM
Changing Menu made with VB 4 Menu Editor Zooker VB How-To 1 July 26th, 2003 11:44 PM



All times are GMT -4. The time now is 10:47 AM.


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