View Single Post
Old January 27th, 2014, 02:55 PM
Imar's Avatar
Imar Imar is offline
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

>> 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.

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.


Imar Spaanjaars
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!