Archive for the ‘AJAX’ Category

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 [...]

AJAX Accordion OutOfMemoryException

Posted: 29th March 2010 in AJAX, JQuery, WCF

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 [...]

When 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> [...]

Given 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" [...]

WCF 10 connection limitation

Posted: 15th February 2010 in AJAX, WCF

///
/// 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”);
}