Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.

Slides:



Advertisements
Similar presentations
1 Web Site Design Overview of the Internet Cookie Setton.
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
1 Chapter 12 Working With Access 2000 on the Internet.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Web-Based Applications
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Creating a Console Application with Visual Studio
Course Textbook: Build Your Own ASP.Net Website: Chapter 2
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 1: ASP.Net Dave Mercer.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Creating an Expression Web Site
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.
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.
Microsoft Visual Basic 2005: Reloaded Second Edition
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Chapter 9 Programming with Web Forms Programming In Visual Basic.NET.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
ASP.NET Web Server Controls Basic Web Server Controls.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Introduction to ASP.NET 1www.tech.findforinfo.com.
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.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
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.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Tutorial 3 Adding and Formatting Text with CSS Styles.
Module 4: Creating a Web Application with Web Forms
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
ASP.NET – Active Server Pages ASP.NET is a server-side technology for developing web applications based on the.NET Framework.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
ASP.NET Forms.
ASP.NET Web Controls.
Web Development in Microsoft Visual Studio 2013
Module 10: Creating a Web Application with Web Forms
Web Development Using ASP .NET
Presentation transcript:

Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms Page Walkthrough: Creating a Basic Web Forms Page

Focus of the Course Learn to build E-Commerce Web Applications using ASP.Net Learn how to use C# for the code-behind portions of your web sites Learn about important E-Commerce topics needed to help you design more successful E- Commerce web sites Most importantly, learn how to build usable, customer-centered web sites

What is.NET?.Net Platform includes the.Net Framework and tools for application development ASP.Net is server-side technology for developing web applications Server-side code is executed on a web server A web application is a dynamic web site ASP.Net pages are compiled into binary files that execute very fast

Running Your ASP.Net Application ASP.NET Web applications run on a Web server configured with Microsoft Internet Information Services (IIS). With Visual Studio.Net however, you do not need to work directly with IIS. Visual Studio handles file management tasks such as creating IIS applications when needed and providing ways for you to deploy your Web applications to IIS.

Where Does Visual Studio Fit In? If you have the.NET Framework, you can create ASP.NET applications using text editors, a command- line compiler, and other simple tools. You can copy your files manually to IIS to deploy the application. When you use Visual Studio to create Web applications, you are creating essentially the same application that you could create by hand. That is, Visual Studio does not create a different kind of Web application; the end result is still an ASP.NET Web application

Visual Studio Advantages Visual Studio provides tools that make application development much faster, easier, and more reliable. These tools include: Visual designers for Web pages with drag-and-drop controls and code (HTML) views with syntax checking. Code-aware editors that include statement completion, syntax checking, and other IntelliSense features. Integrated compilation and debugging. Project management facilities for creating and managing application files, including deployment to local or remote servers.

How ASP.NET Web Applications Fit into the.NET Framework

What Do I Need? Windows 2000 or XP Professional.Net Framework SDK Internet Information Services (IIS) web server Visual Studio.Net 2005 Beta 2 version See Chapter 1 for downloading instructions and installation info of the.Net Framework SDK and IIS

Where Do I Put My Files? By default, IIS maps to the wwwroot subfolder of C://Inetpub But you can place your files anywhere (except on lab machines, just harddrive or thumb drive) When you run your ASP.Net application from within Visual Studio, it will create a temporary in your file path

Creating a New Web Site Open or Create a Web Site

Select an ASP.Net Web Site

Browse to Find Your Folder

Choose C# as Your Language

Choose the Location

If the Site Already Exists…

Opening a Web Page Click the Show All Files button in the toolbar of Solution Explorer, then expand the node for WebForm1.aspx. At the bottom of the Web Forms Designer are two tabs, Design and HTML, which show you different views of the.aspx file you are working with: Design view provides you with a WYSIWYG view where you can drag controls and use the Properties window to configure them. HTML view shows you the same information, but in the "raw" format of an HTML file. As in HTML files, the Web Forms Designer supports Intellisense for elements in HTML view.

Your Site in the Solution Explorer

Source Mode Click to Open the File

The Properties Panel This Panel contains the attributes or properties for a selected element on your page. If you select a tag, the align, class, and other properties like Style are visible Clicking on the Style property will open the Style Editor, Similar to the CSS Editor in Dreamweaver.

The Properties Panel: Styles Editor

The Font: Color Property

Examining Web Forms Structure If the Web Forms Designer is open with a file called FirstPage.aspx. A Web Forms page consists of two separate files: The.aspx file contains the HTML text and the controls that make up the user interface of the page. A separate file, called WebForm1.aspx.vb or WebForm1.aspx.cs, contains the page's code — that is, it is the page's class file. It is sometimes referred to as the "code-behind" file. By default, Solution Explorer does not display the page's class file.

Two Types of Server Controls HTML server controls These are HTML elements that are marked (that you convert) to be programmable in server code. Typically, you convert HTML elements to HTML server controls only if you have some reason to want to program them from server code. Web server controls These are controls specific to Web Forms that provide more features than HTML server controls and do not map directly to HTML elements.

HTML Server Control Features An object model that you can program against on the server using the familiar object-oriented techniques programmatically in server code. A set of events for which you can write event handlers in much the same way you would in a client-based form, except that the event is handled in server code. The ability to handle events in client script. Automatic maintenance of the control's state. Interaction with validation controls Data binding to one or more properties of the control. Support for cascading style sheets.

Web Server Controls Web server controls do not map one-to-one to HTML server controls. They are defined as abstract controls in which the actual HTML rendered by the control can be quite different from the model that you program against. For example, a RadioButtonList Web server control might be rendered in a table or as inline text with other HTML. Web server controls include traditional form controls such as buttons and text boxes as well as complex controls such as tables. They also include controls that provide commonly used form functionality such as displaying data in a grid, choosing dates, and so on.

Web Control Features A rich object model that provides type-safe programming capabilities. Automatic browser detection. For some controls, the ability to define your own look for the control using templates. For some controls, the ability to specify whether a control's event causes immediate posting to the server or is instead cached and raised when the form is submitted. Ability to pass events from a nested control (such as a button in a table) to the container control.

What Do Web Server Controls Look Like? At design time in HTML view, the controls appear in your page in a format such as: The attributes in this case are not those of HTML elements. Instead, they are properties of the Web control. When the Web Forms page runs, the Web server control is rendered on the page using appropriate HTML, which often depends not only on the browser type but also on settings that you have made for the control.

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now:

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: Built-in ASP tag: a label

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: Identifies a tag that must run at the server

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: C# code- declaration block

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: Execute this code when the page is loaded

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: Set Text Property of lblTime

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: Now is a property of the DateTime Class (current date/time)

Your first ASP.Net Page My First ASP.NET Page protected void Page_Load(Object s, EventArgs e) { lblTime.Text = DateTime.Now.ToString(); } Hello there! The time is now: ToString( ) is a conversion method of Now

Displaying your ASP.Net Page To run without debugging, Go to the Debug Menu Choose: Start without Debugging The File will open in the browser with a temporary local host, i.e /Chapter1/FirstPage.aspx /Chapter1/FirstPage.aspx

View Source of Your Page All the ASP.Net code is gone! The web browser thinks this is a regular HTML page The server has processed the ASP.Net code and sent back pure HTML

Summary The.Net Framework allows developers to use a common library or framework of classes across many programming platforms ASP.Net is server-side technology for developing web applications Creating a ASP.Net in theVisual Studio.Net environment creates the same code, but adds many productivity tools, debugging, project management, etc. We created a simple Web Page in ASP.Net with a Web Server Control