Monday 9 November 2015

Decoding First Program

Let's decode our program and get the meaning of some terms:

Tool Box : As name suggest it contains all the tools to create and display controls on webpage. For example if we want a button  in our web page, all we need to do is drag and drop button control from toolbar to web page. We can open toolbox either by go to VIEW and Select TOOL BOX or type keyboard shortcut CTRL+W,X .

Solution Explorer: It shows organised collection of projects and solution. A solution can contain more than one project.We can open solution explorer either by go to VIEW and Select SOLUTION EXPLORER or type keyboard shortcut CTRL+W,S .

Server Explorer: It is the server management console for Visual Studio. Use this window to open data connections and to log on to servers and explore their databases and system services.We can open server explorer either by go to VIEW and Select SERVER EXPLORER or type keyboard shortcut CTRL+W,L .

Properties Window: It changes property of a web form or control present on web form. For example if we want to change name on a button we go to TEXT property in PROPERTIES WINDOW and Change the text on button. We can open toolbox either by go to VIEW and Select PROPERTIES WINDOW or type keyboard shortcut CTRL+W,P .

Design, Split and Source Mode: Our web form can be viewed in three ways. We can view how our web form look in browser by switch to design view  or if we want to find the source we can select source value. Split is combination of both, so you can view Design and source at the same time. Visual Studio split the window into two parts. In one part it shows design and on other it shows source code. These are very useful when we want to change in our design means when we want to change in html of web form.

Page Directive: A web form  has a CODE BEHIND file and a DESIGNER file. Designer file has .aspx extension where as code behind file has .aspx.cs extension. In code behind file we have to write our code where as designer file contains auto generated code. Web form is associated with its code file using  @Page directive, which is present in html of web form.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Welcome.aspx.cs" Inherits="Welcome" %>





No comments:

Post a Comment