Skip to content

Instantly share code, notes, and snippets.

@takepara
Created May 15, 2014 14:30
Views/Home/Index.cshtml
@{
Layout = "/Views/Shared/_Layout.cshtml";
ViewBag.Title = "Home Page";
string helloClass = null;
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
</div>
<div class="row">
<h3 title="@Model.Name" class="@helloClass">Hello @Model.Name!</h3>
</div>
@using(Html.BeginForm()){
@Html.TextBoxFor(m =>m.Name)
<input type="submit" />
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment