Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:40:13+00:00 2026-06-12T06:40:13+00:00

I have an <ajaxToolkit:CalendarExtender> object in my page. It puts the selected date on

  • 0

I have an <ajaxToolkit:CalendarExtender> object in my page. It puts the selected date on a disabled TextBox (populated at start with the today date).
I would want a ‘None’ option in that calendar, for which the system would do a default operation (like it has the Today option). Is this possible? I searched information about this on the Internet, but I couldn’t find anything relevant. I wonder if I missed something. Or do I have to implement a separate logic (like enabling the TextBox and the user could leave it blank as a ‘None’ selection)?

Are there any calendar objects, different from ajax toolkit calendar extender, that can be used with asp.net that offer a ‘None’ option?

I am still opened for an answer even thought it’s just a ‘No’ (at least a little documented).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:40:15+00:00Added an answer on June 12, 2026 at 6:40 am

    There are two options available: the first one is to add some html element next to textbox and handle it click event in javascript. In this event handler clear calendar extender. This is a code:

     <script type="text/javascript">
          function clearDate(extenderId) {
               $find(extenderId).set_selectedDate(null);
          }
     </script>
    
    <asp:TextBox runat="server" ID="Date1" autocomplete="off" />
    <input type="button" value="x" onclick="clearDate('<%= defaultCalendarExtender.ClientID %>')" /> 
    <br />
    <ajaxToolkit:CalendarExtender ID="defaultCalendarExtender" runat="server" 
        TargetControlID="Date1" />
    

    And the second solution – to tweak sources of the AjaxControlToolkit project. Actually, you need to change only the Client/MicrosoftAjax.Extended/Calendar/CalendarBehavior.pre.js file. Replace it with code below. There is a lot of code actually because I’m too lazy to explain each change step-by-step 😉
    In brief I had add new element to calendar popup footer to reset selected date to default selected value if it was specified or to null. You may tweak also the Calendar.css file next to CalendarBehavior.pre.js

    Due to limitation on huge answers I had post javascript code on pastebin
    Pastebin link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Frens, i have a textbox with ajaxToolkit:CalendarExtender which losses data when i chose radio
Looking for some implementation advice: I have a page that has a 3-tab ajaxToolkit:TabContainer.
In my Summary page, I have two CalendarExtender controls to enable someone to select
I've got a page where I have a ModalPopUpExtender which I want to show
I am having an odd issue. I have a textbox with an ajaxToolkit HtmlEditorExtender
can we use AJAXToolKit and Jquery in the same page? Say i have ScriptManage
I have two ajaxtoolkit file ulopads on the same page like <ajaxToolkit:AjaxFileUpload id=AjaxFileUpload1 AllowedFileTypes=jpg,jpeg,gif,png
have written this little class, which generates a UUID every time an object of
have 2 questions : A computer with 32-bit address uses 2-level page table (9
Does asp ajaxtoolkit autocomplete combobox have some javascript functions available, so we could select

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.