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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:10:13+00:00 2026-06-07T09:10:13+00:00

I am having a datetime control in sharepoint custom webpart <SharePoint:DateTimeControl runat=server ID=txtUKdtofAdm LocaleId=2057

  • 0

I am having a datetime control in sharepoint custom webpart

<SharePoint:DateTimeControl runat="server" ID="txtUKdtofAdm" LocaleId="2057" DateOnly="True"
OnValueChangeClientScript="validateControlsUK();" AutoPostBack="true" 
OnDateChanged="txtUKdtofAdm_OnDateChanged"></SharePoint:DateTimeControl>

I want to call a js as well as server side function on date changed.I have done as above but, client side function does not execute. can anyone help me in order to get this workin wherein if a date is changed than both js on client side and onchange server side event should work.

In my case only server side is getting fired.

Kindly help. thank you in advance

  • 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-07T09:10:15+00:00Added an answer on June 7, 2026 at 9:10 am

    Ok, I got the solution to this.

    I removed AutoPostBack="true" and in javascript I used
    __doPostBack('<%= txtUKdtofAdm.Controls[0].ClientID %>', '');
    which forces a postback which in turn fires OnDateChanged="txtUKdtofAdm_OnDateChanged"

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

Sidebar

Related Questions

I'm having a problem with grouping in SQL Server. I have a datetime column
How to Filter data having DateTime format according to the CurrentDateTime in SharePoint? I
A column name rcvdate, which is having datetime type, the value is like this:
I'm having two DateTime -objects: $start = new DateTime('first thursday of June 2012'); $end
Currently having some problems- now = datetime.datetime.now() month = now.strftime(%B) site = wikipedia.getSite('en', 'wikiquote')
I'm having some trouble with the output of a DateTime value. My computer's current
I've been having problems with Jquery Datetime picker. The slider wouldn't work on touch
I'm having issues trying to parse a datetime field that I am returning in
I am having a weird problem with PHP's DateTime diff method. I've been using
I am having problems with the following code: public class ClientGroupDetails { public DateTime

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.