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

  • Home
  • SEARCH
  • 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

Our team is developing a rather big ASP.NET web project which initially started in
I'm developing a web service (in asp.net) and I would like to have each
TGIF, I have a website I'm developing which is using ASP.NET masterpage/sitemap/content pages setup.
I'm developing an ASP .NET web site that will allow users to view and
I am developing a ASP.Net web site and my page works normally in IE/Firefox/Opera
I am a new Asp.net Mvc programmer and I am developing a web site
I'm developing a new ASP .NET website which is effectively a subset of the
I'm currently developing a web application in ASP.Net with SQL Server and I would
I am developing an ASP.NET Ajax form, and decided to make most of the
I'm developing a website (using asp.net-mvc) with a SqlServer 2005 database. I have numerous

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.