I want to attach a Ajax calendar control to a textbox. what i have done is as follows:
Added a textbox and attach a calendar pi at textbox. what i want is when user clicks on image automatically calendar popup with format of mm/dd/yyyy. I have downloaded AjaxControlToolkit and added its reference to my project.(.dd to my wesite bin folder).
this is what i have done with my textbox in .aspx:
<asp:TextBox ID="TextBox2" AutoPostBack="true" onblur="calAge()" runat="server"></asp:TextBox>
<asp:Image ID="img" runat="server"
ImageUrl="~/stock-vector-post-it-calendar-113843446.jpg" Height="16px"
Width="16px" />
<asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server"
Enabled="True" TargetControlID="TextBox2">
</asp:CalendarExtender>
in my webconfig file:
<pages>
<controls>
<add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagprefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit">
tagPrefix="ajaxToolkit"/>
</add></controls>
</pages>
when i debug my project it shows following error:
There is no source code available for the current location.
on clicking ok shows the error:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Why so? in my website namespace also i have added the using AjaxControlToolkit; . what went wrong? thanks in advance.