13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

160<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>}TextBox1.Text = antony;}protected void Button1_Click(object sender, EventArgs e){Panel1.Visible = false;}protected void Button2_Click(object sender, EventArgs e){Panel1.Visible = true;}When you test the application, you will see all of the different display elements as shownin Figure 6-18.In looking at Figure 6-18, you may conclude that the displays of “Mark Antony” and“Red Label” are identical. They look it, but “Mark Antony” is a string within an tag making it appear bolder and the approximate size of “Red Label.” Both are red, butthe “Mark Antony” color and font (Arial) are controlled by the Panel property, while the“Red Label” color and font (Arial Black) are due to a CSS color designation.To see what happens when you change the Panel’s Visible property from true tofalse, test the application and click the Hide button. Figure 6-19 shows the same pagewhen the Panel’s visibility is negated.Figure 6-19 All web controls in the Panel are affected by its visibility state

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!