Skip to content

Instantly share code, notes, and snippets.

View samueleresca's full-sized avatar

Samuele Resca samueleresca

View GitHub Profile
@ViewBag.Title
@RenderSection("Header") <!--Renderizzo la sezione "Header"-->
@RenderSection("Body")<!--Renderizzo la sezione "Body"-->
@if (IsSectionDefined("Footer")) {
@RenderSection("Footer")
} else {
<h4>This is the default footer</h4>
}
@RenderSection("scripts", false)
<div>This is the message from the partial view @Html.ActionLink("This is the link to the Index action", "Index")</div>
@{
ViewBag.Title = "List";
}
<h3>This is the View</h3>
@Html.Partial("MyPartial")
@{
ViewBag.Title = "List";
}
<h3>This is the View</h3>
;
@Html.Action("Time");
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World from Node.js!n');
console.log('Handled request');
}).listen(8080, 'localhost');
console.log('Server running at http://localhost:8080/');
<ReportParameters>
<ReportParameter Name="CodiceSettore">
<DataType>Integer</DataType>
<Prompt>Codice Settore</Prompt>
<ValidValues>
<ParameterValues>
<ParameterValue>
<Value DataType="Integer">1</Value>
<Label>Primo</Label>
</ParameterValue>
<ReportParameters>
<ReportParameter Name="CodiceSettore">
<DataType>Integer</DataType>
<Prompt>Codice Settore</Prompt>
<ValidValues>
<ParameterValues>
<ParameterValue>
<Value>1</Value>
<Label>Primo</Label>
</ParameterValue>
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Bungles.FindDrinks.Models
{