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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:11:12+00:00 2026-05-19T14:11:12+00:00

I am developing a ASP.NET web site, in which I have used a AJAX

  • 0

I am developing a ASP.NET web site, in which I have used a AJAX control Tool kit’s CalendarExtender to select a date in asp:TextBox. I want to set the VisibleDate property of the asp:Calendar control based on the selected date from the CalendarExtender control. I request you to help me to achieve this functionality.
Or Is there any way to post back the page on selection of date from CalendarExtender control so that I can handle TextChanged event in the codebehind and set the VisibleDate property at within this event handler?
Thanks

  • 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-19T14:11:13+00:00Added an answer on May 19, 2026 at 2:11 pm

    I would use an asynchronous postback on TextChanged-event to set the VisibleDate property:

    aspx:

    <asp:UpdatePanel ID="UdpDatePanel" runat="server" UpdateMode="conditional" ChildrenAsTriggers="false"  >
       <ContentTemplate>
          <asp:Calendar ID="Calendar1"  runat="server" />
          <asp:TextBox ID="TxtDate" AutoPostBack="true" runat="server" />
          <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="TxtDate" runat="server" />
       </ContentTemplate> 
       <Triggers>
            <asp:AsyncPostBackTrigger ControlID="TxtDate" EventName="TextChanged" />
       </Triggers>
    </asp:UpdatePanel> 
    

    codebehind:

    Public Partial Class CalendarDemo
        Inherits System.Web.UI.Page
    
        Private Sub TxtDate_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TxtDate.TextChanged
            Dim d As Date
            If Date.TryParse(Me.TxtDate.Text, d) Then
                Me.Calendar1.VisibleDate = d
            End If
        End Sub
    
    End Class
    

    On this way it keeps performant and you don’t have to mess around with javascript that might change in future releases of asp.net-ajax toolkit.

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

Sidebar

Related Questions

I have a project (Web Application) which I have been developing in C#/ASP.NET, and
I'm developing an ASP.NET application which needs Windows Authentication. I have the web.config set
I'm new to the asp.net. I'm developing one web site which is having diffenent
I am developing an asp.net web site. I have an aspx page. I want
I'm developing my ASP.NET web app using VS2010,C#. I have a user control contained
I'm developing a Web Site using ASP.NET MVC 3, Nowadays I need to encrypt
I am using ASP.NET MVC for developing a web site. I am using jquery
I have an asp.net c# website I'm developing with Visual Web Developer Express Edition
TGIF, I have a website I'm developing which is using ASP.NET masterpage/sitemap/content pages setup.
I'm developing a custom server control in Asp.NET (.NET 3.5) which inherits the CompositeControl

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.