How Would I Make an “ajax” Calendar Extender That Starts With The Current Date












-1















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>









share|improve this question

























  • i want that my calendar start from current month..with previous dates disbled...

    – A.G
    Nov 13 '18 at 8:39
















-1















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>









share|improve this question

























  • i want that my calendar start from current month..with previous dates disbled...

    – A.G
    Nov 13 '18 at 8:39














-1












-1








-1








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>









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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












1 Answer
1






active

oldest

votes


















0














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()






share|improve this answer
























  • 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











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
});


}
});














draft saved

draft discarded


















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









0














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()






share|improve this answer
























  • 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
















0














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()






share|improve this answer
























  • 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














0












0








0







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()






share|improve this answer













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()







share|improve this answer












share|improve this answer



share|improve this answer










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



















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Lugert, Oklahoma