ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.[Solved] Ajax CalendarExtender not to select previous year in ASP.Net<p>Hi <a class="username" rel="JennyD6856">JennyD6856</a>,</p> <p>Adding <span style="text-decoration: underline;">MaskedEditValidator</span> to your code will work.</p> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <pre class="brush: html">&lt;ajax:ToolkitScriptManager ID=&#34;ToolkitScriptManager1&#34; runat=&#34;server&#34;&gt; &lt;/ajax:ToolkitScriptManager&gt; &lt;asp:TextBox ID=&#34;txtOrientationDate&#34; runat=&#34;server&#34; onclick=&#34;this.focus();this.select()&#34; AutoCompleteType=&#34;None&#34; MaxLength=&#34;10&#34; ValidateRequestMode=&#34;Inherit&#34; Width=&#34;90px&#34; TabIndex=&#34;450&#34; CssClass=&#34;textbox&#34;&gt;&lt;/asp:TextBox&gt; &lt;ajax:CalendarExtender ID=&#34;CalendarExtender2&#34; TargetControlID=&#34;txtOrientationDate&#34; Format=&#34;MM/dd/yyyy&#34; runat=&#34;server&#34;&gt; &lt;/ajax:CalendarExtender&gt; &lt;ajax:MaskedEditExtender ID=&#34;MaskedEditExtender1&#34; ClearMaskOnLostFocus=&#34;false&#34; runat=&#34;server&#34; PromptCharacter=&#34; &#34; TargetControlID=&#34;txtOrientationDate&#34; Mask=&#34;99/99/9999&#34; Enabled=&#34;true&#34; MaskType=&#34;Date&#34; MessageValidatorTip=&#34;true&#34; ErrorTooltipEnabled=&#34;True&#34; CultureName=&#34;en-GB&#34; AutoComplete=&#34;False&#34; UserDateFormat=&#34;MonthDayYear&#34;&gt; &lt;/ajax:MaskedEditExtender&gt; &lt;ajax:MaskedEditValidator runat=&#34;server&#34; ID=&#34;MaskedEditValidator1&#34; ControlToValidate=&#34;txtOrientationDate&#34; ControlExtender=&#34;MaskedEditExtender1&#34; Display=&#34;dynamic&#34; IsValidEmpty=&#34;False&#34; InvalidValueMessage=&#34;*&#34; /&gt;</pre> <p><strong><span style="text-decoration: underline;">Screenshot</span></strong></p> <p><img src="https://imgur.com/SYh3WlC.gif" alt="" width="250" height="277" /></p>https://www.aspforums.net:443/Threads/511344/Solved-Ajax-CalendarExtender-not-to-select-previous-year-in-ASPNet/https://www.aspforums.net:443/Threads/511344/Solved-Ajax-CalendarExtender-not-to-select-previous-year-in-ASPNet/Wed, 24 Oct 2018 03:51:53 GMT