Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have downloaded AJAX control toolkit from codeplex.com and added the extended controls toolkit in toolbox.it automatically added in my solution explorer bin folder also.when i run the page using extendedcontrols it runs without any error but my extendedcontrols action is not performing,nothing happens when i click on controls.what i m doing wrong i m not getting.please help me.i m using asp.net 3.5 with c# and sqlsever 2005.how can i attach my code with this to send it to u.please help.thanks in advance.
Posted

1 solution

1) First check that you have take reference of AJAX assembly.
<![CDATA[<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


2) Use Textbox control and calender extender control as below.

<asp:TextBox ID="txtValidateFrom" runat="server"></asp:TextBox>

MSIL
<cc1:CalendarExtender ID="dtpDate" runat="server" TargetControlID="txtValidateFrom"
                                        PopupPosition="BottomLeft">


3) You can also user mask edit extender and mask validator control to validate date.

MSIL
<cc1:MaskedEditExtender ID="mskedtDate" TargetControlID="txtValidateFrom" Mask="99/99/9999"
                                       MessageValidatorTip="true" runat="server" MaskType="Date" InputDirection="RightToLeft"
                                       AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True" />


MSIL
<cc1:MaskedEditValidator ID="MaskedEditValidator5" runat="server" ControlExtender="mskedtDate"
                                      ControlToValidate="txtValidateFrom" EmptyValueMessage="Date is required" InvalidValueMessage="Date is invalid"
                                      Display="Dynamic" ValidationGroup="save" EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" />
%>]]>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900