08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

52<br />

CHAPTER 3 ■ WEB FORMS WITH <strong>ASP</strong>.<strong>NET</strong><br />

<br />

WSG7LH03G2iHU=" /><br />

<br />

First Number &nbsp; &nbsp; &nbsp;&nbsp;<br />

<br />

Second Number&nbsp;<br />

<br />

<br />

<br />

Add<br />

<br />

Subtract<br />

<br />

<br />

<br />

<br />

<br />

The Result is:<br />

13<br />

<br />

<br />

<br />

<br />

<br />

<br />

Using <strong>ASP</strong>.<strong>NET</strong> Events <strong>and</strong> Automatic Postbacks<br />

Having access to the control view state means that your server-side code isn’t limited to<br />

getting <strong>and</strong> setting properties—it can also respond to events within the controls. Remember,<br />

as the code is running on the client, <strong>and</strong> since the client is constrained to the

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

Saved successfully!

Ooh no, something went wrong!