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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:53:29+00:00 2026-06-17T10:53:29+00:00

The following issue is that i have 3 calendar controls (different ID) in a

  • 0

The following issue is that i have 3 calendar controls (different ID) in a ASP.NET page (Framework 4.0), the calendar control is not visible but when i click a button it opens up and lets you select a date, everything is fine until i open the second calendar control when i chose a different date it sets the previous date (from calendar control 1)

Calendedar control code

Protected Sub Calendar1_AddDataControl_SelectionChanged(sender As Object, e As EventArgs) Handles Calendar1_AddDataControl.SelectionChanged
    TextBox6_AddDataControl.Text = Calendar1_AddDataControl.SelectedDate.ToShortDateString
    Calendar1_AddDataControl.Visible = False
End Sub

Example:
Control 1 Date: 01/14/2013
Control 2 Date: 01/14/2013 but i selected 02/05/2013
Control 3 Date: 01/14/2013 but i seected 02/06/2013

i did my homework trying to read previous questions, looking over the internet and i was unable to find a solution to this, i’m a newbie at coding in ASP.Net using Visual Studio 2010.

  • 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-17T10:53:30+00:00Added an answer on June 17, 2026 at 10:53 am

    I understand your handler methods all have the same body except the TextBox identifier.
    When you select a date in your Calendar2_AddDataControl, you want to use its SelectedDate value for the TextBox. The handler method for Calendar2 would look like this:

    Protected Sub Calendar2_AddDataControl_SelectionChanged(sender As Object, e As EventArgs) Handles Calendar2_AddDataControl.SelectionChanged
        // Display SelectedDate of Calendar_2_
        TextBox7_AddDataControl.Text = Calendar2_AddDataControl.SelectedDate.ToShortDateString
        Calendar2_AddDataControl.Visible = False
    End Sub
    

    assuming it’s TextBox7 that should display its selected date.

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

Sidebar

Related Questions

OK guys so the issue is that I have following code: HttpWebRequest req; HttpWebResponse
I have the following issue: Let's say that I have a function that process
I have an ASP.NET repository site running on IIS6.0 and I have an issue
I have the following issue: I have a large grid, that is primarily sorted
In following code the issue is, that I cannot test dao.add() without using dao.list().size()
Consider the following two Java files that contain a simplified version of my issue
With the following routes I am running into a conflict issue. It seems that
I have the following issue related to iterating over an associative array of strings
I have the following issue and I would like to know what exactly happens.
I am getting my feet wet with Git and have the following issue: My

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.