overview of razor syntax

17
About Me Lohith G N Developer Evangelist, Telerik Microsoft MVP – ASP.NET/IIS [email protected] www.telerikhelper.net www.kashyapas.com @kashyapa

Upload: lohith-gn

Post on 18-Dec-2014

172 views

Category:

Technology


3 download

DESCRIPTION

Quick overview of Razor syntax...

TRANSCRIPT

Page 1: Overview of razor syntax

About Me

Lohith G N Developer Evangelist, Telerik

Microsoft MVP – ASP.NET/IIS

[email protected]

www.telerikhelper.net

www.kashyapas.com

@kashyapa

Page 2: Overview of razor syntax

Agenda

Razor (1 Hr)

ASP.NET MVC

(2 Hr)Break

Web API(1 Hr)

MVC Mobile Feature

s(1 Hr)

Q & A(1 Hr)

Page 3: Overview of razor syntax

Telerik at a Glance• Established in 2002• Telerik is now a leading vendor of productivity tools & solutions• 11 global offices, 700+ people, 100,000+ loyal customers in over 90

countries• 880,000 Registered users in the Telerik Online Community • True global vendor – no vertical or geographical focus• Numerous business awards, hundreds of technology awards

“Deliver More Than Expected”

Page 4: Overview of razor syntax

IMPROVING DEVELOPER PRODUCTIVITY

HOW ABOUT SOME FREE HOURS FOR LEISURE ?

Page 5: Overview of razor syntax

End to End ProviderSolutions for all aspects of Software Development

Automated Functional & Performance UI TestingUnit TestingLoad/Stress TestingExploratry Testing

Testing

Requirements GatheringProject ManagementDefect ManagementTeam and Customer

Collaboration

Planning

Multi-platform UI toolsCode quality and performance toolsData access and reporting tools

Construction

Page 6: Overview of razor syntax

Overview of Razor SyntaxLAP AROUND RAZOR

Page 7: Overview of razor syntax

What is Razor

View Engine in ASP.NET

Design Goals Compact, Expressive, Fluid

Easy to Learn

Is not a new language

Works with any text editor

Page 8: Overview of razor syntax

1. Add Code using @ character

Page 9: Overview of razor syntax

2. Enclose code blocks in braces

Page 10: Overview of razor syntax

3. Inside a block, semicolon ends the statement

Page 11: Overview of razor syntax

4. Use Variables to store values

Page 12: Overview of razor syntax

5. Enclose literal string values in double quotation marks

Page 13: Overview of razor syntax

6. Code is Case Sensitive

Page 14: Overview of razor syntax

7. Using Objects

Page 15: Overview of razor syntax

8. Decision Making Code

Page 16: Overview of razor syntax

Thank You.

Page 17: Overview of razor syntax

Q & A