Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><img src="https://i.stack.imgur.com/zSkw2.png" alt="enter image description here"> Hi Yugi, Sorry to say that I' never try dojo's widget, what am I done on my web page to have an entry of date is that I use AjaxControlToolkit for filtering valid input character which tageted to my date textbox.<br> If you want to try this you may download a AjaxControlToolkit with which should File version: 3.0.20229.0</p> <p>from google search.</p> <p>You should reference AjaxControlToolkit.dll file in your solution project. then register it:</p> <p>See Client code ViewProcessedClaims.aspx.cs</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewProcessedClaims.aspx.cs" Inherits="MedilinkSites.ViewProcessedClaims" %&gt; &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %&gt; </code></pre> <p>Then in the Body tag: Example:</p> <pre><code>&lt;tr&gt; &lt;td&gt; &lt;asp:TextBox ID="txtDateFrom" runat="server" Width="70px" OnTextChanged="txtDateFrom_TextChanged"&gt;&lt;/asp:TextBox&gt; &lt;cc1:CalendarExtender PopupButtonID="ImageDatePicker" ID="CalFrom" TargetControlID="txtDateFrom" runat="server"&gt; &lt;/cc1:CalendarExtender&gt; &lt;cc1:FilteredTextBoxExtender ID="ftDateFrom" ValidChars="1234567890/" TargetControlID="txtDateFrom" runat="server"&gt; &lt;/cc1:FilteredTextBoxExtender&gt; &amp;nbsp;&lt;asp:ImageButton ID="ImageDatePicker" runat="server" ImageUrl="images/Calendar.png" AlternateText="Click here to display calendar" Height="16px" /&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre> <p>In you submit button_click:</p> <pre><code>string dateFrom = this.txtDateFrom.Text; if (!IsValidDate( dateFrom)) // Calling my previous function IsValidDate() { AlMessageBox.Show(this, "Invalide Date"); // Calling my prev. pop-up message box this.txtDateFrom.Focus(); return; } </code></pre> <p>Note: just include my previous code behind that i'd made ....</p> <p>Hope this could help... Regards,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload