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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:26:48+00:00 2026-05-15T04:26:48+00:00

I have a modalpopup inside it I have checkboxes,when I check the checkboxes and

  • 0

I have a modalpopup inside it I have checkboxes,when I check the checkboxes and save the changes there is a dynamically created table with dynamically generated labels.I have a checkbox Birthdate inside the modal popup which shows the mm/dd only.And another checkbox below it that will show the year only, and will be visible if Birthdate checkbox is checked.
I want to show that if Birthdate checkbox is checked and the save button is clicked then insisde the dynamic table it will show the mm/dd only.And if year checkbox is checked ,and the save button is clicked, then it will show the Birthdate inside the dynamically created table as mm/dd/year.

  • 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-15T04:26:49+00:00Added an answer on May 15, 2026 at 4:26 am

    seems like there’s multiple questions here – not sure which one(s) you’re asking.

    1) how to format a date in format X or Y?
    – You can use String.Format(“{0:MM/dd}”, yourDateTime) or yourDateTime.ToString(“MM/dd”) or whatever for that case. Add on /yyyy for the other case.

    http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

    2) how to conditionally display format?
    – various ways, but a simple one that I think would work fine is to just add into Page_Load the check, so something like: string format = cond ? “MM/dd/yyyy” : “MM/dd”; and then checkbox.Text = yourDateTime.ToString(format);

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkbox.text.aspx

    3) how to get the display to change on checkbox change?
    – #2 combined with adding AutoPostBack=true on your checkbox(es)

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkbox.autopostback.aspx

    If you can further clarify the question, in particular what parts of what you’re trying to do you’re having trouble with, it may help us provide better answers 🙂

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

Sidebar

Related Questions

I have 11 checkboxes with individual ids inside a modal popup.I want to have
I want to separate the year from the Birthdate.I have a checkbox called Birthdate
Have you ever seen any of there error messages? -- SQL Server 2000 Could
I have a Button inside an UpdatePanel. The button is being used as the
I have a modal popup inside of an update panel with a silverlight control.
net ajax app. I have one modelpopup that shows a IFrame and inside Iframe
I have an ascx control loaded inside a panel tied to a modal pop
I have an AJAX Modal Popup panel that contains a RadioButtonList, 2 labels and
I'm using Ajax to dynamically populate a DIV. I have each page content stored
I have a modal popup that initially shows some content but expands a div

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.