Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars

Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars

Author:Imar Spaanjaars
Language: eng
Format: epub, pdf
Publisher: John Wiley & Sons
Published: 2012-10-26T16:00:00+00:00


VB.NET

Message.Visible = True MessageSentPara.Visible = True FormTable.Visible = False

C#

Message.Visible = true; MessageSentPara.Visible = true; FormTable.Visible = false;

7. Save all your changes and close the user control because you're done with it.

8. Open the Monochrome.css file from its theme folder and add the following CSS declaration to the bottom of the file:

.Attention { border: 4px solid red; padding: 10px 0; width: 100px; margin: auto; display: block; text-align: center; }

9. Copy the same declaration to the DarkGrey theme's CSS file.

10. Save your changes and then request the Planet Wrox site in your browser. Choose the Contact Us item (under About) from the Menu or TreeView control, fill in the form, and click Send. Notice how shortly after clicking the button the form slides up slowly until it completely disappears. Figure 11.6 shows the form halfway during the slideUp operation.

11. Once the page is done loading, the Message Sent label and the thank you text appear. Notice how the label first grows in size to span the full content width, then shrinks again and finally disappears completely. Figure 11.7 shows the message while it's being resized. If you don't see this animation appear, press Ctrl+F5 or Ctrl+R to get a fresh copy of the CSS file from the server and then fill in the contact form again.

Figure 11.6



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.