html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
background:#edeef0;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #f5f5f5;
}
<footer class="footer">
<div class="container">
<p class="text-muted">© Osnova Websites</p>
</div>
</footer>
var list = new List<string>() { "one", "two", "three", "four" };
var expected = "two";
var result = list.Contains(expected);
// либо
result = list.Count(a => a == expected) > 0;
var regions = new List<string>() { "region 1", "region 2", "region 3", "region 4" };
repository.Colleges.Where(college => regions.Count(a => a == college.Area.Region.Name) > 0);
$('form').on('submit', function(){
var data = $(this).serialize();
$.ajax({
url: 'index.php',
type: 'GET или POST, по умолчанию GET',
dataType: 'тип возвращаемых данных: xml, json, script, html)',
data: data,
})
.done(function() {
console.log("Отправлено!");
})
.fail(function() {
console.log("Ошибка!");
})
.always(function() {
console.log("Функция завершена!");
});
return false;
});
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="ConnectionName"
connectionString="Server=serverName;Database=DataBaseName; User ID=UserName;Password=Password;" providerName="System.Data.SqlClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>