How Would I Make an “ajax” Calendar Extender That Starts With The Current Date
I want to set the start and end date of an ajax
calendar extender control.
I want to make it so that my calendar starts from todays date.
<div class="col-md-2 col-sm-2 col-xs-12">
<asp:Label ID="lblTravelStartDate" runat="server" Text="Travel Start Date" class="apply-page-label" ></asp:Label>
<div class="posRelative" id="Div3">
<asp:TextBox ID="txtTravelFromDate" runat="server" onpaste="return false;" placeHolder="Travel Start Date" class="form-control" onclick="removeerror(this.id)" autopostback="true" . OnTextChanged="txtTravelFromDate_TextChanged"></asp:TextBox>
<asp:ImageButton runat="server" ID="cmdTravelFromDate" ImageUrl="images/calander.png" Height="25px" Width="25px" Style="position: absolute; top: 3px; right: 5px;" OnClientClick="removeError('ContentPlaceHolder1_txtTravelFromDate')" />
<cc1:CalendarExtender ID="calTravelFromDate" runat="server" Enabled="True" Format="dd-MM-yyyy" TargetControlID="txtTravelFromDate" PopupButtonID="cmdTravelFromDate" CssClass="calender"> . </cc1:CalendarExtender>
</div>
javascript jquery asp.net ajax jquery-ui-sortable
add a comment |
I want to set the start and end date of an ajax
calendar extender control.
I want to make it so that my calendar starts from todays date.
<div class="col-md-2 col-sm-2 col-xs-12">
<asp:Label ID="lblTravelStartDate" runat="server" Text="Travel Start Date" class="apply-page-label" ></asp:Label>
<div class="posRelative" id="Div3">
<asp:TextBox ID="txtTravelFromDate" runat="server" onpaste="return false;" placeHolder="Travel Start Date" class="form-control" onclick="removeerror(this.id)" autopostback="true" . OnTextChanged="txtTravelFromDate_TextChanged"></asp:TextBox>
<asp:ImageButton runat="server" ID="cmdTravelFromDate" ImageUrl="images/calander.png" Height="25px" Width="25px" Style="position: absolute; top: 3px; right: 5px;" OnClientClick="removeError('ContentPlaceHolder1_txtTravelFromDate')" />
<cc1:CalendarExtender ID="calTravelFromDate" runat="server" Enabled="True" Format="dd-MM-yyyy" TargetControlID="txtTravelFromDate" PopupButtonID="cmdTravelFromDate" CssClass="calender"> . </cc1:CalendarExtender>
</div>
javascript jquery asp.net ajax jquery-ui-sortable
i want that my calendar start from current month..with previous dates disbled...
– A.G
Nov 13 '18 at 8:39
add a comment |
I want to set the start and end date of an ajax
calendar extender control.
I want to make it so that my calendar starts from todays date.
<div class="col-md-2 col-sm-2 col-xs-12">
<asp:Label ID="lblTravelStartDate" runat="server" Text="Travel Start Date" class="apply-page-label" ></asp:Label>
<div class="posRelative" id="Div3">
<asp:TextBox ID="txtTravelFromDate" runat="server" onpaste="return false;" placeHolder="Travel Start Date" class="form-control" onclick="removeerror(this.id)" autopostback="true" . OnTextChanged="txtTravelFromDate_TextChanged"></asp:TextBox>
<asp:ImageButton runat="server" ID="cmdTravelFromDate" ImageUrl="images/calander.png" Height="25px" Width="25px" Style="position: absolute; top: 3px; right: 5px;" OnClientClick="removeError('ContentPlaceHolder1_txtTravelFromDate')" />
<cc1:CalendarExtender ID="calTravelFromDate" runat="server" Enabled="True" Format="dd-MM-yyyy" TargetControlID="txtTravelFromDate" PopupButtonID="cmdTravelFromDate" CssClass="calender"> . </cc1:CalendarExtender>
</div>
javascript jquery asp.net ajax jquery-ui-sortable
I want to set the start and end date of an ajax
calendar extender control.
I want to make it so that my calendar starts from todays date.
<div class="col-md-2 col-sm-2 col-xs-12">
<asp:Label ID="lblTravelStartDate" runat="server" Text="Travel Start Date" class="apply-page-label" ></asp:Label>
<div class="posRelative" id="Div3">
<asp:TextBox ID="txtTravelFromDate" runat="server" onpaste="return false;" placeHolder="Travel Start Date" class="form-control" onclick="removeerror(this.id)" autopostback="true" . OnTextChanged="txtTravelFromDate_TextChanged"></asp:TextBox>
<asp:ImageButton runat="server" ID="cmdTravelFromDate" ImageUrl="images/calander.png" Height="25px" Width="25px" Style="position: absolute; top: 3px; right: 5px;" OnClientClick="removeError('ContentPlaceHolder1_txtTravelFromDate')" />
<cc1:CalendarExtender ID="calTravelFromDate" runat="server" Enabled="True" Format="dd-MM-yyyy" TargetControlID="txtTravelFromDate" PopupButtonID="cmdTravelFromDate" CssClass="calender"> . </cc1:CalendarExtender>
</div>
javascript jquery asp.net ajax jquery-ui-sortable
javascript jquery asp.net ajax jquery-ui-sortable
edited Nov 13 '18 at 8:35
Universal Link
13012
13012
asked Nov 13 '18 at 7:43
A.GA.G
12
12
i want that my calendar start from current month..with previous dates disbled...
– A.G
Nov 13 '18 at 8:39
add a comment |
i want that my calendar start from current month..with previous dates disbled...
– A.G
Nov 13 '18 at 8:39
i want that my calendar start from current month..with previous dates disbled...
– A.G
Nov 13 '18 at 8:39
i want that my calendar start from current month..with previous dates disbled...
– A.G
Nov 13 '18 at 8:39
add a comment |
1 Answer
1
active
oldest
votes
The next time you should post your code if you don'w want to be down voted.
What you want is to set YourAjaxCalendarID.StartDate = DateTime.Now()
from your codebehind Page_Load()
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276096%2fhow-would-i-make-an-ajax-calendar-extender-that-starts-with-the-current-date%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The next time you should post your code if you don'w want to be down voted.
What you want is to set YourAjaxCalendarID.StartDate = DateTime.Now()
from your codebehind Page_Load()
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
add a comment |
The next time you should post your code if you don'w want to be down voted.
What you want is to set YourAjaxCalendarID.StartDate = DateTime.Now()
from your codebehind Page_Load()
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
add a comment |
The next time you should post your code if you don'w want to be down voted.
What you want is to set YourAjaxCalendarID.StartDate = DateTime.Now()
from your codebehind Page_Load()
The next time you should post your code if you don'w want to be down voted.
What you want is to set YourAjaxCalendarID.StartDate = DateTime.Now()
from your codebehind Page_Load()
answered Nov 13 '18 at 8:29
a.bajorinasa.bajorinas
1665
1665
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
add a comment |
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
He did post his code but he didn't format it correctly so it wasn't displayed. This edit should have resolved that issue.
– Universal Link
Nov 13 '18 at 8:35
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
i dont have startdate in my code behind..i only have selecteddate...
– A.G
Nov 13 '18 at 8:38
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
I just tested on my local machine and everything works as intended. Are you sure you are running the latest toolkit version?
– a.bajorinas
Nov 13 '18 at 11:00
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276096%2fhow-would-i-make-an-ajax-calendar-extender-that-starts-with-the-current-date%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
i want that my calendar start from current month..with previous dates disbled...
– A.G
Nov 13 '18 at 8:39