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 8229645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:51:57+00:00 2026-06-07T16:51:57+00:00

I am using a textbox with calendar extender . My problem is, when i

  • 0

I am using a textbox with calendar extender. My problem is, when i click on calendar image(to open the calendar), today’s date is defaultly coming in textbox

here is my code

<asp:TextBox ID="txtExpiryDate" runat="server" Width="70px" CssClass="txt_box"></asp:TextBox>

<input type="image" id="ImageStart" runat="server" src="~/images/date-picker-icon.jpg" />

<cc1:MaskedEditExtender ID="MaskedEditExtender2" TargetControlID="txtExpiryDate" MaskType="Date" Mask="99/99/9999" runat="server"></cc1:MaskedEditExtender>     

<cc1:calendarextender ID="Calendarextender2" OnClientDateSelectionChanged="dateSelectionChanged" OnClientShown="clientShown" TargetControlID="txtExpiryDate" Format="MM/dd/yyyy" PopupButtonID="ImageStart" Enabled="true" runat="server"> </cc1:calendarextender>

how to solve this issue..

Please Help.

  • 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-07T16:52:00+00:00Added an answer on June 7, 2026 at 4:52 pm

    I assume that you’ve copied the markup of your CalendarExtender from somewhere but without the javascript function clientShown.

    This registers the (clientside) event:

    <cc1:calendarextender ID="Calendarextender2"
        OnClientShown="clientShown" ...
    

    So either remove that event declaration or create the function.

    For example:

    <script type="text/javascript">
        function clientShown(sender, args) {
            var extender= $find('Calendarextender2');
            // the following is just for demonstration
            //sender.set_visibleDate(extender._selectedDate);
            //sender.set_todaysDate(extender._selectedDate);
            //sender.set_selectedDate(extender._selectedDate);
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using jquery date picker the calendar icon trigger image near textbox is
I am using ajax calendar extender for 'From date' and 'To date' text box,
I'm using the Ajax control toolkit calendar extender on a textbox with a submit
i am using a calendar extender control in my asp.net web application. i want
I found an article here: Winforms Textbox - Using Ctrl-Backspace to Delete Whole Word
I'm trying to scroll a textbox using the form's WndProc method. The code I've
I'm trying to implement autocomplete for a textbox using the following code, but it's
I am using RangeValidator to validate date enter in textbox and its working fine
How can i attach Calendar(Global) on click event of textbox in dd-mm-yyyy format?? I
I'm interested in using an AJAX extension, namely this textbox calendar control. Has anyone

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.