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

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

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

Chapter 8: Control Events and Event Handlers 207Figure 8-5 Adding CommandArgument to source3. In the each of the button tags, add a CommandName and a CommandValue stringvalue. Figure 8-5 shows both the IntelliSense context menu with the two <strong>com</strong>mandproperties and the Design view of the buttons.4. Add a Label web control, and position it to the right of the middle button.5. To <strong>com</strong>plete the <strong>ASP</strong>.<strong>NET</strong> portion of the application, add the following source code:<strong>ASP</strong>.<strong>NET</strong> BtnEvents.aspxOnCommand with Buttons

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

Saved successfully!

Ooh no, something went wrong!