This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div>This is the message from the partial view @Html.ActionLink("This is the link to the Index action", "Index")</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
ViewBag.Title = "List"; | |
} | |
<h3>This is the View</h3> | |
@Html.Partial("MyPartial") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Time(){ | |
return PartialView(DateTime.Now); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The time is: @Model.ToShortTimeString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
ViewBag.Title = "List"; | |
} | |
<h3>This is the View</h3> | |
; | |
@Html.Action("Time"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ReportParameters> | |
<ReportParameter Name="CodiceSettore"> | |
<DataType>Integer</DataType> | |
<Prompt>Codice Settore</Prompt> | |
<ValidValues> | |
<ParameterValues> | |
<ParameterValue> | |
<Value DataType="Integer">1</Value> | |
<Label>Primo</Label> | |
</ParameterValue> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ReportParameters> | |
<ReportParameter Name="CodiceSettore"> | |
<DataType>Integer</DataType> | |
<Prompt>Codice Settore</Prompt> | |
<ValidValues> | |
<ParameterValues> | |
<ParameterValue> | |
<Value>1</Value> | |
<Label>Primo</Label> | |
</ParameterValue> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Web; | |
using System.Runtime.Serialization; | |
namespace Bungles.FindDrinks.Models | |
{ |