TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Using JQuery Timer in ASP.NET
Rajesh KP
Nov 12, 2014
8.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog you will learn how to populate Date & Time Picker in ASP.NET.
TimeCalender.zip
This blog taken reference from Mugifly DateTimePicker. It help to populate Date & Time Picker.
To use, need to add JS reference
<%--DateTime Picker--%>
<link href=
"js/Mugifly_DateTimePicker/jquery.simple-dtpicker.css"
rel=
"stylesheet"
/>
<script src=
"js/Mugifly_DateTimePicker/jquery.simple-dtpicker.js"
type=
"text/javascript"
></script>
If we are using update panel, need to put following lines:
<%--Display Datetime--%>
<script type=
"text/javascript"
>
$(document).ready(
function
() {
TimeDisplay();
var
prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(TimeDisplay);
});
Else, put the below lines, it will enough:
function
TimeDisplay() {
$(
'*[id=<%= txtDuration.ClientID %>]'
).appendDtpicker({
"futureOnly"
:
true
,
"minuteInterval"
: 1
});
}
</script>
Using Jquery Timer in ASP.NET
Next Recommended Reading
Showing Page Loader Using JQuery in ASP.NET