Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Server-Side vs. Client-Side Scripting Languages
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
JavaScript & jQuery the missing manual Chapter 11
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Introducing Dreamweaver MX 2004
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Peter Laird. | 1 Building Dynamic Google Gadgets in Java Peter Laird Managing Architect WebLogic Portal BEA Systems.
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
 Lecture  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Getting Started With HTML
Web Programming Language
Tonga Institute of Higher Education IT 141: Information Systems
IS1500: Introduction to Web Development
Computing with C# and the .NET Framework
ASP.NET Forms.
© 2016, Mike Murach & Associates, Inc.
WWW and HTTP King Fahd University of Petroleum & Minerals
Web Forms, HTML, and ASP.NET
Data Virtualization Tutorial… CORS and CIS
Warm Handshake with Websites, Servers and Web Servers:
HTML & teh internets.
Florida Gulf Coast University
Haritha Dasari Josue Balandrano Coronel -
PHP / MySQL Introduction
Web Development in Microsoft Visual Studio 2013
Client side & Server side scripting
Chapter 27 WWW and HTTP.
Tonga Institute of Higher Education IT 141: Information Systems
Web Page Concept and Design :
Tonga Institute of Higher Education IT 141: Information Systems
Web Development Using ASP .NET
Chengyu Sun California State University, Los Angeles
An Introduction to JavaScript
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

Chapter 1 Getting Started with ASP.NET 4.5.1

Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand how to create a new Website with the.NET Framework. Write a simple Hello World Program Look at some HTML Controls Review an ASP.NET control

Why ASP.NET Websites have gone from being static to being dynamic. A static site stays the same no matter how many times your request it and contains HTML elements: Example: A dynamic site changes depending on user input and changes ever time. Example: There are frameworks out there that facility the building of dynamic sites: Java Servlets, PHP, Ruby. And ASP.NET

Why ASP.NET ASP.NET is a free, powerful web runtime engine. It accelerates web development by providing feature rich controls. Clear separation of look and feel (.aspx) and the programmability (aspx.cs) HTTP is a Stateless protocol (it doesn’t remember the state it was last in after a network trip). ASP.NET takes care of this for us with a mechanism to handle state (ViewState). Features many controls that provide a lot of built in features.

Our IDE It is our primary Tool for creating an application. It supports different types of “Projects”, which the shell for the overall program that we want to create. It also supports a website structure. We will always work with C#. C# is a more marketable and more powerful programming language. We will also work with HTML and become familiar with the different HTML controls. For a reference of HTML Tags, go to

How to create a new website Create a Website by hitting File -> New - > Web Site and select.NET framework (or latest). Select from the templates ASP.NET Web Forms You now have a default website structure. We can add or change files as necessary Open the default.aspx and add the following code under the asp:Content tag Hello World Welcome to ASP.NET on

Output is…

What happened We created a new website under the.NET Framework with the template of ASP.NET forms The template create some default files and we opened up the default.aspx file. Default.aspx is actually two files bound together. Default.aspx and Default.aspx.cs The “aspx” file is known as the markup file. We work with HTML elements here and ASP controls. The “aspx.cs” file is known as the code behind file is where we add programmability for our web file. You can also use the in the markup to add code.

What happened The tags/controls on the markup file (aspx) get rendered to display the page. The tags treat anything between them like code to compile and process. The C# code DateTime.Now.ToString() dynamically generates the time on the server side. But what do we mean by on the server side???

Introduction to ASP.NET When we type a URL in a web browser, a request is sent to a web server through the HTTP (HyperText Transfer Protocol). The URL ( is translated into an IP address and port, which is received by a web server. When the server accepts the request, it processes it and sends back a response. For static files (files that do not change regardless of the request) the web server finds the resources and sends them back For dynamic files (aspx) the web server maps the request to another software that can handle it, namely the ASP.NET runtime

Introduction to ASP.NET 4.5.1

What can influence how the page displays Static Text: Text like HTML,CSS or Javascript is sent to the browser directly. ASP.NET Server Controls: These controls are in your.aspx page and when they are processed by the web server, they emit HTML code For example, the asp.net textbox control Becomes Programming Code: This is the area where you can add you C# or VB programmability. You can do this in the markup or preferably in the source file. DateTime.Now.ToString()

Understanding HTML Tags We can review the HTML tags in W3Schools Some of the common ones we use are: : Defines the start of the entire html page : Defines the title of the page : Denotes the start of the body where the main content goes : Denotes the start of the header : Anchor, used to create hyperlinks to other resources : Used to display an image : Used for input forms that submit information from user to server : Creates a table structure : A container that groups elements together

HTML Attributes and Comments and Tags HTML attributes can change the behavior or appearance of the HTML elements. Elements can share common attributes or can have different attributes. Commenting inside HTML is done with: Remember to close your tags Hello World or

Looking in detail at ASP.NET Markup Creating a button in with an ASP.NET control The <asp: tag denotes that this is an asp.net control and should be processed by the web server. The Id is an attribute that gives this control a unique identifier within the page. Note: You cannot have two controls with the same Id in a page. The runat=“server” is a required attribute that lets the.NET runtime know that it needs to process this control. The text is the value that appears in the button. Rendered html is

Working with Visual Studio The Document Window: Contains the files you open to work on

Working with Visual Studio Solution Explorer: Contains the project or website structure of files

Working with Visual Studio Server Explorer: Contains the data connections and other server connections.

Working with Visual Studio The Error List and Output Window: Shows any error, or warning messages as well as any output messages.

Working with Visual Studio The ToolBox: These are the controls available to use and drag into your markup.

Customizing the IDE Visual studio can be highly customizable. You can rearrange windows and snap them into place as desired. You can Create Keyboard shortcuts You can modify the toolbox. Until you are very comfortable, use the standard layout.

Working with websites We will work with Websites not projects in this course. From the File menu, do New -> Web Site

Differences between Web Sites and Projects Advantages of web site You do not want to have to explicitly compile the project in order to deploy it. You want to be able to update individual files in production by just copying new versions to the production server, or by editing the files directly on the production server. If you precompile the site, you want to be able to update individual ASP.NET web pages (.aspx files) without having to recompile the entire site. You like to keep your source code on the production server because it can serve as an additional backup copy For those interested in the differences, check out

Summary In this chapter we covered: How do we create a quick hello world website What is ASP.NET, why do we use it and how does it work/ What are the advantages of ASP.NET Some of the basic HTML tags The anatomy of an ASP.NET control The different parts of the visual studio IDE that we use for development.