我有两列数据;
A:
12/31/2013
2013年12月30日
2013年12月29日
2013年12月28日
2013年12月27日
2012年12月26日
B:
10
10
10
10
10
五
我的公式是:= SUM(IF(年(G6:G11)= 2013,H6:H11,0),0)
在向导中,答案是50
但是当我按下回车键时,它会在页面上显示55.
有什么想法吗?
解决方案:在编写公式时,按"ctrl + shift + enter"谢谢
我在解决 ASP.NET MVC 6 中的文件/图像上传问题时遇到了麻烦。大多数教程似乎已经过时,甚至一些新教程似乎引用了没有意义的内容。
在我看来:
<div class="form-group">
@using (Html.BeginForm("Create", "PostNin", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<label asp-for="NinImageString" class="control-label"></label>
<input type="file" name="files" class="form-control" />
}
@*<input asp-for="NinImageString" class="form-control" />
<span asp-validation-for="NinImageString" class="text-danger"></span>*@
</div>
<div class="form-group">
<label asp-for="NinImageCaption" class="control-label"></label>
<input asp-for="NinImageCaption" class="form-control" />
<span asp-validation-for="NinImageCaption" class="text-danger"></span>
</div>
Run Code Online (Sandbox Code Playgroud)
然后在我的控制器中:
// GET: PostNins/Create
public IActionResult Create()
{
return View();
}
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,NinFk,NinDigit,NinImageString,NinImageCaption,NinNote")] PostNin postNin, IFormFile files)
{
// need code here
if (ModelState.IsValid)
{
_context.Add(postNin);
await …Run Code Online (Sandbox Code Playgroud)