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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:07:50+00:00 2026-06-14T09:07:50+00:00

I am creating a user control that uses the jQuery date picker widget, as

  • 0

I am creating a user control that uses the jQuery date picker widget, as follows:

$(function () {
    $("#datePickerYearMonth").datepicker({
        changeMonth: true,
        changeYear: true,
        dateFormat: 'dd-M-yy',
    });
});

But instead of hard coding the options I would like to create properties or something like that so that I can change the properties dynamically from code behind.

Is this possible?

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

    You can use inline code, like this:

    In code behind:

       protected bool ChangeMonth
       {
              get{
                     return true;
              }
       }
    

    And this in javascript:

       $(function () {
            $("#datePickerYearMonth").datepicker({
                changeMonth: <%=ChangeMonth%>,
                changeYear: true,
                dateFormat: 'dd-M-yy',
            });
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a user control in ASP.NET (using VB) that uses the autocomplete
Given that you're creating a User Control in WPF that will be displayed on
I have a user control that I'm creating that is using some AJAX in
Hi I'm creating test application that has a user control with a Button that
I'm creating my own user control that can display n amount of images. Here
I am creating a user control that I would like to be able to
I'm creating user control in MVC3 application. My view model looks like that: public
I am creating a custom WPF control that uses an image inside of it.
.I am creating a user control that stacks three WPF month calendars (Master, Slave1,
I'm creating a silverlight user control that I should be able to drag and

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.