How do you hide the calendar and display it only when clicked a button in aspnet?

1 answer

Answer

1080163

2026-10-14 15:20

+ Follow

JavaScript
JavaScript

To hide a calendar in ASP.NET and display it only when a button is clicked, you can utilize JavaScript for the client-side functionality. Set the calendar's Visible property to false in the initial page load. Then, create a button with an onclick event that toggles the calendar's visibility by setting the Visible property to true. You may also use a JavaScript function to show or hide the calendar by manipulating its CSS display property.

ReportLike(0)ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.