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.

32<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>Drag object from Toolbox to code window.Figure 2-4 Dragging objects from the Toolbox to code window9. In the C# code window find the line that begins with:protected void Page_Load(object sender, EventArgs e)Insert a line after the curly brace ({) on line 16, and begin typing Label1 on line 17.When you begin typing Label1, a window appears as shown in Figure 2-6. This isthe IntelliSense window, which recognizes objects from the <strong>ASP</strong>.<strong>NET</strong> file. When youdragged the Label object to the stage, it was automatically given the ID of “Label1”in the <strong>ASP</strong>X code (see Figure 2-4). The IntelliSense feature recognizes all objects andinstances in the <strong>ASP</strong>X code and uses the existing form IDs to help create the necessarycode in the C# window. Use your arrow keys to highlight Label1 in the list, and pressENTER for the word to automatically appear in the code.

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

Saved successfully!

Ooh no, something went wrong!