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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:14:41+00:00 2026-06-11T14:14:41+00:00

I have a div that I need to hide until October 12, then have

  • 0

I have a div that I need to hide until October 12, then have it display starting October 13. The site is being built in C# .NET so I can add an if statement to the code-behind of the HTML page. Not sure if this is possible or if I will need a jQuery solution (which I know nothing about). Any help would be appreciated.

Here is the code in the HTML:

<p style="bold">SHOW THROUGH 10/12!!!<p>
<p>Every day from now until Metastatic Breast Cancer Awareness Day (Oct. 13), a new video will be featured. Please check-in every day to hear a new story and come back on Oct. 13 to see the new, complete video wall.</p>

<div id="mbcRadioList">
    <p style="bold">BUILD BUT HIDE UNTIL 10/13!!!<p>
    <p><strong>Want to learn more?</strong> Select a video topic to better understand the varied experiences of people living with MBC and their family and friends.</p>
    <div class="checkBoxesColumn">
        <label><input name="videoWallRadio" type="radio" id="" value="" />View All</label>
        <label><input name="videoWallRadio" type="radio" id="" value="" checked />My MBC Journey</label>
        <label><input name="videoWallRadio" type="radio" id="" value="" />Challenges</label>
        <label><input name="videoWallRadio" type="radio" id="" value="" />Positive Outlooks &amp; Advice</label>
        <label><input name="videoWallRadio" type="radio" id="" value="" />Giving Thanks</label>
        <label><input name="videoWallRadio" type="radio" id="" value="" />Family / Friend Perspective</label>
    </div>
</div>

I added the the <div id="mbcRadioList"> around the list to get a handle to control in the code-behind if there is a way to do this. I can remove it if it is a jQuery solution.

Thanks 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-11T14:14:42+00:00Added an answer on June 11, 2026 at 2:14 pm

    Do as the other’s have suggested:

    1) Set the div to runat="server"

    2) Set the div to visible="false"

    3) In Page_Load, in your codebehind, add an if statement which checks the date and then changes visible to true

    aspx markup:

    <div id="mbcRadioList" runat="server" visible="false">
        <p style="bold">BUILD BUT HIDE UNTIL 10/13!!!<p>
        <p><strong>Want to learn more?</strong> Select a video topic to better understand the varied experiences of people living with MBC and their family and friends.</p>
        <div class="checkBoxesColumn">
            <label><input name="videoWallRadio" type="radio" id="" value="" />View All</label>
            <label><input name="videoWallRadio" type="radio" id="" value="" checked />My MBC Journey</label>
            <label><input name="videoWallRadio" type="radio" id="" value="" />Challenges</label>
            <label><input name="videoWallRadio" type="radio" id="" value="" />Positive Outlooks &amp; Advice</label>
            <label><input name="videoWallRadio" type="radio" id="" value="" />Giving Thanks</label>
            <label><input name="videoWallRadio" type="radio" id="" value="" />Family / Friend Perspective</label>
        </div>
    </div>
    

    Codebehind:

    protected void Page_Load(object sender, EventArgs e)
        {
            // ..... your other code
    
                        if(DateTime.Now >= new DateTime(2012, 10, 13) ){
                              mbcRadioList.Visible = true;
                        }
        }
    

    As the other guys have suggested, make sure you take into consideration timezones, if required.

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

Sidebar

Related Questions

I need to hide or show a div that have a slideshow inside. The
I have 2 div's that I need consecutively toggled back and forth showing and
I have a div with some inner content that I need to have an
I have a dropdown function that I need to work only on the div
I have an image that I need to hide an image after showing it
I have a div that gets hidden and displayed, via .hide() and .show() .
I have a div box (black) that will display a few different product images
I have a container div that need to be flexible in height because the
I have a div (#CME) that is hidden initially, I need to show it
I have a show and hide div that shows and hides comments when clicked.

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.