我正在尝试在强制时钟模式下使用带有数据选项时间框的jQM-DateBox,以获得24小时的小时范围,如下所示:[在此输入链接描述] [jQM-DateBox Time]
我只是复制粘贴我的应用程序中的代码
<label for="mydate">Time </label>
<input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "timebox", "overrideTimeFormat": 24}'>
Run Code Online (Sandbox Code Playgroud)
它仍然继续向我显示AM/PM模式.有人注意到这种行为吗?知道怎么解决吗?
请注意,在上面的链接(相同的代码!)一切似乎都正常工作,我没有其他jQM-DateBox模式的其他问题.
谢谢.
嗯,这很奇怪.我正在做我在网上大量发现的一切,但仍然无效.我想上传一个文件,所以在View I中:
@using (Html.BeginForm("Import", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<input type="file" name="uploadFile" />
<input type="submit" value="Importa" />
}
Run Code Online (Sandbox Code Playgroud)
这是Home/Import:
[AcceptVerbs(HttpVerbs.Post)] // or [HttpPost], nothing changes
public ActionResult Import(HttpPostedFileBase uploadFile)
{
Debug.WriteLine("Inside Import");
if (uploadFile == null)
Debug.WriteLine("null");
// Verify that the user selected a file
if (uploadFile != null && uploadFile.ContentLength > 0)
{
Debug.WriteLine("Valid File");
...
}
}
Run Code Online (Sandbox Code Playgroud)
它总是打印Inside Import + null.所以我确定我调用了正确的Controller Action,但它总是收到一个null HttpPostedFileBase.
有没有人有建议或已经找到(并解决)这种问题?谢谢!