Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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
  #1 (permalink)  
Old January 27th, 2014, 12:27 PM
Authorized User
Points: 416, Level: 7
Points: 416, Level: 7 Points: 416, Level: 7 Points: 416, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
Default Ch 9 - submitting the email

Hi Imar,

I successfully finished Ch 9 and was able to transmit the email just as your text guided. Terrific! Thanks.

One thing I didn't see in the book, and maybe I missed it, but the Contact Us form disappears after 'Send' is clicked. The "Message Sent" Label is displayed, but it is right up next to the breadcrumb trail. I presume I can simply add some <br /> elements to move the "Message Sent" Label down, but what would be the best or recommended way to keep the form and its content visible. I think there's a lot of options. Or, maybe it's not recommended to do that?

Onward to Ajax...

Thanks.

Best Regards,
Alan
  #2 (permalink)  
Old January 27th, 2014, 12:39 PM
Authorized User
Points: 416, Level: 7
Points: 416, Level: 7 Points: 416, Level: 7 Points: 416, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
Default Got the form to display but should I or not

Hi,

Sorry for the short-sighted question. I changed the last line in the VB code for the "Send" button click to be FormTable.Visible = True and the form is there. I had copied that code from your files and read every line except that one.

But that still begs the question, is there a reason you suggested .Visible False?

Thanks.

Best Regards,
Alan
  #3 (permalink)  
Old January 27th, 2014, 02:55 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> But that still begs the question, is there a reason you suggested .Visible False?

Yes, you typically want to hide the form after a successful postback because a) this will help the user understand the form was submitted successfully, and b) it prevents them from (accidentally or deliberately) submit the form multiple times. If you need to keep the form visible just don't change it's Visible property as it's visible by default.

Quote:
I presume I can simply add some <br /> elements to move the "Message Sent" Label down,
Yes, that would work, or you can put it in a <div> which causes it to flow to the next line automatically.

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!


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 9-Sending Email-Encrytping web.config btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 3 August 28th, 2010 04:37 PM
Email configuration Ch 9 p309 Alanrf BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 February 5th, 2010 12:38 PM
Ch. 11 Email setup question amenne20 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 October 1st, 2006 04:04 PM
Ch. 11 Email setup question amenne20 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 1st, 2006 04:03 PM
Unable to implement EMail as per Ch. 15 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 February 28th, 2006 01:47 PM





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