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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:56:38+00:00 2026-05-26T12:56:38+00:00

I have an asp:TextBox associated to a jquery DatePicker. This input has a onTextChangedEvent

  • 0

I have an asp:TextBox associated to a jquery DatePicker. This input has a onTextChangedEvent that updates a Literal Control.

All this code is inside an UpdatePanel so the Literal Control changes but the page doesn’t refresh.

The problem I’m facing is that when the event fires, the image that displays the DatePicker disappears. Here’s a piece of my code:

<asp:UpdatePanel ID="UpdatePanel" runat="server">
    <ContentTemplate>

        <asp:TextBox runat="server" OnTextChanged="EditFromDate_TextChanged"
        AutoPostBack="true"></asp:TextBox>

    </ContentTemplate>
 </asp:UpdatePanel>

Then I have:

$(document).ready(function()
{
    $("#EditFromDate").datepicker({ ... });
});

Should I put the code that initiates the DatePicker elsewhere?
I’ve tried placing it in Page Load using Page.RegisterStartup but same result.

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-26T12:56:39+00:00Added an answer on May 26, 2026 at 12:56 pm

    Use pageLoad, it fires on partial postbacks:

       function pageLoad() { 
          $("#EditFromDate").datepicker({ ... });
    
       } 
    

    $(document).ready() and pageLoad() are not the same!

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

Sidebar

Related Questions

I have an ASP.NET page that has two input elements: A TextBox that is
I have an asp textbox that I have hooked up to a jQuery calendar
I have asp.net TextBox with ontextchanged event this is search text box in my
I have an asp:TextBox and I want to validate that the number of characters
I have an asp.net textbox and a MaskedEditExtender control attached to it. The textbox
I have a asp.net web content from that have a asp.net textbox and I
I have an ASP.NET control. I want to align the textbox to the right
I have a asp.net input box: <asp:TextBox ID=InCL runat=server Text=></asp:TextBox> As soon as a
On one of my ASP.NET pages I have several asp:textbox fields. On this page
I have an ASP.NET user control that contains a text box control and a

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.