C# webform calendar - c#

Have a webform that I'm looking to have a calendar that a user can choose the date from the calendar and it then displays the selected date in a textbox. When I choose a calendar from the toolbox how do i minimize the calendar on the generated webpage so it doesn't display the calendar all the time, like only when a drop down is chosen (it takes up alot of space and looks awful).
tried to dispaly the selected date like this but it doesn't work:
TextBox10.Text = "Date" + Calendar1.SelectedDate;

From the sound of what you are trying to do I would recommend either using the AJAX Control Toolkits Calendar Extender or using jQuery UI Datepicker functionality

Related

How to disable specific date in SharePoint calendar control in SharePoint

I have a Visual WebPart where I am using SharePoint calendar control. I have a requirement to disable specific date in calendar which user can't select. I have tried many ways but no luck. Can anyone help me please.
<SharePoint:DateTimeControl ID="dtDateTimeControl" runat="server" DateOnly="true" />
I have list of dates in a array which I want to disable in the calendar .
20/08/2020
21/08/2020
22/08/2020
23/08/2020
24/08/2020
SharePoint calendar control does not provide a OOB way to achieve this.
DateTimeControl Properties for your reference:
https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms415699(v=office.14)
You could try to use JQuery DatePicker plugin to achieve your requirement.
Demo:Jquery UI datepicker. Disable array of Dates
Similar issue:
https://social.msdn.microsoft.com/Forums/office/en-US/1194e097-12c9-42a7-9ece-ff40fd81129a/sharepoint-calender-date-disable?forum=sharepointdevelopmentprevious

DatePicker week number silverlight

Can i enable week number in silverlight DatePicker ? And how ?
That is not possible with the standard DatePicker control, have you considered adding another control like a label and when the user clicks the date you display the week in the label.
ScreenShot

Is it possible to have a Textbox show calendar dropdown?

Without place a TextBox over a Calendar control and hiding/showing controls and synchronizing values between controls, is it possible to have a Textbox and a button next to it, that when clicked, shows the calendar dropdown?
I would use the DateTimePicker control, however I want to set the value to NULL without having to show & use the checkbox.
I also want that the control is empty without any default date which is grayed out.
Implementing a custom control based on this answer is trivial, but I was wondering if a calendar dropdown can be shown without the need to have a hidden DateTimePicker.
This is pretty much the definition of a DateTimePicker...

WPF: calendar control date in bold

I retrieve some dates from my database and i want show that dates in my calendar control in c# wpf using a bold style.
How can i do this only from code behind? Is it possible?
Thanks

Showing calendar Control

I am creating a web application in which i have to select a date. I am using Calendar control. But it occupies too much space and other labels and text boxes are not shown in proper alignment. Is there anything I Can do in which when i click on an image, the calendar control opens, but on the textbox, so that it does not occupy any space.
Regards,
Jigar
One possible solution is to use a purely client side date picker, which displays a "pop-in" calendar when the TextBox is selected. Search the web for "date picker" to find tons of JavaScript implementations, including the jQuery UI Datepicker.

Categories

Resources