ASP.Net Demo ISYS 350.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Advertisements

Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Start menu -> all program -> Microsoft Visual SourceSafe-> Microsoft Visual Studio 2010 Click.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Cascade Style Sheet Demo. Cascading Style Sheets Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
CSD 340 (Blum)1 Using Microsoft Visual Studio.NET Development Environment and Introducing Functions.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
ASP.NET and ADO.NET. ASP.NET Server Controls Intrinsic Controls: These controls correspond to their HTML counterparts. –Ex. Textbox, listbox, button,
Introduction to Web Application Development with.Net and Web Service ISYS 350.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Introduction to ASP.Net ISYS 512. ASP.NET in the.NET Framework 1. The client requests a web page. 2. The web server locates the page. 3. If the page is.
Introduction to ASP.Net ISYS 350. ASP.NET ASP.NET is a server-side technology for creating dynamic web pages. ASP.NET allows you to use a selection of.
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.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
ASP.Net, Web Forms and Web Controls 1 Outline Web Controls Text and Graphics Controls AdRotator Control Validation Controls.
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.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Introduction to ASP.Net ISYS 512. ASP.NET in the.NET Framework 1. The client requests a web page. 2. The web server locates the page. 3. If the page is.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Introduction to ASP.Net ISYS 512. ASP.NET in the.NET Framework 1. The client requests a web page. 2. The web server locates the page. 3. If the page is.
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,
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Module 4: Creating a Web Application with Web Forms
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
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.
Chapter 10, Slide 1Starting Out with Visual Basic 3 rd Edition Chapter 11 Developing Web Applications.
WebD Introduction to CSS By Manik Rastogi.
Laying out Elements with CSS
Validation Controls, User Controls, Master Pages
The Box Model in CSS Web Design – Sec 4-8
The Box Model in CSS Web Design – Sec 4-8
CSS Layouts: Grouping Elements
ASP.NET Web Controls.
Box model.
The Box Model in CSS Web Design – Sec 4-8
Active Server Pages ASP.Net
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5
Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Developing Web Applications
Unit 27 - Web Server Scripting
Web Development in Microsoft Visual Studio 2013
CSS Borders and Margins.
CSS Box Model.
Web Development & Design Foundations with H T M L 5
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
Module 10: Creating a Web Application with Web Forms
Web Development & Design Foundations with H T M L 5
Static and Dynamic Web Pages
Web Development & Design Foundations with HTML5
ASP.NET.
Module 05: Building ASP .NET Applications
Floating and Positioning
HTML5 and Local Storage.
Web Development & Design Foundations with HTML5
CSS and Class Tools.
ASP.NET and ADO.NET.
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

ASP.Net Demo ISYS 350

ASP.NET is a sever-side technology 1. The client requests a ASP web page. 2. The web server locates the page and execute the page. 3. The output produced by the ASP.Net page is sent to the browser in HTML code.

Benefits of Server-Side Technology Browser compatibility: Every browser reads HTML. Protection of source code. Controls are server-side objects with properties, methods and events.

Web Project demo New Project: Add a Web form: A web form contains: C#/Web/ASP.Net Web Application/Asp.Net Empty Web Application Add a Web form: Project/Add new item/Web form A web form contains: A design file: Ex. webform.aspx Design view Source (HTML) view A code file: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="testASP.WebForm1" %>

Web Form Demo: Create an ASP.Net Web Form to add two numbers Add controls: Web form flow layout: Controls are positioned from left to right and from top to bottom. Add code: Double-click the form to open the code view. Events: Page_Load event and control’s events

ASP.Net Controls: Textbox, listbox, radiobutton list, button, dropdownlist

ASP.Net Controls ASP.Net Listbox has three useful properties: SelectedItem: Displayed item SelectedIndex SelectedValue: Value of the selected item. ASP.Net has a RadioButtonList control that has similar properties as the Listbox.

Code Example double pv, rate, year, fv; pv = double.Parse(TextBox1.Text); rate =double.Parse( ListBox1.SelectedValue); year = double.Parse(RadioButtonList1.SelectedValue); fv = pv * Math.Pow(1 + rate, year); TextBox2.Text = fv.ToString("c"); To set start up page: Point to the web page in the Solution Explorer and right click to choose Set As Start Page.

Compute Payment of Loan: Add CSS and Refernce VB to use pmt function

<style> div { width: 450px; margin: 0 auto; padding: 15px; background: aqua; border: 2px solid navy; } </style>

Code to compute payment double loan, rate, term, payment; loan = double.Parse(TextBox1.Text); rate = double.Parse(ListBox1.SelectedValue); term = double.Parse(RadioButtonList1.SelectedValue); payment = Financial.Pmt(rate / 12, term * 12, -loan); TextBox2.Text = payment.ToString("c");

Use Validator Controls to do Validation Example: RequiredFieldValidator Add the validator after the Loan textbox Control to Validate: TextBox1 Add this to the web.config file: <appSettings> <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /> </appSettings>