[英]fullcalendar in VB.Net ASP MVC
I try to make a scheduler using fullcalendar. 我尝试使用fullcalendar创建一个调度程序。 I cannot find a tutorial that use vb.net.
我找不到使用vb.net的教程。 So i follow this tutorial A complete web diary system for jQuery and C# MVC by converting c# code into vb.net.
因此,我通过将c#代码转换为vb.net来遵循针对jQuery和C#MVC的完整教程Web日记本系统 。 But i have problem to display the calendar.
但是我有显示日历的问题。 I have added fullcalendar.js to my scripts folder and fullcalendar.css into content folder.
我已将fullcalendar.js添加到我的脚本文件夹,并将fullcalendar.css添加到内容文件夹。 But the result shows nothing.
但是结果什么也没显示。 A blank page.
空白页。 This is my html code:
这是我的html代码:
<div class="row">
<div id='calendar' style="width:65%"></div>
<script>
$(document).ready(function () {
$('#calendar').fullcalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultView: 'agendaDay',
editable: true,
allDaySlot: false,
selectable: true,
slotMinutes: 15,
});
})
</script>
You need to include the CSS and JS on the page. 您需要在页面上包括CSS和JS。 Just adding them to the folders is probably not enough.
仅将它们添加到文件夹中可能还不够。
_Layout.cshtml
(which makes them available on all pages) _Layout.cshtml
(这使它们在所有页面上都可用) Example: 例:
<link href="@Url.Content("~/Content/fullcalendar.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/fullcalendar.js")" type="text/javascript"></script>
Also you have an unclosed <div class="row">
另外,您还有一个未封闭的
<div class="row">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.