Haritha Dasari Josue Balandrano Coronel -

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Web Server Programming
Web Applications Development Using Coldbox Platform Eddie Johnston.
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.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
1 Classic ASP vs. ASP.NET Technical Information and Market Adoption Lance Welker University of San Diego Dr. Rebman MSIT 526 December 20, 2005.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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.
Module 4: Creating a Microsoft ASP.NET Web Form. Overview Creating Web Forms Using Server Controls.
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.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
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,
Getting started with ASP.NET MVC Dhananjay
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
 Lecture  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2.
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Introduction to MVC Slavomír Moroz. Revision from Previous Lesson o ASP.NET WebForms applications Abstract away HTTP (similar to desktop app development)
Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Web Technology Solutions
ASP.NET Forms.
Introduction and Principles
ASP MVP Web applications and Razor
The Client/Server Database Environment
AJAX.
AJAX.
PHP / MySQL Introduction
ASP.NET Web Forms Vs. ASP.NET MVC ASP.NET is Microsoft’s big leap after Active Server Pages (ASP), ASP.NET provides flexible and unified web development.
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Web Browser server client 3-Tier Architecture Apache web server PHP
Web Development Using ASP .NET
Introducing ASP.net with Visual Studio Environment
Lecture 1: Multi-tier Architecture Overview
ASP.NET Module Subtitle.
IntroductionToPHP Static vs. Dynamic websites
Web Development Using ASP .NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
ASP.NET MVC Imran Rashid CTO at ManiWeber Technologies.
7/19/2019 2:53 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Introduction to ASP.NET Parts 1 & 2
Web Application Development Using PHP
Top 10 PHP Frameworks in PHP is one of the most sought after choices for programmers. Hypertext Pre-processor is chiefly used as a server-side open.
Presentation transcript:

Haritha Dasari Josue Balandrano Coronel - balandranocoronej@utpa.edu

What is ASP.NET? ASP.NET is a development framework for building web pages and websites with HTML, CSS, Java Script and server scripting. We can develop ASP.NET web based applications in any .NET complaint languages such as Visual Basic, Visual C# and Jscript.NET . It was first released in January 2002 with version 1.0 of the .NET Framework and is the successor to Microsoft's Active Server Pages(ASP) technology.

Advantages ASP.NET is part of the .NET Framework. We can use the classes in the .NET Framework to develop any type of applications. ASP.NET pages are compiled. ASP.NET Web pages and code files are compiled dynamically when users first request a resource, such as an ASP.NET page (.aspx file), from a Web site. After pages and code files have been compiled the first time, the compiled resources are cached, so that subsequent requests to the same page are extremely efficient.

Continued… The source code is compiled and executed on the server. This provides a lot of power and flexibility to the web pages, as well as early error detection. Being language-independent, it allows you to choose the language that best applies to your application or partition your application across many languages.

Tools for building ASP.NET Websites Microsoft created a Visual Studio tool, which is an IDE (Integrated Development Environment). With the help of this tool you can create different web applications and test them locally, since it comes with a small web server and also different database servers (e.g. MSSQL, SQL Express, …). There is also Web Matrix, it is mainly used to create ASP.NET Web Pages, it is a simpler IDE and can be used to create simple html files.

Websites using the framework Many of the daily websites we use/follow are built using the ASP.NET Technology…

ASP.NET Development Models ASP.NET supports three different development models: Web Pages Web Forms MVC (Model View Controller)

Web Pages Web Pages is the simplest programming model for developing ASP.NET applications. Pros: Easy to learn, understand, and use Built around single web pages Similar to PHP and Classic ASP Server scripting with Visual Basic or C# Full HTML, CSS, and JavaScript control Web Pages is easy extendable with programmable Web Helpers, including database, video, graphics, social networking and much more. Cons: Server code can be inserted inline with HTML code, creating “spaghetti code”. Code can get really hard to maintain. Not recommended for complex sites.

Web Forms Is the oldest ASP.NET programming model, with event driven web pages written as a combination of HTML, server controls, and server code. Are compiled and executed on the server, which generates the HTML that displays the web pages. comes with hundreds of different web controls and web components to build user-driven web sites with data access.

Web Forms Pros: Simple development, like ASP.NET Web Pages. Provides look and feel through UI elements, i.e. controls. Development resembles that of creating a Windows Forms application. Graphical interface to create the UI. Since it renders the controls on the server side the Cross-Browser compatibility is less of an issue. Cons: ViewState can get really bloated. Unable to use multiple <form> tags on the same page. The entire page gets sent to the server. Can get hard to maintain. Performance issues on complex pages.

Controls HTML server controls : Web server controls : <input type="text" size="40"> It could be converted to a server control, by adding the runat and id attribute: <input type="text" id="testtext" size="40" runat="server"> Web server controls : Buttons,TextBoxes,Radio Buttons…. <asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit" /> Or they can be created by using HTML Helpers. e.g.: @HTML.Editor(“test_input”) Validation controls :A Validation server control is used to validate the data of an input control.

Model View Controller (MVC) The MVC model defines web applications with 3 logic layers: The backend layer (Model logic) Model objects are the parts of the application that implement the logic for the application's data domain, i.e. an abstraction layer for the database. The display layer (View logic) Views are the components that display the application's user interface (UI), i.e. what the user “sees”. The business layer (Controller logic) Controller will react to user input and decide if it needs to do a CRUD action to the database or some other logic, as well as which view to return.

Model View Controller (MVC) Pros: Separation of the different parts of an application, i.e. modularization of the code. Suitable for more complex sites. Designers and Developers can work in parallel. Easier to maintain. URLs are mapped to controller’s functions, this means faster processing. More secure, since we create a layer for different parts of the application. Cons: Might involve a learning curve. Code can get very complicated.

Views + Layouts or Master Pages. - Define the skeleton of the design. - Could also be used to create a universal look & feel. - Shared folder. Shared/_Layout: http://hastebin.com/xamiwofapi.xml + Regular views. - Views are called by controller’s functions. - Strong typed views. - ViewBag object. Views/Home/Index: http://hastebin.com/lafiridila.xml Views/Store/Index (strongly typed view): http://hastebin.com/korahirufa.xml

Controllers - URLs are mapped to controller’s functions. - Controllers are classes. - Sanitize user input, process user input, call views, call CRUD functions to models, etc… Controllers/HomeController: http://hastebin.com/luqisekoro.avrasm Controllers/CartController: http://hastebin.com/mulomemahu.cs Controllers/StoreController: http://hastebin.com/voxosemere.avrasm

Models - Objects to map out your databases. - Abstraction layer for databases. - Should handle any action done to a single row or a table as well as any errors and/or logging. Models/Products.cs: http://hastebin.com/somiboniwe.vala Web.config: http://hastebin.com/gufovanapa.xml

Assignment For your assignment you shall… Create a simple form that will send an email with the information inputted by the user. You may user any ASP.NET Model (e.g. Web Pages, MVC or Web Forms). Here’s an example on how to use System.Net.Mail to get you started. http://forums.asp.net/t/971802.aspx Here’s an example on how to setup ASP.NET with your gmail acc: http://www.mycsharpcorner.com/Post.aspx?postID=33

Helpful Resources Class Material: Simple project using ASP.NET 4.0 and VS 2010: http://goo.gl/QAJiMr Simple project using ASP.NET 4.5 and VS 2012: http://goo.gl/UAwmTs Lots of cool tutorials: http://www.asp.net/mvc/tutorials Download Visual Web Developer 2012 (Win Vista and up): http://www.microsoft.com/web/handlers/webpi.ashx?command=getinstallerredirect&appid=VWDOrVs11AzurePack Download Visual Web Developer 2010 (Wind XP): http://www.microsoft.com/web/gallery/install.aspx?appid=VWDorVS2010SP1Pack