SlideShare a Scribd company logo
ASP ?
 ASP stands for Active Server Pages.
 ASP.NET is a web application framework developed by
Microsoft to allow programmers to build dynamic web sites.
 An ASP file can contain text, HTML tags and scripts.
Scripts in an ASP file are executed on the server.
 ASP is a Microsoft Technology that runs inside IIS.
 IIS is the web server created by Microsoft for use with
Windows NT family.
 To run IIS you must have Windows NT 4.0 or later.
 ChiliASP and InstantASP are two technology’s which runs
ASP without Windows.
History
 After four years of development, and a series of beta
releases in 2000 and 2001, ASP.NET 1.0 was released
on January 5, 2002 as part of version 1.0 of the .NET
Framework.
 ASP.NET is a new ASP generation.
 ASP.NET is the successor to Microsoft's Active
Server Pages (ASP) technology. ASP.NET is built
on the Common Language Runtime (CLR), allowing
programmers to write ASP.NET code using any
supported .NET language.
ASP.NET Versions
ASP.NET Version Introduced with .NET & IDE
4.5.1 4.5.1 and Visual Studio 2013
4.5 4.5 and Visual Studio 2012
4.0 4.0 and Visual Studio 2010
3.5 3.5 and Visual Studio 2008
2.0 2.0 and Visual Studio 2005
1.1 1.1 and Visual Studio .NET 2003
1.0 1.0 and Visual Studio .NET
Compilers
 ASP.NET Intellisense Generator
 Microsoft Visual Studio
 Microsoft Visual Web Developer Express
 Microsoft SharePoint Designer
 MonoDevelop
 SharpDevelop
 Adobe Dreamweaver
 CodeGear Delphi
What can ASP do for you?
 Websites that require user requests to be processed at
server side can be developed using asp.net.
 Access any data or databases and return the results to
a browser.
 To build an Internet application that supports adding,
editing, deleting, and listing of information stored in a
database.
 Customize a Web page to make it more useful for
individual users.
 Applications such as:
 Hotel Reservation web application

ASP.NET Models
 ASP.NET supports three different development
models:
 Web Pages:
Web Pages is the easiest development model for developing
ASP.NET web sites.
 MVC (Model View Controller):
MVC is a model for building web applications using a MVC
(Model View Controller) design.
 Web Forms:
Code-behind model
 It encourages developers to build applications with
separation of presentation and content in mind.
 In theory, this would allow a web designer, for
example, to focus on the design markup with less
potential for disturbing the programming code that
drives it.
 This is similar to the separation of the controller from
the view in Model–View–Controller (MVC) frameworks.
 Using "code behind" separates the presentation logic
from UI visualization.
Program Structure
 ASP.NET pages have the extension .aspx, and are
normally written in VB (Visual Basic) or C# (C sharp).
 Razor is a new and simple markup syntax for
embedding server code into ASP.NET web pages.
Data Types and Data Types
You don't have to specify a type for a variable.
Most of the time, ASP.NET can figure out the type based on how the data in the variable is being used.
// Assigning a string to a variable.
var greeting = "Welcome!";
// Assigning a number to a variable.
var theCount = 3;
// Assigning an expression to a variable.
var monthlyTotal = theCount + 5;
// Assigning a date value to a variable.
var today = DateTime.Today;
// Declaring variables using explicit data types.
string name = "Joe";
int count = 5;
DateTime tomorrow = DateTime.Now.AddDays(1);
Razor Syntax Rules for C#
 Razor code blocks are enclosed in @{ ... }
 Inline expressions (variables and functions) start with
@
 Code statements end with semicolon
 Variables are declared with the var keyword
 Strings are enclosed with quotation marks
 C# code is case sensitive
 C# files have the extension .cshtml
C# Code
 <html>
 <body>
 <!-- Single statement block -->
@{{ var myMessage = "Hello World"; }

<!-- Inline expression or variable -->
<p>The value of myMessage is: @myMessage</p>
<!-- Multi-statement block -->
@{{
var greeting = "Welcome to our site!";
var weekDay = DateTime.Now.DayOfWeek;
var greetingMessage = greeting + " Today is: " + weekDay; }
}
<p>The greeting is: @greetingMessage</p>
 </body>
 </html>
Output
Razor Syntax Rules for VB
 Razor code blocks are enclosed in @Code ... End
Code
 Inline expressions (variables and functions) start with
@
 Variables are declared with the Dim keyword
 Strings are enclosed with quotation marks
 VB code is not case sensitive
 VB files have the extension .vbhtml
VB Code
 html>
 <body>
 <!-- Single statement block  --> 
@Code
 dim myMessage = "Hello World"
 End Code
 
<!-- Inline expression or variable --> 
<p>The value of myMessage is: @myMessage</p> 
 
<!-- Multi-statement block --> 
@Code
dim greeting = "Welcome to our site!" 
dim weekDay = DateTime.Now.DayOfWeek 
dim greetingMessage = greeting & " Today is: " & weekDay
End Code
<p>The greeting is: @greetingMessage</p>
 </body>
 </html>
Expressions, Assignment Statements
 Expressions
 @(5 + 13) @{ var netWorth = 150000; }
 @{ var newTotal = netWorth * 2; }
 @(newTotal / 2)
 Assignment Statements
 var age = 17;
Conditional Statements
 @ {
var txt = "";
if(DateTime.Now.Hour > 12)
  {txt = "Good Evening";}
else
  {txt = "Good Morning";}
}
<html>
<body>
<p>The message is @txt</p>
</body>
</html>
Output
Objects, Methods
 "Date" object is a typical built-in ASP.NET object.
 Objects can also be self-defined.
 Examples: a web page, a text box, a file, a database
record, etc.
 Objects may have methods they can perform.
 Examples: A database record might have a "Save"
method, an image object might have a "Rotate" method,
an email object might have a "Send" method, and so on.
 Objects also have properties that describe their
characteristics.
Example:
 <table border="1">
<tr>
<th width="100px">Name</th>
<td width="100px">Value</td>
</tr>
<tr>
<td>Day</td><td>@DateTime.Now.Day</td>
</tr>
<tr>
<td>Hour</td><td>@DateTime.Now.Hour</td>
</tr>
<tr>
<td>Minute</td><td>@DateTime.Now.Minute</td>
</tr>
<tr>
<td>Second</td><td>@DateTime.Now.Second</td>
</tr>
Output
Inheritance
 All managed languages in the .NET Framework, such as Visual Basic and
C#, provide full support for object-oriented programming including
encapsulation, inheritance, and polymorphism.
 Inheritance describes the ability to create new classes based on an existing
class.
public class A
{
public A() {{ }
}
public class B : A
{
public B() { }{ }
Inheritance Example
Encapsulation
 Encapsulation means that a group of related
properties, methods, and other members are treated
as a single unit or object.
 Encapsulation is implemented by using access
specifiers.
 An access specifier defines the scope and visibility
of a class member.
 C# supports the following access specifiers:
Example
using System;
class BankAccountPublic
{
public decimal GetAmount()
{
return 1000.00m;
}
}
The GetAmount() method is public meaning that it can be called by code that is external to this class.
elsewhere in your program, to use the method.
BankAccountPublic bankAcctPub = new BankAccountPublic();
// call a public method
decimal amount = bankAcctPub.GetAmount();
Add Two Numbers
@{{
var totalMessage = "";
if(IsPost)
    {{
    var num1 = Request["text1"];
    var num2 = Request["text2"];
    var total = num1.AsInt() + num2.AsInt();
    totalMessage = "Total = " + total;
}} }
}} }
}
<!DOCTYPE html>
<html>
<body style="background-color: beige; font-family: Verdana, Arial;">
<form action="" method="post">
<p><label for="text1">First Number:</label><br>
<input type="text" name="text1"></p>
<p><label for="text2">Second Number:</label><br>
<input type="text" name="text2"></p>
<p><input type="submit" value=" Add "></p>
</form>
<p>@totalMessage</p>
</body>
Output
THANK YOU !

More Related Content

What's hot

Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
umesh patil
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web Development
Rahul Mishra
 
html & css
html & css html & css
html & css
umesh patil
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
ShreyaShetty92
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
Mai Moustafa
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
Syed Sami
 
Css introduction
Css   introductionCss   introduction
Css introduction
AbhishekMondal42
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
David Lindkvist
 
Web development
Web developmentWeb development
Web development
GarvitBaleshwar
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
Dipen Parmar
 
Html and css
Html and cssHtml and css
Html and css
Samiksha Pun
 
Boostrap basics
Boostrap basicsBoostrap basics
Boostrap basics
JTechTown
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
EPAM Systems
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)
Daniel Friedman
 
Framework
FrameworkFramework
Framework
vinoth kumar
 
Frontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSSFrontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSS
Thinkful
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
Syahmi RH
 

What's hot (20)

Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web Development
 
html & css
html & css html & css
html & css
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Intro to HTML & CSS
Intro to HTML & CSSIntro to HTML & CSS
Intro to HTML & CSS
 
Css introduction
Css   introductionCss   introduction
Css introduction
 
HTML CSS & Javascript
HTML CSS & JavascriptHTML CSS & Javascript
HTML CSS & Javascript
 
Web development
Web developmentWeb development
Web development
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
Html and css
Html and cssHtml and css
Html and css
 
Boostrap basics
Boostrap basicsBoostrap basics
Boostrap basics
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 
HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)HTML/CSS Crash Course (april 4 2017)
HTML/CSS Crash Course (april 4 2017)
 
Framework
FrameworkFramework
Framework
 
Frontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSSFrontend Crash Course: HTML and CSS
Frontend Crash Course: HTML and CSS
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
 

Viewers also liked

Computer
ComputerComputer
Computer
Gaurav Kumar
 
Super marketbillingsystemproject
Super marketbillingsystemprojectSuper marketbillingsystemproject
Super marketbillingsystemproject
Vickey Mahant
 
E billing and invoice system
E billing and invoice systemE billing and invoice system
E billing and invoice system
Surya Indira
 
Se file
Se fileSe file
Se file
Randhir Gupta
 
Supermarket
SupermarketSupermarket
Supermarket
Mechanical engineer
 
Satish musti 04-customer satisfaction towards supermarket
Satish musti 04-customer satisfaction towards supermarketSatish musti 04-customer satisfaction towards supermarket
Satish musti 04-customer satisfaction towards supermarket
shivaraj2050
 
The main purpose of the project is to manage the supermarket efficiently (rep...
The main purpose of the project is to manage the supermarket efficiently (rep...The main purpose of the project is to manage the supermarket efficiently (rep...
The main purpose of the project is to manage the supermarket efficiently (rep...
Rajesh Roky
 
Restaurant billing application
Restaurant billing applicationRestaurant billing application
Restaurant billing application
ch samaram
 
04.project billing system
04.project billing system04.project billing system
04.project billing system
girivaishali
 
Project Super market billing system
Project Super market billing systemProject Super market billing system
Project Super market billing system
Vickey Mahant
 
MEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEMMEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEM
अनिकेत चौधरी
 
Speech Recognition System By Matlab
Speech Recognition System By MatlabSpeech Recognition System By Matlab
Speech Recognition System By Matlab
Ankit Gujrati
 

Viewers also liked (12)

Computer
ComputerComputer
Computer
 
Super marketbillingsystemproject
Super marketbillingsystemprojectSuper marketbillingsystemproject
Super marketbillingsystemproject
 
E billing and invoice system
E billing and invoice systemE billing and invoice system
E billing and invoice system
 
Se file
Se fileSe file
Se file
 
Supermarket
SupermarketSupermarket
Supermarket
 
Satish musti 04-customer satisfaction towards supermarket
Satish musti 04-customer satisfaction towards supermarketSatish musti 04-customer satisfaction towards supermarket
Satish musti 04-customer satisfaction towards supermarket
 
The main purpose of the project is to manage the supermarket efficiently (rep...
The main purpose of the project is to manage the supermarket efficiently (rep...The main purpose of the project is to manage the supermarket efficiently (rep...
The main purpose of the project is to manage the supermarket efficiently (rep...
 
Restaurant billing application
Restaurant billing applicationRestaurant billing application
Restaurant billing application
 
04.project billing system
04.project billing system04.project billing system
04.project billing system
 
Project Super market billing system
Project Super market billing systemProject Super market billing system
Project Super market billing system
 
MEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEMMEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEM
 
Speech Recognition System By Matlab
Speech Recognition System By MatlabSpeech Recognition System By Matlab
Speech Recognition System By Matlab
 

Similar to Super billing asp.net

Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
Iblesoft
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
Prashant Kumar
 
Asp.net
Asp.netAsp.net
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
mani bhushan
 
Intro to .NET for Government Developers
Intro to .NET for Government DevelopersIntro to .NET for Government Developers
Intro to .NET for Government Developers
Frank La Vigne
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Ruddarpratap
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
SHADAB ALI
 
Fundamentals of Web building
Fundamentals of Web buildingFundamentals of Web building
Fundamentals of Web building
RC Morales
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answers
sonia merchant
 
Top 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answersTop 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answers
Pooja Gaikwad
 
PPT N ASP.NET.pptx
PPT N ASP.NET.pptxPPT N ASP.NET.pptx
PPT N ASP.NET.pptx
NareshSoni23
 
PPT
PPTPPT
ASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOMASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOM
Aashish Jain
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
Madhuri Kavade
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
Information Technology
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application development
zonathen
 
What are razor pages?
What are razor pages?What are razor pages?
What are razor pages?
Mindfire LLC
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
Naveen Kumar Veligeti
 
Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET Basic
KALIDHASANR
 

Similar to Super billing asp.net (20)

Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 
Asp.net
Asp.netAsp.net
Asp.net
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Intro to .NET for Government Developers
Intro to .NET for Government DevelopersIntro to .NET for Government Developers
Intro to .NET for Government Developers
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Fundamentals of Web building
Fundamentals of Web buildingFundamentals of Web building
Fundamentals of Web building
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answers
 
Top 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answersTop 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answers
 
PPT N ASP.NET.pptx
PPT N ASP.NET.pptxPPT N ASP.NET.pptx
PPT N ASP.NET.pptx
 
PPT
PPTPPT
PPT
 
ASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOMASP, ASP.NET, JSP, COM/DCOM
ASP, ASP.NET, JSP, COM/DCOM
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Intro to mobile web application development
Intro to mobile web application developmentIntro to mobile web application development
Intro to mobile web application development
 
What are razor pages?
What are razor pages?What are razor pages?
What are razor pages?
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET Basic
 

Recently uploaded

The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
APCO
 
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
my Pandit
 
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Neil Horowitz
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Understanding User Needs and Satisfying Them
Understanding User Needs and Satisfying ThemUnderstanding User Needs and Satisfying Them
Understanding User Needs and Satisfying Them
Aggregage
 
Top mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptxTop mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptx
JeremyPeirce1
 
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
Lacey Max
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
my Pandit
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
Top Forex Brokers Review
 
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdfThe 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
thesiliconleaders
 
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & InnovationInnovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Operational Excellence Consulting
 
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challengesEvent Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Holger Mueller
 
3 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 20243 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 2024
SEOSMMEARTH
 
Digital Transformation Frameworks: Driving Digital Excellence
Digital Transformation Frameworks: Driving Digital ExcellenceDigital Transformation Frameworks: Driving Digital Excellence
Digital Transformation Frameworks: Driving Digital Excellence
Operational Excellence Consulting
 
GKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt PresentationGKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt Presentation
GraceKohler1
 
Business storytelling: key ingredients to a story
Business storytelling: key ingredients to a storyBusiness storytelling: key ingredients to a story
Business storytelling: key ingredients to a story
Alexandra Fulford
 
The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...
The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...
The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...
Stephen Cashman
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
LuanWise
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
my Pandit
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 

Recently uploaded (20)

The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
The APCO Geopolitical Radar - Q3 2024 The Global Operating Environment for Bu...
 
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
Taurus Zodiac Sign: Unveiling the Traits, Dates, and Horoscope Insights of th...
 
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
Brian Fitzsimmons on the Business Strategy and Content Flywheel of Barstool S...
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
 
Understanding User Needs and Satisfying Them
Understanding User Needs and Satisfying ThemUnderstanding User Needs and Satisfying Them
Understanding User Needs and Satisfying Them
 
Top mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptxTop mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptx
 
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
 
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdfThe 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
The 10 Most Influential Leaders Guiding Corporate Evolution, 2024.pdf
 
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & InnovationInnovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & Innovation
 
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challengesEvent Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
 
3 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 20243 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 2024
 
Digital Transformation Frameworks: Driving Digital Excellence
Digital Transformation Frameworks: Driving Digital ExcellenceDigital Transformation Frameworks: Driving Digital Excellence
Digital Transformation Frameworks: Driving Digital Excellence
 
GKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt PresentationGKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt Presentation
 
Business storytelling: key ingredients to a story
Business storytelling: key ingredients to a storyBusiness storytelling: key ingredients to a story
Business storytelling: key ingredients to a story
 
The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...
The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...
The Heart of Leadership_ How Emotional Intelligence Drives Business Success B...
 
Building Your Employer Brand with Social Media
Building Your Employer Brand with Social MediaBuilding Your Employer Brand with Social Media
Building Your Employer Brand with Social Media
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 

Super billing asp.net

  • 1.
  • 2. ASP ?  ASP stands for Active Server Pages.  ASP.NET is a web application framework developed by Microsoft to allow programmers to build dynamic web sites.  An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are executed on the server.  ASP is a Microsoft Technology that runs inside IIS.  IIS is the web server created by Microsoft for use with Windows NT family.  To run IIS you must have Windows NT 4.0 or later.  ChiliASP and InstantASP are two technology’s which runs ASP without Windows.
  • 3. History  After four years of development, and a series of beta releases in 2000 and 2001, ASP.NET 1.0 was released on January 5, 2002 as part of version 1.0 of the .NET Framework.  ASP.NET is a new ASP generation.  ASP.NET is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language.
  • 4. ASP.NET Versions ASP.NET Version Introduced with .NET & IDE 4.5.1 4.5.1 and Visual Studio 2013 4.5 4.5 and Visual Studio 2012 4.0 4.0 and Visual Studio 2010 3.5 3.5 and Visual Studio 2008 2.0 2.0 and Visual Studio 2005 1.1 1.1 and Visual Studio .NET 2003 1.0 1.0 and Visual Studio .NET
  • 5. Compilers  ASP.NET Intellisense Generator  Microsoft Visual Studio  Microsoft Visual Web Developer Express  Microsoft SharePoint Designer  MonoDevelop  SharpDevelop  Adobe Dreamweaver  CodeGear Delphi
  • 6. What can ASP do for you?  Websites that require user requests to be processed at server side can be developed using asp.net.  Access any data or databases and return the results to a browser.  To build an Internet application that supports adding, editing, deleting, and listing of information stored in a database.  Customize a Web page to make it more useful for individual users.  Applications such as:  Hotel Reservation web application 
  • 7. ASP.NET Models  ASP.NET supports three different development models:  Web Pages: Web Pages is the easiest development model for developing ASP.NET web sites.  MVC (Model View Controller): MVC is a model for building web applications using a MVC (Model View Controller) design.  Web Forms:
  • 8. Code-behind model  It encourages developers to build applications with separation of presentation and content in mind.  In theory, this would allow a web designer, for example, to focus on the design markup with less potential for disturbing the programming code that drives it.  This is similar to the separation of the controller from the view in Model–View–Controller (MVC) frameworks.  Using "code behind" separates the presentation logic from UI visualization.
  • 9. Program Structure  ASP.NET pages have the extension .aspx, and are normally written in VB (Visual Basic) or C# (C sharp).  Razor is a new and simple markup syntax for embedding server code into ASP.NET web pages.
  • 10. Data Types and Data Types You don't have to specify a type for a variable. Most of the time, ASP.NET can figure out the type based on how the data in the variable is being used. // Assigning a string to a variable. var greeting = "Welcome!"; // Assigning a number to a variable. var theCount = 3; // Assigning an expression to a variable. var monthlyTotal = theCount + 5; // Assigning a date value to a variable. var today = DateTime.Today; // Declaring variables using explicit data types. string name = "Joe"; int count = 5; DateTime tomorrow = DateTime.Now.AddDays(1);
  • 11. Razor Syntax Rules for C#  Razor code blocks are enclosed in @{ ... }  Inline expressions (variables and functions) start with @  Code statements end with semicolon  Variables are declared with the var keyword  Strings are enclosed with quotation marks  C# code is case sensitive  C# files have the extension .cshtml
  • 12. C# Code  <html>  <body>  <!-- Single statement block --> @{{ var myMessage = "Hello World"; }  <!-- Inline expression or variable --> <p>The value of myMessage is: @myMessage</p> <!-- Multi-statement block --> @{{ var greeting = "Welcome to our site!"; var weekDay = DateTime.Now.DayOfWeek; var greetingMessage = greeting + " Today is: " + weekDay; } } <p>The greeting is: @greetingMessage</p>  </body>  </html>
  • 14. Razor Syntax Rules for VB  Razor code blocks are enclosed in @Code ... End Code  Inline expressions (variables and functions) start with @  Variables are declared with the Dim keyword  Strings are enclosed with quotation marks  VB code is not case sensitive  VB files have the extension .vbhtml
  • 15. VB Code  html>  <body>  <!-- Single statement block  -->  @Code  dim myMessage = "Hello World"  End Code   <!-- Inline expression or variable -->  <p>The value of myMessage is: @myMessage</p>    <!-- Multi-statement block -->  @Code dim greeting = "Welcome to our site!"  dim weekDay = DateTime.Now.DayOfWeek  dim greetingMessage = greeting & " Today is: " & weekDay End Code <p>The greeting is: @greetingMessage</p>  </body>  </html>
  • 16. Expressions, Assignment Statements  Expressions  @(5 + 13) @{ var netWorth = 150000; }  @{ var newTotal = netWorth * 2; }  @(newTotal / 2)  Assignment Statements  var age = 17;
  • 17. Conditional Statements  @ { var txt = ""; if(DateTime.Now.Hour > 12)   {txt = "Good Evening";} else   {txt = "Good Morning";} } <html> <body> <p>The message is @txt</p> </body> </html>
  • 19. Objects, Methods  "Date" object is a typical built-in ASP.NET object.  Objects can also be self-defined.  Examples: a web page, a text box, a file, a database record, etc.  Objects may have methods they can perform.  Examples: A database record might have a "Save" method, an image object might have a "Rotate" method, an email object might have a "Send" method, and so on.  Objects also have properties that describe their characteristics.
  • 20. Example:  <table border="1"> <tr> <th width="100px">Name</th> <td width="100px">Value</td> </tr> <tr> <td>Day</td><td>@DateTime.Now.Day</td> </tr> <tr> <td>Hour</td><td>@DateTime.Now.Hour</td> </tr> <tr> <td>Minute</td><td>@DateTime.Now.Minute</td> </tr> <tr> <td>Second</td><td>@DateTime.Now.Second</td> </tr>
  • 22. Inheritance  All managed languages in the .NET Framework, such as Visual Basic and C#, provide full support for object-oriented programming including encapsulation, inheritance, and polymorphism.  Inheritance describes the ability to create new classes based on an existing class. public class A { public A() {{ } } public class B : A { public B() { }{ }
  • 24. Encapsulation  Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object.  Encapsulation is implemented by using access specifiers.  An access specifier defines the scope and visibility of a class member.  C# supports the following access specifiers:
  • 25. Example using System; class BankAccountPublic { public decimal GetAmount() { return 1000.00m; } } The GetAmount() method is public meaning that it can be called by code that is external to this class. elsewhere in your program, to use the method. BankAccountPublic bankAcctPub = new BankAccountPublic(); // call a public method decimal amount = bankAcctPub.GetAmount();
  • 26. Add Two Numbers @{{ var totalMessage = ""; if(IsPost)     {{     var num1 = Request["text1"];     var num2 = Request["text2"];     var total = num1.AsInt() + num2.AsInt();     totalMessage = "Total = " + total; }} } }} } } <!DOCTYPE html> <html> <body style="background-color: beige; font-family: Verdana, Arial;"> <form action="" method="post"> <p><label for="text1">First Number:</label><br> <input type="text" name="text1"></p> <p><label for="text2">Second Number:</label><br> <input type="text" name="text2"></p> <p><input type="submit" value=" Add "></p> </form> <p>@totalMessage</p> </body>