Introducing ASP.net with Visual Studio Environment

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
ASP.NET 2.0. What is ASP.NET is a server-side scripting language developed by Microsoft is the next generation of ASP (Active Server Pages), completely.
Web-Based Applications
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
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.
Creating a Basic Web Page
DR.JOHN ABRAHAM PROFESSOR UTPA ASP.NET. ACTIVE SERVER PAGES (ASP) Web application development environment Web applications use web browser to display.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
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.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
Introduction to web development and HTML MGMT 230 LAB.
Session 4: HTML and Web Server Controls. Outline Creating Web Forms Using Server Controls HTML Server Controls Web Server Controls Writing ASP Code Inline.
1 JavaScript Functions and Objects. 2 Objectives You will be able to Use JavaScript functions in JavaScript scripts. Get JavaScript functions executed.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
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 provides an event based programming model that simplifies web programming  All GUI applications are incomplete without enabling actions  These.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
 Lecture  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
Creating Consistent Looking Websites
Microsoft FrontPage 2003 Illustrated Complete Creating a Web Site.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Framework Based Internet Applications
Getting Started with HTML
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
Getting Started With HTML
Section 10.1 Define scripting
Visual Studio ITEC 420.
Computing with C# and the .NET Framework
ASP.NET Forms.
Intro to HTML CS 1150 Fall 2016.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Human Computer Interaction
Florida Gulf Coast University
Microsoft® Office FrontPage® 2003 Training
XHTML Basics.
ASP.NET Web Controls.
Web Development & Design Foundations with HTML5 8th Edition
Haritha Dasari Josue Balandrano Coronel -
Intro to Web Development Class A Review
برمجه صفحات الانترنتASP
Web Development in Microsoft Visual Studio 2013
XHTML Basics.
XHTML Basics.
Static and Dynamic Web Pages
ASP.NET.
Web Development Using ASP .NET
Introduction to Web Programming using ASP.NET
XHTML Basics.
Introduction to HTML5.
Basic HTML Workshop.
CIS 133 mashup Javascript, jQuery and XML
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
XHTML Basics.
Session 3: Basic CSS Spring 2009
Dreamweaver.
Framework Based Internet Applications Styles, Themes, and Master Pages
Creating Web Documents
Presentation transcript:

Introducing ASP.net with Visual Studio Environment Information Theory and Practice LAB INFS 260/L Lecturer: Kishore Nambeesan

What is Asp.net ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting introduced by Microsoft.

Implementing ASP.net ASP.NET supports three different development models: Web Pages, MVC (Model View Controller), and Web Forms: Web Pages Single Pages Model MVC Model View Controller Web Forms Event Driven Model Simplest ASP.NET model. Similar to PHP and classic ASP. Built-in templates and helpers for database, video, graphics, social media and more.   MVC separates web applications into 3 different components: Models for data Views for display Controllers for input The traditional ASP.NET event driven development model: Web pages with added server controls, server events, and server code.

ASP.net File Types

More about Web Form <%@ Page Language="VB" AutoEventWireup="False" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form ID="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Text="Type something here:" /> <asp:TextBox ID="TextBox1" runat="server" /> <br /> <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form> </body> </html>

Examining Closely…. ASP.NET web form isn’t 100 percent HTML. Instead, it’s an HTML document with an extra ingredient—ASP.NET web controls. Every ASP.NET web form includes the standard HTML tags, like <html>, <head>, and <body>, which delineate the basic sections of your web page. You can insert additional HTML tags, like paragraphs of text (use the <p> tag), headings (use <h1>, <h2>, <h3>), tables (use <table>), and so on. Along with standard HTML, you can add ASP.NET-only elements to your web pages. For example, <asp:Button> represents a clickable button that triggers a task on the web server. When you add an ASP.NET web control, you create an object that you can interact with in your web page code, which is tremendously useful.

Web Form Explained… ASP.NET web form isn’t 100 percent HTML. Instead, it’s an HTML document with an extra ingredient—ASP.NET web controls. Every ASP.NET web form includes the standard HTML tags, like <html>, <head>, and <body>, which delineate the basic sections of your web page. You can insert additional HTML tags, like paragraphs of text (use the <p> tag), headings (use <h1>, <h2>, <h3>), tables (use <table>), and so on. Along with standard HTML, you can add ASP.NET-only elements to your web pages. For example, <asp:Button> represents a clickable button that triggers a task on the web server. When you add an ASP.NET web control, you create an object that you can interact with in your web page code, which is tremendously useful.

Web Form Explained… The Page Directive The Default.aspx page, like all ASP.NET web forms, consists of three sections. The first section is the page directive: <%@ Page Language="VB" AutoEventWireup="False" CodeFile="Default.aspx.vb" Inherits="_Default" %> The page directive gives ASP.NET basic information about how to compile the page. It indicates the language you’re using for your code and the way you connect your event handlers. If you’re using the code-behind approach (which is recommended), the page directive also indicates where the code file is located and the name of your custom page class. You won’t need to modify the page directive by hand, because Visual Studio maintains it for you.

Web Form Explained… The Doctype HTML Code In an ordinary, non-ASP.NET web page, the doctype occupies the very first line. In an ASP.NETweb form, the doctype gets second place, and appears just underneath the page directive. The doctype indicates the type of markup (for example, HTML or XHTML) that you’re using to create your web page. Technically, the doctype is optional, but Visual Studio adds it automatically. This is important, because depending on the type of markup you’re using there may be certain tricks that aren’t allowed. For example, strict XHTML doesn’t let you use HTML formatting features that are considered obsolete and have been replaced by CSS. HTML Code

Sample Web Form Code: default.aspx <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> </div> <asp:Button ID="Button1" runat="server" Text="Click me" /> </form> </body> </html>

Code for Default.aspx.vb Partial Public Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click MsgBox("Thank you!") Button1.Style("background-color") = "#0000ff" Button1.Style("color") = "#ffffff" Button1.Style("width") = "200px" Button1.Style("cursor") = "pointer" Button1.Style("font-family") = "verdana" Button1.Style("font-weight") = "bold" Button1.Style("font-size") = "14pt" Button1.Text = "You clicked me!“ End Sub End Class