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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:08:34+00:00 2026-05-26T19:08:34+00:00

Im sure this is a very simple and easy to answer question but I’ve

  • 0

Im sure this is a very simple and easy to answer question but I’ve been looking at this too long and being new to ASP I cant seem to find a solution that works.

I have an ASP calendar extender, I click it and the calendar displays as expected, the selected date appears in the textbox, but when the page then posts back I cant get the selected date value from either the textbox.text or the calendarextender.selecteddate properties, I tested this by trying to assign these values to a string variable in the page_load event.

Am I missing something here?

Here is my code so far:

I have the script manager declared at the start of my form

   <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/>

Then my textbox / datepicker within table lower down

 <asp:TextBox ID="DateChooser"  
                     runat="server" 
                     ReadOnly="true"
                     style="text-align: center" Width="85px" 
                     OnTextChanged="DateChooser_TextChanged"
                     AutoPostBack="true" />  

         <div style='position:relative; z-index:1'>

            <cc1:CalendarExtender CssClass="cal_Theme1" 
                                  ID="DateChooser_CalendarExtender" 
                                  runat="server" 
                                  Enabled="True" 
                                  TargetControlID="DateChooser" 
                                  PopupPosition="Right" 
                                  Format="dd MMM yyyy" 
                                  />
      </div>
    </td>
  • 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-05-26T19:08:35+00:00Added an answer on May 26, 2026 at 7:08 pm

    Since you have set textbox ReadOnly to true it lose changes performed by client-side code on postback. Follow this link for more detailed explanation: TextBox.ReadOnly Property Consider to set readonly attribute on textbox by client code.

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

Sidebar

Related Questions

I am sure this is a very simple problem, but I am new to
I'm sure this is a very simple question, but embarrassed to say I can't
This is probably a very easy question to answer, but for the life of
I'm sure this is very easy, and very simple, but I'm a complete AppleScript
I feel like this is a simple question, but I am still relatively new
This seems like a very simple question, but I've only found complicated answers. I've
I am sure this is an easy thing to do. I am very new
Im sure there is a very simple solution for this. I have a bunch
Pretty sure this question counts as blasphemy to most web 2.0 proponents, but I
Im sure this will be a simple one but have a project that started

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.