MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)
Authors: Kalani A. Kalani P.
Published year: 2005
Pages: 35-38/191
Buy this book on amazon.com >>

Need to Know More?

graphics/book.gif Albahari, Ben, Peter Drayton, and Brad Merrill. C# Essentials , Second Edition . Sebastopol, CA: O'Reilly, 2002.

graphics/book.gif Chappell, David. Understanding .NET . Reading, MA: Addison-Wesley, 2002.

graphics/www.gif Visit the Official Microsoft ASP.NET site at www.asp.net.

graphics/www.gif Visit the .NET Framework Community Web site at www.gotdotnet.com.

graphics/www.gif ECMA C# and CLI Standards Specifications, msdn.microsoft.com/net/ecma.

graphics/www.gif ASP.NET Roadmap, http://support.microsoft.com?scid=kb;EN-US;305140.

graphics/www.gif ASP.NET Page Framework Overview, http://support.microsoft.com?scid=kb;EN-US;305141.

graphics/www.gif ASP.NET Support Center, http://support.microsoft.com?scid=fh;en-us;aspnet.

graphics/www.gif The .NET Show, The .NET Framework, http://msdn.microsoft.com/theshow/Episode007.

graphics/www.gif The .NET Show, Programming in C#, http://msdn.microsoft.com/theshow/Episode008.

graphics/www.gif MSDN C# Seminars, http://msdn.microsoft.com/seminar/mmcfeed/mmcdisplayfeed.asp?Lang=en&Product=103363&Audience=100402.

graphics/www.gif MSDN Magazine's ".NET Column," http://msdn.microsoft.com/msdnmag/find/default.aspx?type=Ti&phrase=.NET Column .

Chapter 3. Controls

Terms you'll need to understand:

  • Cascading Style Sheets

  • Client-side event handling

  • HTML controls

  • HTML server controls

  • Server-side event handling

  • Validation controls

  • Web server controls

Techniques you'll need to master:

  • Knowing how to use the common HTML and Web forms controls available in the Visual Studio .NET toolbox

  • Understanding how to handle events for Web forms controls and getting comfortable with client-side and server-side event handling techniques

  • Understanding how to create controls dynamically

  • Working thoroughly with validation Web server controls and answering questions that ask you to choose the most appropriate validation control for a given scenario

  • Knowing how to create and apply Cascading Style Sheets for consistent formatting of Web pages

Controls are the building blocks of a GUI. In this chapter, you'll work with HTML controls, HTML server controls, Web server controls, and validation controls to create the user interface for a Web application. You will also learn about user controls, composite controls, and custom controls, which enable you to extend the existing controls to achieve custom functionality.

HTML Controls

HTML controls represent common HTML elements and are available through the HTML tab of the Visual Studio .NET toolbox. You can drag these controls to a Web form and set their properties in the Properties window. An HTML control, such as Text Field or Label , is converted to its appropriate HTML equivalent, such as the <INPUT> and <DIV> element, respectively, in the source code of the ASPX file. All the HTML controls are automatically placed inside an HTML <FORM> element.

HTML controls are only of little use in ASP.NET programs because they can't be accessed from the server-side code. ASP.NET provides two other sets of controls that are much better suited for server-side programming: HTML server controls and Web server controls.

HTML Server Controls

HTML server controls are similar to HTML controls with the added feature of server-side availability. You can convert any HTML control to run as an HTML server control by adding a runat ="server" attribute to its declaration. You can accomplish the same task visually by right-clicking an HTML control and selecting Run As Server Control from the shortcut menu.

MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)
Authors: Kalani A. Kalani P.
Published year: 2005
Pages: 35-38/191
Buy this book on amazon.com >>