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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:32:10+00:00 2026-05-26T05:32:10+00:00

In an ASP.NET project, I’m looking for a way to have a jQueryUI datepicker

  • 0

In an ASP.NET project, I’m looking for a way to have a jQueryUI datepicker come up when I press a button, then cause a postback when a date is selected. I’ve gotten the postback part working using this method, but I’m having trouble either getting the picker to go away when I want it to or to behave properly when a date is selected.

I’ve tried:

  • Attaching the picker to the button itself, but it sets the text of the button to the chosen date after I select and before the postback happens, which I don’t want.
  • Attaching the picker to the button and setting the altField option to an <input type='text' /> that’s positioned outside the browser window, but it still sets the text of the button when a date is chosen.
  • Making it inline by attaching it to a div and creating it in the onclick of the button. But according to this forum post, the inline datepicker by design doesn’t show a Done button, and I can’t dismiss it by clicking outside of it.
    • I tried adding a Done button of my own to the datepicker’s button container (that shows up when showButtonPanel is set), but it goes away when the month or year changes and none of the events I can bind to seem to allow me to add it back.
    • I tried attaching a mouseup handler to the document body so I can dismiss the datepicker when I click outside it, but that triggers when I click in the datepicker too, and seems to prevent the picker from working at all.

What’s the best approach here?

  • 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-26T05:32:10+00:00Added an answer on May 26, 2026 at 5:32 am

    I’ve used a hidden input field before and attached a datepicker to it with successful results:

    $("#date").datepicker({...}); // #date has style display='none'
    
    $("#show-date").click(function () {
        $("#date").datepicker("show");
    });
    

    Example: http://jsfiddle.net/7pttr/

    • 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 project I'm looking at and they want to use MySQL.
I have an ASP.NET Project. I am connecting to the DB and then closing
I have a ASP.NET project, in which I have a method with 10 local
I have an ASP.NET project which is a front-end to a database. In addition
I have an ASP.Net project using AJAX that I am putting on a server
I have an ASP.NET project (VS2008 on Windows 7 with either webforms, MVC1, or
I have a Asp.net project with complex calculation in database. for example: i need
I have a asp.net project, and in my design page I have some asp:Label
I have an ASP.NET project which gives me the following exception if I try
I have ASP.NET project which do some file access and manipulation, the methods which

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.