Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.

Slides:



Advertisements
Similar presentations
ASP.NET Ajax Supplementary Tutorial. Why Use ASP.NET AJAX? - I ASP.NET AJAX enables you to build rich Web applications that have many advantages over.
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
User Controls, Master Pages, GridView. Content User Controls Styles, Themes, Master Pages Working with Data GridView Muzaffer DOĞAN - Anadolu University2.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
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.
Web-Based Applications
Building ASP.NET Applications 2 Lecture 3,4 T. Ahlam Algharasi 4 th Level.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Creating a Console Application with Visual Studio
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Building an ASP.NET Web Application Dr. Awad Khalil Computer Science & Engineering Department AUC.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
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.
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.
Introduction to VB.NET Tonga Institute of Higher Education.
© 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.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
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.
1 Web-Enabled Decision Support Systems Introduction to ASP.NET Prof. Name Position (123) University Name.
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.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
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.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Using Visual Basic 6.0 to Create Web-Based Database Applications
IT 211 Project Integration and Deployment Lab #11.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
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 application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
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 In The Name Of Allah, The Beneficent, The Merciful.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules.
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.
Week Developing Web Applications 12. Programming for the Web A Web Application Runs on a Web Server and Presents Its Content to the User Across a Network,
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Module 4: Creating a Web Application with Web Forms
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
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.
Working with ASP.NET Controls What is ASP.NET Using server controls in your pages Allowing users to create their own accounts Creating a login page Letting.
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
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
1. Open Visual Studio 2008.
Building ASP.NET Applications 2
Web Development Using ASP .NET
Lesson 4 Creating a page with Web Matrix
Web Form Introduction.
Presentation transcript:

Introduction to ASP.NET T.Ahlam Algharasi

The Visual Studio IDE Start page 2

Websites in Visual Studio Create a new ASP.NET application. 3

Websites in Visual Studio The New Web Site window 4

Websites in Visual Studio The New Web Site window allows you to specify three details: – Template: The template determines what files your website starts with. Visual Studio supports two types of basic ASP.NET applications: web site applications and web service applications. – Location: The location specifies where the website files will be stored. – Language: The language identifies the.NET programming language you’ll use to code your website. 5

The Visual Studio IDE

7 DescriptionWindows Lists the files and subfolders that are in the web application folder. Solution Explorer Shows ASP.NET’s built-in server controls and any third- party controls or custom controls that you build yourself and add to the Toolbox. Controls can be written in any language and used in any language. Toolbox Allows you to configure the currently selected element, whether it’s a file in the Solution Explorer or a control on the design surface of a web form. Properties Reports on errors that Visual Studio has detected in your code but that you haven’t resolved yet. Error List

Solution Explorer It allows you to see the files that are in the web application directory. ASP.NET File Types 8 DescriptionFile These are ASP.NET web pages.They contain the user interface and, optionally, the underlying application code. Ends with.aspx These are ASP.NET user controls. User controls are similar to web pages, except that they can’t be accessed directly. User controls allow you to develop an important piece of the user interface and reuse it in as many web forms as you want without repetitive code. Ends with.ascx

Solution Explorer ASP.NET File Types 9 DescriptionFile This is the XML-based configuration file for your ASP.NET application. It includes settings for customizing security, memory management, and much more. web.config These are ASP.NET web services. Web services work differently than web pages, but they still share the same application resources, configuration settings, and memory. Ends with.asmx These are code-behind files that contain vb code. They allow you to separate the application from the user interface of a web page. Ends with.vb

Solution Explorer “App_Data” Folder – This directory is reserved for data storage, including database files, XML files, and other data store files. Of course, you’re free to store data files in other directories

Toolbox Tabs 11 DescriptionTab This tab includes the rich web server controls that are the heart of ASP.NET’s web form model. Standard These components allow you to connect to a database.Data These controls allow you to verify an associated input control against user-defined rules. For example, you can specify the input can’t be empty, it must be a number, it must be greater than a certain value, and so on. Validation These controls are designed to display site maps and allow the user to navigate from one page to another. Navigation These controls provide prebuilt security solutions, such as login boxes and a wizard for creating users. Login

Toolbox Tabs You can customize both the tabs and the items in each tab. – To modify the tab groups, right-click a tab heading, and select Rename Tab, Add Tab, or Delete Tab. – To add an item, right-click the blank space on the Toolbox, and Select Items. You can also drag items from one tab group to another. 12 DescriptionTab This tab allows you to drag and drop static HTML elements.HTML Provides a repository for code snippets and control objects. Just drag and drop them here, and pull them off when you need to use them later. General

Code Debugging To test this page, select Debug ➤ Start Debugging from the menu. Because this is the first time running any page in this application, Visual Studio will inform you that you need a configuration file that specifically enables debugging Click OK to add this configuration file. 13 ASP.net Server

The Coding Model Visual Studio supports two models for coding web pages and web services: – Code-behind This model separates each ASP.NET web page into two files: an.aspx markup file with the HTML and control tags, and a.vb code file with the source code for the page. This model provides better organization important when building complex pages. 14

The Coding Model Code-behind Example “Default.aspx” Page 15

The Coding Model Code-behind Example “Default.aspx.vb” Page 16

The Coding Model – Inline code This model is the closest to traditional ASP. All the code and HTML is stored in a single.aspx file. The code is embedded in one or more script blocks. it’s popular for coding simple web pages. 17

The Coding Model Inline code Example 18

Choosing the coding model When you add a new web page to your website (using Website ➤ Add New Item), the Place Code in a Separate File check box chooses whether you want to use the code-behind model or not. 19

Web Forms The term used to describe an ASP.NET web page is web form. – The basic structure of a web form is shown here: 20

Controls

Server Controls Server controls – are a fundamental part of the ASP.NET architecture. – are tags that are understood by the server. There are three kinds of server controls: – HTML Server Controls - Traditional HTML tags – Web Server Controls - New ASP.NET tags – Validation Controls - For input validation 22

Server Controls HTML Server Controls – HTML server controls are standard HTML tags and are declared with the runat="server" attribute. – The runat="server" attribute indicates that the form should be processed on the server. 23

Server Controls Web Server Controls – These classes duplicate the functionalities of the basic HTML tags but have a more consistent and meaningful set of properties and methods that make it easier for the developer to declare and access them. 24

Server Controls Validation Controls – are used to validate user-input. For Example If the user- input does not pass validation, it will display an error message to the user. 25

Questions 05.26