---
title: "Server Side Environment in ASP.NET"  
description: "In this blog, I’m explaining about server side environment in .Net  The server side environment that runs a scripting language is a web server. A user"  
author: "priyanka kushwaha"  
published: 2015-02-18  
updated: 2015-02-18  
canonical: https://www.mindstick.com/blog/775/server-side-environment-in-asp-dot-net  
category: ".net"  
tags: ["asp.net"]  
reading_time: 2 minutes  

---

# Server Side Environment in ASP.NET

In this blog, I’m explaining about [server side](https://www.mindstick.com/forum/318/how-to-call-javascript-fuction-in-server-side) [environment](https://yourviews.mindstick.com/view/308/need-to-create-a-supportive-work-environment-for-women) in .Net\

The server side environment that runs a [scripting language](https://www.mindstick.com/forum/156500/is-javascript-only-client-side-scripting-language) is a [web server](https://www.mindstick.com/articles/23199/digital-personal-server-the-premium-web-server). A user’s request is fulfilled by running a script directly on the web server to generate dynamic HTML pages. This HTML is then sent to the client browser. It is usually used to provide [interactive web](https://answers.mindstick.com/qa/104427/how-to-use-javascript-for-interactive-web-pages) sites that interface to databases or other [data stores](https://www.mindstick.com/articles/12053/big-data-nosql-data-stores) on the server.

A server-side script is a series of instructions used to sequentially issue commands to the Web server. These scripts are differentiated from text and HTML by delimiters. A delimiter is a character or sequence of [characters](https://answers.mindstick.com/qa/42112/who-is-the-originator-of-avengers-characters) that marks the beginning or end of a unit. ASP.NET uses the delimiters <% and %> to enclose script commands. Within the delimiters, you can include any command that is valid for the scripting language you are using.

##### Using code

```
<%@ %>:  Text template Directive<%= %> and <% %> Embedded code Blocks<:>: HTML Encoding Output<#>:Data binding Expression<$>:Expression<%--   --%>:Server side Comments@:Razor code instruction@*  *@:Comment in Razor
```

##### Example

[Data binding](https://www.mindstick.com/articles/337466/exploring-data-binding-in-mvc-how-it-connects-model-and-view) [Expression](https://www.mindstick.com/articles/1861/sqlite-expressions)

```
<%# Bind("id") %>
```

##### Embedded Code Blocks

```
<%var role = Session["RoleName"] != null ? Session["RoleName"].ToString() : "";%>  
```

---

Original Source: https://www.mindstick.com/blog/775/server-side-environment-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
