Problem: After adding an AJAX Calendar Extender to a Text Box you need to set the date displayed in the Text Box to the Selected Date value of the Calendar Extender. Solution: Firstly you need to ensure that the Calendar Extender, as seen below in Figure 1, has a BehaviorID value set. Figure 1 <label [...]
Archive for the ‘AJAX’ Category
Setting the value of a CalendarExtender using jQuery
Posted: 14th April 2010 in AJAX, JQueryTags: AJAX, JavaScript, JQuery
Recently I came across a problem with the ASP.NET AJAX accordion control which caused my machine to have a System.OutOfMemoryException. This was caused by an attempt to bind a large result set returned from a WCF service to the accordion control. The error never directly specified out of memory, but instead display the following webpage [...]
Retrieving the control value from an ASP Accordion ContentTemplate Item
Posted: 18th February 2010 in AJAXWhen you want to update a value from a control in the control template section of a data bound collection of an accordion control it is necessary to find the control in the collection to update it. Shown below is a basic example to explain what I mean. basic accordion control <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> [...]
Binding the selected index of a dropdown in an AJAX accordion control
Posted: 15th February 2010 in AJAX, WCFGiven the task of populating and binding controls within an AJAX accordion control I thought things would be easy. However, binding to a selected index of a dropdown control was not as easy as I first suspected. Below is one of the accordion section included in my tab container. Accordion with dropdown <asp:Accordion ID="devicesAccordion" runat="server" [...]
///
/// Gets the towns.
///
/// The list from the cache if it exists; or from the database
public List GetTowns()
{
if (!this.cacheManager.Contains(“towns”))
{
using (var svc = new NetworkServiceClient())
{
var towns = svc.GetAllTowns();
this.cacheManager.Add(
“towns”,
towns,
CacheItemPriority.Normal,
null,
new SlidingTime(TimeSpan.FromMinutes(Constants.CacheTimeout)));
}
}
return (List)this.cacheManager.GetData(“towns”);
}