我想顯示日期和時間選擇器。我GOOGLE了很多次,但沒有得到任何東西。我從「keduoi.com」下載文件並在mu項目中使用,但不能正常顯示文本字段。我正在嘗試從this link。Asp.net中的DateTimepicker
這裏是代碼:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LaterTime_Pick_up.aspx.cs" Inherits="LocationBasedTaxiServices.LaterTime_Pick_up" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="styles/kendo.common.min.css" rel="stylesheet" />
<link href="styles/kendo.default.min.css" rel="stylesheet" />
<script type="" src="js/jquery.min.js"></script>
</head>
<body>
<div id="example" class="k-content">
<div id="to-do">
<input id="datetimepicker" style="width:200px;" />
</div>
<script type="">
$(document).ready(function() {
// create DateTimePicker from input HTML element
$("#datetimepicker").kendoDateTimePicker({
value: new Date()
});
});
</script>
<style scoped>
#to-do {
height: 52px;
width: 221px;
margin: 30px auto;
padding: 91px 0 0 188px;
background: url('../../content/web/datepicker/todo.png') transparent no-repeat 0 0;
}
</style>
</div>
</body>
</html>
它只顯示文本框。
你缺少JS/kendo.all.min.js在你的代碼 – Alex 2013-04-23 08:02:33
妳儀式鏈接...但我還沒有提交該 – pareshy 2013-04-23 08:47:48
你或許應該買它:)或使用其試用30天。 – Alex 2013-04-23 08:49:21