I thought something like this
<ajaxToolkit:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" TargetControlID="txtDatumPoaganje" Format="MM/dd/yyyy" StartDate=<%=DateTime.Now%>>
But that does not work. I can do something similar with JavaScript and a warning message:
How to disable previous dates in a CalendarExtender control through its rendering event?
but itβs not the same.
Try SelectedDate instead of StartDate.
In addition, the link below says that you cannot set selecteddate from the html side, you should do it from the code instead.
However, I did not confirm this. http://forums.asp.net/t/1293771.aspx/1
you can put this on the download page
TextBox2_CalendarExtender.StartDate = DateTime.Now.Date;
Assuming you're only trying to show dates from DateTime.Now , this might help you: Disable previous dates in ajaxToolkit CalendarExtender
DateTime.Now
Source: https://habr.com/ru/post/1391001/More articles:Unrecognized type - "Error: variable" [var-name] "is not a type name" - c ++Unable to send special characters via jQuery ajax - javascriptTransparent clear graphic buffer? - c #CSS - Content with 100% minimum height creates a vertical scrollbar - html(Android) The layout will not be redrawn after setVisibility (view.GONE)? - androidAndroid: resolution for vibrator rejected (what's going on?) - androidHow to disable previous dates in a CalendarExtender control through its render event? - asp.netA Java class that has 90% static members. Good practice or what? - javaPhonegap as a platform for the Mac App Store? - iosCassandra Sort Results by Account - sortingAll Articles