Pages

lokesh

...

HOW TO HAKE FACE BOOK ID


I  AM LOKESH SAINI WE WILL LEARN HOW TO HACKE ID
Easy Method To Hack Facebook Account
Hey Guys, This Is Awesome Tutorial Written By Me And Note That This Is Not Any Type Of Fake Methods, This Is Real And Worked Method To Hack Facebook In Just Couple Of Minutes, In This Trick You Just Need Three Friends In Victim's Account. If You Have This Then You Can Easily Hake Your Victim's Account.
Facebook Is A Largest Community In This World, There Are Billions Of Accounts In Facebook Community And There Are Lack Or Accounts Increase Day By Day, All People Talking And Sharing Their Personal Things In Facebook, That's Why This Facebook HACKING In Born. , M I Right ??
Facebook Have Many Vulnerability To Hack Any Account But It Is Not Easy To Hack Facebook Account, Mostly Facebook Have Vulnerability In Their Applications So People Mostly Hack Facebook Using This Vulnerabilities And There Are Many Other Methods To Hack Facebook Account Like Key loggers , Phishing, Forget Password Trick, And Many More. In This Methods Most Of All Peoples Use Phishing Method To Hack Facebook Account But Now We Are Going To Hack Facebook Account With 3 Friends Method Which Is Very Easy,
Here Below All Steps To Hack Facebook With Easy Method,
Step 1 :- Go To Any Browser And Open "Facebook.com" And Click On Forget Password Without Writing Anything.
Step 2 :- In Next Window You Have To Enter Victim's Email Id Or Phone Number. Then Click On "Search".
Step 3 :- Then You Will See One Window Like Below, In This Click On "This Is My Account".
Step 4 :- In This Next Step They Will Ask To Reset Password With Many Methods Like Victim's Gmail, Yahoo Mail Address Or Victims' Phone Number And ETC But Don't Worries We Don't Need This Information In This Step Just Click On "No longer have access to these ?".
Step 5 :- Awww. . . Now It's Main Thing, If You Will Be Asked To Fill New Email Address, Where You Want To Receive Password Link, So You Have One Email Account, Just Make One Fake Account [Note:- Don't Register This Email Id In Facebook]. So Enter Email Address And Click On "Submit".
Step 6 :- This Is Second Level Of Facebook Security Which Called As A "Security Question", Here Facebook Have Vulnerability, You Just Have To Write Wrong Answer Three Times, Then You Will Bypass This Security.
Step 7 :- In This Steps You Can Get Back To Your Facebook Account With Three Friends, So You Can See One Window Below, Click On "Continue".
Step 8 :- After Click On "Continue" You Will Be Asked For Choose Three Friends One By One. After Select Click On "Submit".
Step 9 :- Now Facebook Will Send Secret Code To This Three Friends, So Collect This Code And Click On "Password Reset Link" Which You Got In Email.
That's All. . .
There Are Some Problem You Have To Face With This Method Which Are Below,
In Step 4 When You Click On "No longer have access to these ?", If Victim Has't Set Any Security Questions, Then You Can't Get Second Step, But You Will Be Ask For Real Email Id, Check Out This.
After Clicking "I cannot Access My Email". You Will Be See One Window Like Below,
Under This Type Of Situation Choose Different Method To Hack Facebook Or Choose Another Victim


what is computer


Introduction of computer = computer word taken from LATIN language.
the computer comes from the word “compute “ which mean calculation.
Computer is a electronic system it is a perform the mathematic operation.
but present computer use in human daily life. and modern time computer
made wonderful Machines.
COMPUTER
C= COMPUTE/CALCLUATION
O = OPERATING\OPERTOR
M=MACHINE
P=PROCESSING
U=UNIT
T=TASKS/trader
E=ELECTRONIC
R=RESULT [OUTPUT]
Definition of computer = computer is a electronic device /machine which
are perform the three basic tasks input and processing , output is known
computer
INPUT PROCESSING OUTPUT
L.K.SAINI [0,1] L.K.SAINI
What is data?
DATA=it is a collection of information is called . [input]
Example we input the “A” from the keyboard.
What is information?
Information = the process of data is called the information [output]
We are chatting with our friends on line from the internet, and send the
EMAIL our relation


What is operating system.?

AS all of now that  computer consists two part  H/W and S/W. so  I start computer operating system
A operating system is a large collection  of software and hardware, Which is control  all the Resource
such as a file memory hard disk  and I/O device is called operating system.
Examples :-Window xp, window 7,8,8.1,8.2 and window 10 etc.

What is software ?
 a set of instruction  program is called software another words we can say that A software is Internal
part of computer system we  can see feel , but can not touch is known as software.

What is hardware.?
A hardware is External and physical part of computer where  we can see, feel and touch is called H/W

Operational part of [ unit] computer
A.L.U. [ARITHMETIC LOGICAL UNIT ]
C.U. [CONTROL UNIT ]
C.P.U.[CENTROL PROCESSING UNIT ]
A.L.U. = the A.L.U. is a important component of the c. p. u. it is a actual
execution of the instruction .it is perform the all the arithmetic operation
after entering the data through the input device it is stored the data primary
memory ,Then processing of data and instruction are performed by
arithmetic logical unit the major operation performed by the A.L.U. are
addition, subtractions, multiplication, division, logical comparison etc.
Operator meaning example answer
+ addition 8+5 13
* multiplication 8*5 40
- subtraction 8-5 3
/ division 10/2 5
CONTORL UNIT = the next component of control unit which act
supervisor. the control unit determine the sequence in which computer
program and instruction are executed. Things like processing of program
stored in the main Memory.
CENTRAL PROCESSING UNIT = the ALU and C.U. are jointly known as the
central processing unit. it is also called brain of computer. It is just like
brain that takes All major decision and make all sort of calculation and
directs different parts of Computer function by activating and controlling
the operation.
HOW COMPUTER WORK ?
Input
Storage
Processing
output
INPUT = This is process of entering of data and program into the computer
system. since a compute is electronic Machine like any other machine which
takes as input raw data and perform some processing giving out processed
data.
Storage =the process of saving of data and instruction permanently is know as
storage. data fed into computer System before the actual processing starts. It
is because The central processing unit.
PROCESSING = the tasks performing like arithmetic and logical operation is
called processing. the c p u or central processing unit and take the data
instruction from storage unit and make all sort calculation.
OUTPUT = this is processing of result from data getting Useful information.
Output device display information On the screen[monitor] or the printer and
send the information other computer.
HOW COMPUTER CONNECT FROM YOUR PERSONAL COMPTER / SYSTEM UNIT.
1. PORT AND CONNECTOR
2. POWER SUPPLY AND
3. MOTHER BORD
Port and connector: port is a connector located on the motherboard or on
a separate adapter. Port and Connector allow the computer to communicate
with Different and peripherals attached with it.
Power supply: power supply change normal household a Electricity that a
computer can use. A power supply unit (psu) is a internal component used to
supply the power to the components of a computer.
Motherboard :the mother is a main board of the circuit board of the a
microcomputer. It is also known as the main board or system. it the circuit
board in which all
COMCEPUTER GENERATION The evolution of computer started from 16th century and resulted in today ’s
modern machines. The present computer, however, has also undergone Rapid change over the year this period,
during which the evolution of the computer took place, can be divided into five distinct phase know as generation
of computer.
1 First Generation Computer(1940-1956)
2. second Generation Computer(1956-1963)
3. third Generation Computer(1964-1971)
4. fourth Generation Computer(1971- Present)
5. Fifth Generation Computer(Present and Beyond)
1. First Generation Computer (1940-1956) are characterized by the use of the tube. A vacuum tube. For internal
memory. It’s programming was very hard. These vacuum Tubes were used for the calculation as well as storage
and control the first general Purpose programmable electronic computer was the Electronic Numerical
integrator and Computer ( ENIAC) built by J. PRESPER ECTER And John. V. MAUCHLY at the University of
Pennsylvania. The ENIAC was 30-50 Feet long, weighed 30 tons, contained 18,000 vacuum tube,70,000
Register,10,000 capacitors and Required 150,000 watts of Electricity. Before ENIAC WAS Finished, von Neumann
designed the Electronic Discrete variable Automatic Computer(EDVAC) with a memory hold both a stored
program as data. ECKER and MAUCHLY later developed what was arguably the first commercially successful
computer, The Universal Automatic computer(UNICVAC) in 1952.
Examples: ENIAC,EDVAC,UNICVAC.
Second Generation Computer (1956-1963) Second generation are characterized by the use of transistors
(transistors and Diodes) and magnetic core storage formed basis the for the second generation computer.
transistor is device composed. of the semiconductor material, That Amplifies a single or open closes a circuits.
invented in Bell Labs, transistors have become The Key ingredient of all Digital circuits, including Computers.
Transistor replaced The bulky electronic tubes in the first Generation. They also allowed computer to become To
smaller and more powerful and faster at the same Time. They are also Less expensive, Required less electricity
and emitted less heat than vacuum tubes. Manufacturing cost was Also very Low.
It is a second generation computer that the concept of the central processing unit (CPU), memory, Programming
language and input and output unit are developed second generation computer moved from cryptic binary
machine language to symbolic.
Example PDP-8,IBMI1400 Series, IBM 1620 ,IBM7090,CDC3600.
Third Generation Computer(1964-1971) third generation are characterized by the use of the integrated the third
generation computer introduce in 1964.transistors were miniaturized And placed on silicon chips, called
Semiconductors, which drastically increased the speed And efficiency of computer they used INTGRTED Circuit
(ICs).the development of ICs proved To milestone in the field of computer and electronics. These ICs are popularly
know as chips.
Silicon is the basic material used to make computer chips. Transistors, silicon diodes and Other electronic circuit
and Switching devices because its atomic structure makes the Element an ideal Semiconductors. Silicon is
commonly doped or mixed, with other element Such as boron ,phosphorous and arsenic, to alter its conductive
properties A Typical chips Less than ¼-square inches and can contain million of the electronic components
(transistors).computer consist of the many chips placed on the electronic Boards Called Circuit Boards. There are
Different types of chips. for example , CPU Chips also called microprocessors contain the an the entire processing
unit, whereas memory chips contain Blank memory.
A single IC, has many transistors, register and capacitors built on the SINGLE thin slice of Silicon. Development in
ICs rages from small scale integration(SSI) To medium scale integration(MSI). Multilayered printed circuit were
developed and core memory was Replace by faster, solid sates memories. computer this generation were small
size, low cost, large Memory and processing speed very high. higher level language(c, c++, java)etc. such as BASIC
(Beginners all purpose symbolic instruction code) was during this period. The development of mini computer also
took place during this generation.
Examples. NCR 395,B 6500,IBM360,370
Fourth Generation Computer(1971- Present) Fourth Generation are characterized by the use of the
microprocessor. the fourth generation computer started around 1971by using large scale of the integration
(LSI)IN The construction of the computing elements.LSI circuits built on a single Silicon chip called
microprocessor. A microprocessor contains required to perform arithmetic logic and control function On the
single chip. Because of microprocessor ,the forth generation computer includes more than data processing
Capacity than equivalent-size third Generation computer. due of the development of microprocessor it is possible
To place computer central processing unit(CPU) on single chip. These computer are called microprocessors. Later
very large scale Integrated (VLSI)Circuits replaced LSI Circuits.
The major innovation in this generation were the development of microelectronics and the different areas in
Computer technology such as multiprocessing ,multiprogramming ,time sharing, operating speed virtual storage.
During this period ,high speed vector processor changed the scenario of high performance computing .mostly
Microcomputer and work station were introduce for the time shared mainframe computer. Thus the computer
Which was occupying a very large room in earlier days can now be placed on a table. The personal computer Is
fourth generation computer. IT is the period when evolution of computer network also took place
Examples. Apple II, Alter 8800
5. Fifth Generation Computer (Present and Beyond) the fifth generation computer characterized by the use
Based on Artificial Intelligence ,are still in development ,though are some application ,such voice recognition,
that Are being used today. ARIFICIAL Intelligence is a branch of computer science concerned with making
Computer behave likes humans and allow the computer to take its own decision . currently, no computer exhibit
Full artificial intelligence(that is are able to simulate human behavior ). The greatest advantage have occurred
In the field of games playing. The best computer chess programs are now capable of beating humans. Today the
Hottest area of artificial intelligence is neural network . which are provides successful in an umber of discipline
Such as voice recognition and natural language processing. there are several programming language that are
Know as AI language because they are used almost exclusively for Ai application .the two most common are LISP
And prolog .the speed extremely high in fifth generation computer in development of fifth generation computer
,Parallelism processing attended the main focus of developer this generation introduce machines with hundreds
Of processors that could all be working different parts of single program . development of more powerful
computer are still in progress. It h has been predicated will be able to communicate in natural spoken language
With it’s user, store vast knowledge database ,search rapidly through these database ,making intelligent
interface drawing logical conclusions, image processing and see objects in the way that human do.
Table 1.1 show the comparative features of five generation of computer
1.1 table features of five generation of computer
Criteria First
Generation
Computer
Second
Generation
Computer
Third
Generation
Computer
Fourth
Generation
Computer
Fifth
Generation
Computer
Technology Vacuum tube Transistor Integrated Microprocessor Artificial
Intelligent
Speed Slowest Slow Medium Faster Fastest
Size Largest Large Medium Smaller Smallest
Reliability Unreliable Less reliable More reliable More reliable More reliable
Operating
System
None None Yes Yes Yes
Language Machine Assembly High level High level High level
Period 1940-156 1956-1963 1964- 1971 1971 present Present and
Beyond
Computer system
Each computer consists of a series of device that together operate as an integrated unit or computer system
The processor is mode up of the memory ,arithmetic, logic and control units. A large computer system will
normally have one or more auxiliary units ,where input and output data are stored. A brief description of
computer system is given here .
How computer work ?
1 INPUT
2 STORAGE
3 PROCESSING
4 OUTPUT
Input : This is process of entering of data and program in the computer system. since computer is electronic
device /machine like other machine which take input raw data and perform same processing given out
processed data, the input unit take data from user to the computer in an organized manner processing.
Information and programs are entered into the computer through input device such as the keyboard, disk, Or
through other computer via network connection or modems connected to the internet.
Storage : the process of saving data and instructions permanently is know as storage. Data has to be fed into
the system before the actual processing started. It is because the processing speed of central processing
unit.(CPU) is so fast that the data has to be provided to CPU with the same speed. Therefore the data is first
Storage unit for faster access and processing. This storage unit or the primary storage of the computer system
Is designed to do the above functionallty. It provides space for storing data and instruction.
The storage unit performs the following major functions.
All data and instruction are stored here before and the after processing.
Intermediate result of processing are also stored here.
Input unit storage unit out put unit
Control unit
Central
Processing unit
Arithmetic logic unit
Basic computer operation
The components are connect through cable within a personal computer.
Many device are connect with motherboard directly or indirect.
Operating system.
Unix.
Linux.
Window xp.
basic Unix elements
command,
file
Directories
Environment
Process
Job.
command a command are the instruction we give to the system to
information it what it is do.
Files are collection of data. A file is similar to a container in which we can store
documents or raw facts and figures, which is store in directories.
Directories is a similar to a file basket that contain many files. a directory can
Also contain other directory
Environment it a collection of different items that explain the modify how your
Computing session will be carried out.
Process is a command or application running on the computer
Job is the sequence of the instruction give to computer from the time to initiate
A particular tasks. Job may have one or more processes in it.
What is the software?
The group of instruction is called program. And known as software
It is a internal part of computer system. we can’t touch only we can see is
known software. e.g. M.s. word, business application, Gmail another type
software.
What is the hardware.
It is a external part of computer system. we can touch and we can see
hardware is known hardware.
Keyboard, mouse , monitor, etc.
Memory are various types
Bit = it a small unit (binary number system 0,1).
Nibble four bit groups called nibble
1nibble = 4 bit
Bytes = it is group of eight bit is known bytes normally one charter(number
/latter)represent the one bit
1 bit = 8 bit
Kilobit-kb 1024 byte is ‘s 1 kilobit called
1 kilobit = 1024 byte
Megabyte-MB 1024 kilobyte ‘s 1megabyte called
Gigabyte –GB 1024 megabyte ‘s 1 gigabyte called
=1024*1024 kilobyte
=1024*1024*1024 byte
Terabyte –TB 1024 gigabyte called 1 terabyte
1 terabyte =1024gegabyte
1024*1024 megabyte
1024*1024 *1024kilobyte
1024*1024*1024*1024 by.

RAJTHAN TECHNICAL UNIVERSITY RESULT B.TEC.

RAJSTHAN TECHNICAL UNIVERSITY RESULT B.TECH. CLICK HEREhttp://www.rtuexam.net/

HOW TO DESIGN A WEB SIT

 free webCreating a Basic Web Page in Visual Studio

.NET Framework 4
this is websit is nice and how to design  basic web sit  This walkthrough guides you through creating a simple ASP.NET Web page and illustrates the basic techniques of creating a new page, adding controls, and writing code.











This walkthrough provides you with an introduction to the Web development environment in Microsoft Visual Studio 2010 and in Microsoft Visual Web Developer Express.
Tasks illustrated in this walkthrough include:
  • Creating a file system Web site project.
  • Familiarizing yourself with Visual Studio.
  • Creating a single-file ASP.NET page.
  • Adding controls.
  • Adding event handlers.
  • Running pages by using the Web server that is built into Visual Studio for testing.
In order to complete this walkthrough, you will need:
  • Microsoft Visual Studio 2010 or Microsoft Visual Web Developer Express. For download information, see the Visual Studio Development Center Web site.
    NoteNote
    If you are using Microsoft Visual Studio 2010, this walkthrough assumes that you selected the Web Development collection of settings the first time that you started Microsoft Visual Studio 2010. For more information, see How to: Select Web Development Environment Settings.
  • The .NET Framework, which is installed when you install Microsoft Visual Studio 2010 or Microsoft Visual Web Developer Express.
In this part of the walkthrough, you will create a Web site project and add a new page to it. You will also add HTML text and run the page in your Web browser.
For this walkthrough, you will create a file system Web site project that does not require that you work with Microsoft Internet Information Services (IIS). Instead, you will create and run your page in the local file system.
A file system Web site project is one that stores pages and other files in a folder that you choose somewhere on your computer. Other Web project options include the following:
  • local IIS Web site project, which stores your files in a subfolder of the local IIS root (typically, \inetpub\wwwroot\).
  • An FTP site project, which stores files on a remote server that you gain access to across the Internet by using File Transfer Protocol (FTP).
  • remote IIS Web site project, which stores files on a remote server that you can access across a local network.
  • A Web application project, which is similar to a file system Web site project except you compile it before deployment and deploy it as a dynamic link library (.dll) file. For more information about the difference between Web site projects and Web application projects, see Web Application Projects versus Web Site Projects.

To create a file system Web site

  1. Open Microsoft Visual Studio 2010 or Microsoft Visual Web Developer Express.
  2. On the File menu, click New Web Site.
    The New Web Site dialog box appears, as shown in the following illustration:
    New Web Site dialog box
  3. Under Installed Templates, click Visual Basic or C# and then select ASP.NET Web Site.
    When you create a Web site project, you specify a template. Each template creates a Web project that contains different files and folders. In this walkthrough, you are creating a Web site based on the ASP.NET Web Site template, which creates files and folders that are typically used in ASP.NET Web sites.
  4. In the Web Location box, select File System, and then enter the name of the folder where you want to keep the pages of your Web site.
    For example, type the folder name C:\BasicWebSite.
  5. Click OK.
    Visual Studio creates a Web project that includes prebuilt functionality for layout (a master page, the Default.aspx and About.aspx content pages, and a cascading style sheet), for Ajax (client script files), and for authentication (ASP.NET membership). When a new page is created, by default Visual Studio displays the page in Source view, where you can see the page's HTML elements. The following illustration shows what you would see in Source view if you created a new Web page named FirstWebPage.aspx.
    Default page in Source view

A Tour of the Visual Studio Web Development Environment

Before you proceed with working on the page, it is useful to familiarize yourself with the Visual Studio development environment. The following illustration shows you the windows and tools that are available in Visual Studio and Microsoft Visual Web Developer Express.
NoteNote
This diagram shows default windows and window locations. The View menu allows you to display additional windows, and to rearrange and resize windows to suit your preferences. If changes have already been made to the window arrangement, what you see will not match the illustration.
The Visual Studio environment

Schematic of IDE windows and tools

To familiarize yourself with the Web designer

  • Examine the preceding illustration and match the text to the following list, which describes the most commonly used windows and tools. (Not all windows and tools that you see are listed here, only those marked in the preceding illustration.)
    • Toolbars. Provide commands for formatting text, finding text, and so on. Some toolbars are available only when you are working in Design view.
    • Solution Explorer window. Displays the files and folders in your Web site.
    • Document window. Displays the documents you are working on in tabbed windows. You can switch between documents by clicking tabs.
    • Properties window. Allows you to change settings for the page, HTML elements, controls, and other objects.
    • View tabs. Present you with different views of the same document. Design view is a near-WYSIWYG editing surface. Source view is the HTML editor for the page. Splitview displays both the Design view and the Source view for the document. You will work with the Design and Source views later in this walkthrough. If you prefer to open Web pages in Design view, on the Tools menu, click Options, select the HTML Designer node, and change the Start Pages In option.
    • ToolBox. Provides controls and HTML elements that you can drag onto your page.Toolbox elements are grouped by common function.
    • Server Explorer/Database Explorer. Displays database connections. If Server Explorer is not visible, on the View menu, click Server Explorer or Database Explorer.
      NoteNote
      The Server Explorer window is named Database Explorer in Microsoft Visual Web Developer Express. To see all available menu items in Microsoft Visual Web Developer Express, on the Tools menu, click Settings, and then click Expert Settings.

Creating a New ASP.NET Web Forms Page

When you create a new Web site using the ASP.NET Web Site project template, Visual Studio adds an ASP.NET page (Web Forms page) named Default.aspx. You can use the Default.aspx page as the home page for your Web site. However, for this walkthrough, you will create and work with a new page.

To add a page to the Web site

  1. Close the Default.aspx page. To do this, right-click the tab that displays the file name and then click Close.
  2. In Solution Explorer, right-click the Web site (for example, C:\BasicWebSite), and then click Add New Item.
    The Add New Item dialog box is displayed. The following illustration shows an example of theAdd New Item dialog box.
    Add New Item dialog box
  3. In the template list, select Web Form.
  4. In the Name box, type FirstWebPage.
    When you created the Web site project, you specified a default language based on the project template that you selected. However, each time you create a new page or component for your Web site, you can select the programming language for that page or component. You can use different programming languages in the same Web site.
  5. Clear the Place code in separate file check box.
    In this walkthrough, you are creating a single-file page with the code and HTML in the same page. The code for ASP.NET pages can be located either in the page or in a separate class file.
  6. Click Add.
    Visual Studio creates the new page and opens it.

Adding HTML to the Page

In this part of the walkthrough, you will add some static text to the page.

To add text to the page

  1. At the bottom of the document window, click the Design tab to switch to Design view.
    Design view displays the page that you are working on in a WYSIWYG-like way. At this point, you do not have any text or controls on the page, so the page is blank except for a dashed line that outlines a rectangle. This rectangle represents a div element on the page.
  2. Click inside the rectangle that is outlined by a dashed line.
  3. Type Welcome to Visual Web Developer and press ENTER twice.
    The following illustration shows the text you typed in Design view.
    Welcome text in Design view
  4. Switch to Source view.
    You can see the HTML that you created by typing in Design view, as shown in the following illustration.
    Welcome text in Source view

Running the Page

Before you proceed with adding controls to the page, you can try running it. To run a page, you need a Web server. In a production Web site, you use IIS as your Web server. However, to test a page, you can use the Visual Studio Development Server, which runs locally and does not require IIS. For file system Web site projects, the default Web server in Visual Studio and Microsoft Visual Web Developer Express is the Visual Studio Development Server.

To run the page

  1. In Solution Explorer, right-click FirstWebPage.aspx and select Set as Start Page.
  2. Press CTRL+F5 to run the page.
    Visual Studio starts the Visual Studio Development Server. An icon appears in the Windows taskbar to indicate that the Visual Studio Development Server is running, as shown in the following illustration.
    Development Web Server icon
    The page is displayed in the browser. Although the page you created has a file-name extension of .aspx, it currently runs like any HTML page.
    To display a page in the browser you can also right-click the page in Solution Explorer and select View in Browser.
  3. Close the browser.
You will now add server controls to the page. Server controls, which include buttons, labels, text boxes, and other familiar controls, provide typical form-processing capabilities for your ASP.NET Web pages. However, you can program the controls with code that runs on the server, not the client.
You will add a Button control, a TextBox control, and a Label control to the page and write code to handle the Click event for the Button control.

To add controls to the page

  1. Click the Design tab to switch to Design view.
  2. Put the insertion point at the end of the Welcome to Visual Web Developer text and press ENTER five or more times to make some room in the div element box.
  3. In the Toolbox, expand the Standard group.
  4. Drag a TextBox control onto the page and drop it in the middle of the div element box that has Welcome to Visual Web Developer in the first line.
  5. Drag a Button control onto the page and drop it to the right of the TextBox control.
  6. Drag a Label control onto the page and drop it on a separate line below the Button control.
  7. Put the insertion point above the TextBox control, and then type Enter your name:.
    This static HTML text is the caption for the TextBox control. You can mix static HTML and server controls on the same page. The following illustration shows how the three controls appear in Design view.
    Three controls in Design view

Setting Control Properties

Visual Studio offers you various ways to set the properties of controls on the page. In this part of the walkthrough, you will set properties in both Design view and Source view.

To set control properties

  1. Select the Button control, and then in the Properties window, set Text to Display Name. The text you entered appears on the button in the designer, as shown in the following illustration.
    NoteNote
    If the Properties window is not displayed, press F4 to display it.
    Set Button text
  2. Switch to Source view.
    Source view displays the HTML for the page, including the elements that Visual Studio has created for the server controls. Controls are declared using HTML-like syntax, except that the tags use the prefix asp: and include the attribute runat="server".
    Control properties are declared as attributes. For example, when you set the Text property for the Button control, in step 1, you were actually setting the Text attribute in the control's markup.
    Note that all the controls are inside a form element, which also has the attributerunat="server". The runat="server" attribute and the asp: prefix for control tags mark the controls so that they are processed by ASP.NET on the server when the page runs. Code outside of <form runat="server"> and <script runat="server"> elements is sent unchanged to the browser, which is why the ASP.NET code must be inside an element whose opening tag contains the runat="server" attribute.
  3. Put the insertion point after asp:Label in the <asp:Label> tag, and then press SPACEBAR.
    A drop-down list appears that displays the list of properties you can set for a Label control. This feature, referred to as IntelliSense, helps you in Source view with the syntax of server controls, HTML elements, and other items on the page. The following illustration shows the IntelliSense drop-down list for the Label control.
    IntelliSense attributes
  4. Select ForeColor and then type an equal sign and a quotation mark (=").
    IntelliSense displays a list of colors.
    NoteNote
    You can display an IntelliSense drop-down list at any time by pressing CTRL+J.
  5. Select a color for the Label control's text. Make sure you select a color that is dark enough to read against a white background.
    The ForeColor attribute is completed with the color that you have selected, including the closing quotation mark.

Programming the Button Control

For this walkthrough, you will write code that reads the name that the user enters into the text box and then displays the name in the Label control.

To add a default button event handler

  1. Switch to Design view.
  2. Double-click the Button control.
    Visual Studio switches to Source view and creates a skeleton event handler for the Buttoncontrol's default event, the Click event.
    NoteNote
    Double-clicking a control in Design view is just one of several ways you can create event handlers.
  3. Inside the handler, type Label1 followed by a period (.).
    When you type the period after Label, Visual Studio displays a list of available members for the Label control, as shown in the following illustration.
    IntelliSense in Code view
  4. Finish the Click event handler for the button so that it reads as shown in the following code example.
    protected void Button1_Click(object sender, System.EventArgs e)
    {    
        Label1.Text = TextBox1.Text + ", welcome to Visual Studio!";
    }
    
  5. Scroll down to the <asp:Button> element. Note that the <asp:Button> element now has the attribute onclick="Button1_Click".
    This attribute binds the button's Click event to the handler method you coded in the previous step.
    Event handler methods can have any name; the name you see is the default name created by Visual Studio. The important point is that the name used for the onclick attribute must match the name of a method in the page.

Running the Page

You can now test the server controls on the page.

To run the page

  1. Press CTRL+F5 to run the page in the browser.
    The page again runs using the Visual Studio Development Server.
  2. Enter a name into the text box and click the button.
    The name you entered is displayed in the Label control. Note that when you click the button, the page is posted to the Web server. ASP.NET then recreates the page, runs your code (in this case, the Button control's Click event handler runs), and then sends the new page to the browser. If you watch the status bar in the browser, you can see that the page is making a round trip to the Web server each time you click the button.
  3. In the browser, view the source of the page you are running.
    In the page source code, you see only ordinary HTML; you do not see the <asp:> elements that you were working with in Source view. When the page runs, ASP.NET processes the server controls and renders HTML elements to the page that perform the functions that represent the control. For example, the <asp:Button> control is rendered as the HTML<input type="submit"> element.
  4. Close the browser.
In this part of the walkthrough, you will work with the Calendar control, which displays dates a month at a time. The Calendar control is a more complex control than the button, text box, and label you have been working with and illustrates some further capabilities of server controls.
In this section, you will add a System.Web.UI.WebControls.Calendar control to the page and format it.

To add a Calendar control

  1. In Visual Studio, switch to Design view.
  2. From the Standard section of the Toolbox, drag a Calendar control onto the page and drop it below the div element that contains the other controls:
    The calendar's smart tag panel is displayed. The panel displays commands that make it easy for you to perform the most common tasks for the selected control. The following illustration shows the Calendar control as rendered in Design view.
    Calendar control in Design view
  3. In the smart tag panel, choose Auto Format.
    The Auto Format dialog box is displayed, which allows you to select a formatting scheme for the calendar. The following illustration shows the Auto Format dialog box for the Calendarcontrol.
    Auto Format dialog box (Calendar control)
  4. From the Select a scheme list, select Simple and then click OK.
  5. Switch to Source view.
    You can see the <asp:Calendar> element. This element is much longer than the elements for the simple controls you created earlier. It also includes subelements, such as<WeekEndDayStyle>, which represent various formatting settings. The following illustration shows the Calendar control in Source view. (The exact markup that you see in Source view might differ slightly from the illustration.)
    Calendar control in Source view

Programming the Calendar Control

In this section, you will program the Calendar control to display the currently selected date.

To program the Calendar control

  1. In Design view, double-click the Calendar control.
    A new event handler is created in Source view.
  2. Finish the SelectionChanged event handler with the following code.
    protected void Calendar1_SelectionChanged(object sender, System.EventArgs e)
    {    
        Label1.Text = Calendar1.SelectedDate.ToLongDateString();
    }
    

Running the Page

You can now test the calendar.

To run the page

  1. Press CTRL+F5 to run the page in the browser.
  2. Click a date in the calendar.
    The date you clicked is displayed in the Label control.
  3. In the browser, view the source code for the page.
    Note that the Calendar control has been rendered to the page as a table, with each day as atd element containing an a element.
  4. Close the browser.
This walkthrough has illustrated the basic features of the Visual Studio page designer. Now that you understand how to create and edit a Web page in Visual Studio, you might want to explore other features. For example, you might want to do the following:

Community Additions

ADD

Works okay

I followed the instructions and works as intended using IE9.
4/10/2012

Demo works in IE9

It works for me and I'm in Internet explorer 9.02.  Maybe a earlier version of IE9 didn't work
10/12/2011

myfirstwebpage C#

browser will not build calendar with controls written as shown in explorer 9 browser