Single Page Architecture

Posted on Posted in .net, ASP.Net Razor

In an SPA, the entire application runs as a single web page. In this approach, the presentation layer for the entire application has been factored out of the server and is managed from within the browser. To get a better idea of what this looks like, you’ll review a couple of illustrations. Moving the process […]

Objects in ASP.net Razor

Posted on Posted in .net, ASP.Net Razor

Page Objects: The most basic object in ASP.NET is the page. You can access properties of the page object directly without any qualifying object. The following code gets the page’s file path, using the Request object of the page:

You can use properties of the Page object to get a lot of information, such […]

Loops in ASP.net Razor

Posted on Posted in .net, ASP.Net Razor

Loops: Statements can be executed repeatedly in loops. For Loops: If you need to run the same statements repeatedly, you can program a loop. If you know how many times you want to loop, you can use a for loop. This kind of loop is especially useful for counting up or counting down: Example:

[…]

Conditions in ASP.net Razor

Posted on Posted in .net, ASP.Net Razor

Conditions: Programming Logic: Execute code based on conditions. The If Condition C# lets you execute code based on conditions. To test a condition you use an if statement. The if statement returns true or false, based on your test: The if statement starts a code block The condition is written inside parenthesis The code inside […]

ASP.net Razor Variables,Datatypes and Operators

Posted on Posted in .net, ASP.Net Razor

Variables: Variables are used to store data. The name of a variable must begin with an alphabetic character and cannot contain whitespace or reserved characters. A variable can be of a specific type, indicating the kind of data it stores. String variables store string values (“Welcome to Techkatak”), integer variables store number values (100), date […]

ASP.Net Razor Introduction

Posted on Posted in .net, ASP.Net Razor

What is Razor? Razor is not a programming language. It’s a server side markup language. Razor is a markup syntax that lets you embed server-based code (Visual Basic and C#) into web pages. Server-based code can create dynamic web content on the fly, while a web page is written to the browser. When a web […]